Automatic status update error

0
Hello

I'm building a custom module that shows notifications to a logged in user about his/her quotes/invoices/payments, and because of that I've passed a lot of time looking in the database and I noticed a bug. When automatic status update is enabled and an invoice has payments that are not paid yet but are within due date, even though the joomla backend shows the invoice as pending (as it should), in the database invoices table, the field computed_status says pastdue.

Can I please have a fix for that? I could go looking myself for the bug, but my time is not nearly enough to do that as well. Besides you know your component betetr than me and I suppose it would take you a lot less time to find the bug and tell me how to fix it?

Thank you
Responses (3)
  • Accepted Answer

    Thursday, March 12 2015, 09:33 AM - #Permalink
    0
    another thing i JUST noticed. If i go to the payments for the invoice in question, and I mark them as paid, and then I mark them as not paid, then the computed_status of the invoice says pending (as it should have from the beginning)
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, March 12 2015, 09:59 AM - #Permalink
    0
    And yet another thing i JUST noticed. The bug presents itself ONLY when i add the payments from the individual invoice screen. If I add the payments by clicking on the + icon in the invoices screen then all is well
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, March 12 2015, 11:21 AM - #Permalink
    0
    Hello,

    I'm not sure that's a bug. this field in the DB you're talkin about is internally updated when you save an invoice. that field is not always used to "show the status" if you know what I mean...

    in any case, we can add the automatic calculation when a PAYMENT is saved. we will look into it

    thanks!
    The reply is currently minimized Show
Your Reply