0
The time of the invoice due date (or invoice date) is not working.
Any idea how to input the time of the invoice due date?
This is an issue because I'm using today's date to compare against due date. If an invoice is due today, it is being marked as past due. However, it is looking at the time as the dates are the same.
Image below.
Thanks.
Any idea how to input the time of the invoice due date?
This is an issue because I'm using today's date to compare against due date. If an invoice is due today, it is being marked as past due. However, it is looking at the time as the dates are the same.
Image below.
Thanks.
Responses (3)
-
Accepted Answer
0well it's not an issue of the time really, it's simply that to display the status, it's being considered that if due date = today, it's past due.
what you want is that if due date < today, to be past due. correct?-
ken_trenholmmore than a month agoYeah, I've been using this. To check out your theory (that time does not matter), I just have datetoday = date of invoice and it does not appear as it should. It says that today's date does not equal the date of the invoice (when it does, except for the time of the day). If I can set the time of the invoice to later, then this will be fixed. Any suggestions on how to do that?
-
ken_trenholmmore than a month agoI've even tried to say IF todaysdate == invoicedate {the echo out "Pay Today"}. However, they won't come out as equal. php must be recognizing the time code and it is the time that is making one date greater than the other as the dates are the same.
-
-
Accepted Answer
-
Accepted Answer
0yes I see what you mean.
if you open file /administrator/components/com_invoices/views/invoice/tmpl/form.php and go to line 172, you will see how the date format is set to: "%Y-%m-%d"
you would need to change it to: "%Y-%m-%d %H:%M"-
ken_trenholmmore than a month agoThanks. I've made the changes and I am able to have the date and time inputted. That parts works great.
Unfortunately, now, the created invoice appears on the backend but does not appear on the Frontend. Any ideas what is happening here? Thanks again. -
ken_trenholmmore than a month agoSorry. Just didn't have the invoice published. I'm going to try to set the invoice to be published as the default. Thanks again for all your help.
-
Germinal Campsmore than a month agonot really.. you mean the new change made the invoices stop apearing on frontend?? that really makes no sense :S
-
Germinal Campsmore than a month agooh, ok ;)
-
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »