Invoice Preview and Resend
Invoice previews let finance review customer-facing invoice formatting before sending or downloading.
How to Resend an Invoice
- Open the invoice detail page.
- Click Resend Invoice.
- If the button is disabled, hover to check whether email sending is disabled.
- Select the email template if required.
- Send and confirm the toast message.
Preview Requirements
Invoice preview should show:
- Invoice number
- Invoice status
- Customer name, email, address, and phone
- Company name, address, email, phone, logo, and tax numbers
- Line items
- Discounts
- SST
- Payments received
- Balance due
- Remarks where customer-facing
- Disclaimer
Request Queue
When generating multiple previews, use the request queue icon rather than the ecommerce cart icon.
The request queue should show:
- Pending jobs
- Completed jobs
- Failed jobs
- Badge for completed downloads
- Toast when a preview is ready
Popup Handling
If preview opens in a new tab and the browser blocks it, show a clear toast and make hover states visibly clickable.
Avoid showing duplicate toasts for the same action.
Resend Invoice
Finance should be able to resend an invoice when a student requests it.
When email sending is disabled by superadmin:
- Disable resend invoice buttons.
- Show a tooltip explaining email sending is disabled by admin.
- Do not enqueue email jobs.