Jump to content

Invoice number go to 0 today (31.12.2012.)


tinoandrijic

Recommended Posts

  • WHMCS Support Manager

Hi,

The date resets when the cron runs on the last day of the month, so please ensure your cron ran at or around midnight. If you had it running mid-way through the day then invoices generated afterwards would have reset but before the day was actually over.

Link to comment
Share on other sites

Hi,

The date resets when the cron runs on the last day of the month, so please ensure your cron ran at or around midnight. If you had it running mid-way through the day then invoices generated afterwards would have reset but before the day was actually over.

 

This doesn't seem very wise. Although I'm not affected by this, one early poster seemed to claim that ALL of the day's invoices were generated after the date was reset. Since the cron generates the recurring invoices, does this mean that perhaps the code resets the date on the last day of the year BEFORE the day's invoices are generated? If so that's a bug.

 

Beyond that, it also seems strange to have to run the cron at the last minute in the day just to avoid having a problem. Though I can see that waiting until the first day cron run could be a problem because new orders may come in before the cron runs.

 

I think this calls for separate yearly cron job that can be scheduled to run at 0:00 on December 31st.

Link to comment
Share on other sites

Hi,

The date resets when the cron runs on the last day of the month, so please ensure your cron ran at or around midnight. If you had it running mid-way through the day then invoices generated afterwards would have reset but before the day was actually over.

The cron can only be run once, and should be in the morning to do that days processing - resetting the invoice numbers a day earlier than legally acceptable is just a bug in WHMCS - your date check is wrong :P

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated