tinoandrijic Posted December 31, 2012 Share Posted December 31, 2012 Today, i marked invoice paid (i use EU VAT add-on) and Annually Auto Reset Numbering is checked, but numbers are restarted today (31.12.2012.). As I understand, that should happen tommorow (1.1.2013.), not today. 0 Quote Link to comment Share on other sites More sharing options...
stormy Posted December 31, 2012 Share Posted December 31, 2012 This happened to me as well!!! All of today's invoices are invalid and illegal!!! 0 Quote Link to comment Share on other sites More sharing options...
tinoandrijic Posted December 31, 2012 Author Share Posted December 31, 2012 Yes... when i noticed this i manually changed next number , but i am not happy because EU VAT add-on think december have 30 days. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted January 2, 2013 Share Posted January 2, 2013 Yes, it should have happened with the 1/1 cron not the 31/12 cron - you should notify WHMCS of the bug through your WHMCS install / client area 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted January 4, 2013 WHMCS Support Manager Share Posted January 4, 2013 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. 0 Quote Link to comment Share on other sites More sharing options...
Troy Posted January 4, 2013 Share Posted January 4, 2013 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. 0 Quote Link to comment Share on other sites More sharing options...
stormy Posted January 4, 2013 Share Posted January 4, 2013 Absolutely. This is important and it has consequences, tax wise. A cron running at 23:59 on Dec 31st would solve it. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted January 4, 2013 Share Posted January 4, 2013 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 0 Quote Link to comment Share on other sites More sharing options...
stormy Posted January 6, 2013 Share Posted January 6, 2013 And why do you need a cron at all to do this? Some simple PHP can take care of it. 0 Quote Link to comment Share on other sites More sharing options...
stormy Posted January 10, 2013 Share Posted January 10, 2013 WHMCS support doesn't acknowledge it as a bug. Anything we can do? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.