Time of Invoice Not showing up

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.
Attachments:
Responses (3)
  • Accepted Answer

    Monday, January 27 2014, 07:19 PM - #Permalink
    0
    well 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_trenholm
      more than a month ago
      Yeah, 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_trenholm
      more than a month ago
      I'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.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 28 2014, 12:28 AM - #Permalink
    0
    Here is my info printed out to the screen. You can see: The same date but the only difference is the time of the day. If I can change the time of the day of my invoice to later (say 11 pm), all will work out fine.
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 28 2014, 11:13 AM - #Permalink
    0
    yes 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_trenholm
      more than a month ago
      Thanks. 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_trenholm
      more than a month ago
      Sorry. 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 Camps
      more than a month ago
      not really.. you mean the new change made the invoices stop apearing on frontend?? that really makes no sense :S
    • Germinal Camps
      more than a month ago
      oh, ok ;)
    The reply is currently minimized Show
Your Reply