2024-05-03 Accommodate Invoice send out date changes
Invoice Dispatch Timing Adjustment:
- Adjusted the timing for 'Generate and Send invoices X days in advance' under business settings from 5 days before the billing day to 7 days before.
Transition Handling:
- Added logic to ensure that invoices scheduled to be sent out between 5 and 7 days before the billing day are not overlooked during this transition.
- Implemented error handling mechanisms to prevent any potential oversights or skipped invoices during this period.
- Cron Job Update:
- Updated the cron job responsible for sending out invoices to accommodate the new dispatch timing.
- Implemented logic to identify and process invoices scheduled between the original 5-day and the new 7-day timeframe before the billing day.
- Real-Time Adjustment:
- Upon saving changes in the business settings, the system performs a calculation to determine which invoices are affected by the change in dispatch timing.
- The system then processes these invoices according to the new settings, ensuring continuity in invoice generation and dispatch.