Bug Report: Overdue - Recurring is not working

Overdue - Recurring is not working

steps to reproduce: 1. goto https://sim.tecdiary.net/sales/add 2. Add 3 new sales invoices with old date & due date as yesterday 3. run the cron manually as by - https://sim.tecdiary.net/cro

MS

MANIe S.

Reported

steps to reproduce:

  1. goto https://sim.tecdiary.net/sales/add
  2. Add 3 new sales invoices with old date & due date as yesterday
  3. run the cron manually as by - https://sim.tecdiary.net/cron/run
  4. Now check your sales list. The cron processed 2x invoices & 3rd invoice was not triggered as OVERDUE
  5. ref : https://ibb.co/4gH1pjt
Attachments
  • MS

    Mian Saleem

    Answered

    Hello,

    Thank you for reporting the issue. As I know, only due passed invoices are created with cron (recurring). If that’s not correct, let me know so that I can check.

  • MS

    MANIe S.

    Answered

    Hi, thank you for your kind replies. As you could see my ref image, there are 2x 27’Dec due invoices but only one was triggered. Another 27’Dec due invoice was not triggered…

  • MS

    Mian Saleem

    Answered

    Hello,

    I am sorry the recurring sales has nothing to do with due date. The due date is to change the status of invoice to overdue.

    I have tested as you per your steps and the result screenshots are attached.

  • MS

    MANIe S.

    Answered

    Hi. Hopes you could reread my comments. Seems you havent followed my ReProducing steps.

    Your way of troubleshooting is too layman term. And actually you did nothing to reproduce the issue , instead just did as normal.

  • MS

    Mian Saleem

    Answered

    I followed your steps 😦

    1. Created 3 recurring invoices with previous date and due as yesterday (took screenshot).
    2. Run the cron job
    3. Visited the sales list and took screenshot.

    What I have missed?

    You might be true but I don’t have any other way yet.

    Thank you

  • MS

    MANIe S.

    Answered

    Hi, your diagnose test is not followed my above re’producing order…

    1. Add 3 new sales invoices with OLD DATE & ** DUE DATE AS YESTERDAY **
    2. run the cron manually as by - https://sim.tecdiary.net/cron/run
    3. Now check your sales list. The cron processed 2x invoices & 3rd invoice was not triggered as OVERDUE ref : https://ibb.co/4gH1pjt

    But in your diagnose above, all shows PENDING, becoz you set the due date as far future, instead of YESTERDAY’s date.

    Attachments
  • MS

    Mian Saleem

    Answered

    The due date of all 3 invoices were yesterday (29.12.2019 Ref: Before cron job). The date, I chose randomly (old/previous date). The recurring invoice will have due date as per original invoice.

    All the new processed invoices will have pending payment status. I have noticed the paid amount for paid invoice shouldn’t have that amount. I will fix that. Fro other, I have not figured out the issue.

    The failure of email or pdf generation, would stop the cron job. I will check this too in next update.

  • MS

    MANIe S.

    Answered

    So, whats your conclusion here.?

    1. Is your DEMO is working well ?
    2. The issue is not a bug & could be the failure of email or pdf generation, would stop the cron ?
    3. OR - You have to fix this issue as The cron processed 2x invoices & 3rd invoice was not triggered as OVERDUE ?
  • MS

    Mian Saleem

    Answered

    I haven’t fixed any thing yet. I even didn’t find the cause. I will check this again, once I start working on update. This bug report will be updated accordingly.

    Thank you

  • Login to Reply