Auto-generation of Recurring Sales
EquiBillBook automatically generates sales invoices from your recurring invoice templates based on the configured schedule. This guide explains how the auto-generation process works, when invoices are created, and how to monitor the process.
How Auto-generation Works
The auto-generation system:
- Continuously monitors all active recurring invoices
- Checks if it's time to generate the next invoice based on the recurrence pattern
- Automatically creates sales invoices when the scheduled date arrives
- Updates the next invoice date for the recurring invoice
- Maintains a record of all generated invoices
When Invoices Are Generated
Invoices are automatically generated when:
- The recurring invoice status is "Active"
- The current date matches or exceeds the Next Invoice Date
- The start date has passed
- The end date hasn't passed (if an end date is set)
- The recurring invoice is not on hold
Generation Process
When the system generates an invoice, it:
- Creates a new sales invoice based on the recurring invoice template
- Copies all items, quantities, and prices from the recurring invoice
- Applies the same tax, discount, and charge settings
- Sets the invoice date to the scheduled date
- Uses the customer and branch information from the recurring invoice
- Copies notes and terms and conditions
- Calculates the next invoice date based on the recurrence pattern
- Updates the recurring invoice's Last Invoice Date and Next Invoice Date
- Invoice Number: Auto-generated based on your numbering settings
- Invoice Date: The scheduled date for that invoice
- Due Date: Calculated based on payment terms
- Reference: Links back to the recurring invoice
- All Items: Same items, quantities, and prices as the template
- Taxes and Discounts: Applied as configured in the recurring invoice
- Status: Initially set to "Draft" or "Sent" based on your settings
- Viewing Recurring Invoice Details: Check the Last Invoice Date and Next Invoice Date
- Reviewing Generated Invoices: View all invoices created from a recurring invoice
- Checking Invoice List: Look for new invoices with the recurring invoice reference
- Dashboard Reports: View recurring invoice statistics and upcoming invoices
- Last Invoice Date: The date of the most recently generated invoice
- Recurrence Pattern: The Repeat Every and Repeat Every Number settings
- Date Logic:
- Daily: Adds the specified number of days
- Weekly: Adds the specified number of weeks (7 days × number)
- Monthly: Adds the specified number of months
- Active: Recurring invoice is generating invoices as scheduled
- Completed: Recurring invoice has reached its end date (if set)
- On Hold: Recurring invoice is temporarily paused (manual action)
- Inactive: Recurring invoice has been deactivated (manual action)
- Logs the error for review
- Does not update the Next Invoice Date if generation fails
- Allows manual generation if needed
- Provides error messages for troubleshooting
- Navigate to the Recurring Sales list
- Select the recurring invoice
- Click "Generate Invoice" or "Create Invoice Now"
- The system will create an invoice immediately
- The next invoice date will be updated accordingly
- Testing the recurring invoice setup
- Generating an invoice ahead of schedule
- Recovering from a missed automatic generation
- Creating a one-time invoice from the template
- Monitor Regularly: Check recurring invoices periodically to ensure they're generating correctly
- Review Generated Invoices: Verify that auto-generated invoices are correct
- Set Appropriate Dates: Ensure start dates and end dates are set correctly
- Keep Templates Updated: Update recurring invoice templates when prices or items change
- Test Before Activating: Create a test recurring invoice to verify the pattern works
- Document Special Cases: Add notes for any special generation requirements
- The system must be running (for on-premise installations)
- Background jobs or scheduled tasks must be configured (if applicable)
- Recurring invoices must be in "Active" status
- System date and time must be accurate
- Verify the recurring invoice status is "Active"
- Check that the Next Invoice Date has passed
- Ensure the Start Date has been reached
- Verify the End Date hasn't passed (if set)
- Check that "Never Expires" is enabled if no end date is set
- Review system logs for any error messages
- Confirm background jobs are running (if applicable)
- Try manual generation to test the recurring invoice
- Open the recurring invoice details
- Navigate to the "Generated Invoices" section
- View a list of all invoices created from this recurring invoice
- See the generation date and invoice details
- Access each generated invoice directly
- Review the recurring invoice configuration
- Check the Next Invoice Date and Last Invoice Date
- Verify the recurrence pattern is set correctly
- Contact support if invoices are not generating as expected
Invoice Details
Each auto-generated invoice includes:
Monitoring Auto-generation
You can monitor the auto-generation process by:
Next Invoice Date Calculation
The system calculates the next invoice date based on:
Example: If Last Invoice Date is January 1st and pattern is Monthly (1), Next Invoice Date will be February 1st
Automatic Status Updates
The recurring invoice status is automatically updated:
Handling Generation Issues
If an invoice fails to generate automatically, the system:
Manual Generation
You can also manually generate invoices from recurring invoices:
Use Cases for Manual Generation:
Best Practices
System Requirements
For auto-generation to work properly:
Troubleshooting Auto-generation
If invoices are not generating automatically:
Viewing Generation History
You can view the history of generated invoices:
Need Help?
If you need assistance with auto-generation:
Auto-generation of recurring sales saves significant time and ensures consistent billing. Once set up correctly, the system handles invoice creation automatically, allowing you to focus on other aspects of your business.