Navigation
14.12. Generate Automatic, Manual, and Prepayment Invoices for MSP Clients
Run AlgaPSA invoice generation for recurring MSP billing, manual one-off charges, and prepayment deposits with full visibility into approval blockers, repair alerts, and combinability rules.
Automatic invoices turn contract service periods into draft invoices. Use this workflow at the end of your billing cycle to review due recurring work, preview invoice totals, and create draft invoices for accounting review. Alongside automatic billing, AlgaPSA also supports manual one-off invoices and prepayment deposits from Billing > Invoicing > Invoicing.
A typical billing run looks like this. GreenLeaf Dental Group has a managed backup contract that bills a flat $300.00 base fee plus storage overage. This month they used 250 GB over the allowance at $0.20/GB, producing a $50.00 overage charge and a pre-tax subtotal of $350.00. When you open the Invoicing page and choose automatic invoices, GreenLeaf appears as a single ready-to-invoice row carrying both child obligations grouped onto one draft invoice.
Figure 1: The Ready to Invoice table groups compatible contract obligations by client and invoice window.
Invoice Types
Select the invoice type from the dropdown at the top of the Invoicing page:
| Type | Use When |
|---|---|
| Automatic Invoices | Generating invoices from recurring billing runs based on service periods |
| Manual Invoice | Creating a one-off invoice for adjustments, corrections, or non-standard charges |
| Prepayment | Billing a client up front for credit that later invoices draw down |
How "today" is determined for the invoice date
When an invoice is dated "today" — automatic invoices, manual invoices, invoices generated from sales orders, and prepaid hour-block purchase invoices — AlgaPSA uses the current date in your tenant's Default Time Zone, not the date on the server, which runs in UTC. This matters around month end: a tenant in Sydney generating invoices on the morning of November 1 gets invoices dated November 1, even though it is still October 31 in UTC. The due date is calculated from that same local date (except on invoices created by automatic prepaid-block replenishment, where the due date still follows the server's UTC date), and the invoice preview shows the same dates as the invoice that is created.
If no default time zone is saved for your tenant, AlgaPSA falls back to the UTC date. Set the default time zone before your first billing run so invoice dates match your local calendar.
Generating Automatic Invoices
Automatic invoicing looks for due billing work and surfaces it across up to four sections, depending on the state of each invoice window.
Sections on the Screen
When you select Automatic Invoices, the screen renders up to four top-level sections:
- Needs Approval — appears at the top when an invoice window contains billable time that has not been approved yet. The entire window is blocked until approvals are complete. Each row links out to Review Approvals for that client and window.
- Recurring service period repair required — a warning panel that appears when a client's recurring billing schedule is missing pieces needed to bill the window. The window is blocked from the ready-to-invoice list until you repair the schedule using the action in the panel.
- Late approved hourly time — a read-only information panel that appears when hourly time was approved after the invoice for its service period had already been issued. It lists each entry in a flat table with Client, Technician, Service, Work date, Hours, Closed service period, and Status. Entries inside the 90-day lookback are marked Bills on next invoice: they are added automatically, once, to the client's next invoice as a separate line with the suffix (late time, service period START–END). Entries older than the lookback are marked Outside lookback — not billed; they are listed so you can see them, but they are never billed. There is nothing to select in this panel, and it does not block the Ready to Invoice list.
- Ready to Invoice — the main grouped table of due obligations that can be generated. Each parent row groups child obligations by client and invoice window, and carries a compatibility badge.
Compatibility Badges on Ready-to-Invoice Rows
Parent rows in the Ready to Invoice table are tagged with one of the following badges:
| Badge | Meaning |
|---|---|
| Can combine into 1 invoice | Child obligations are compatible and will be grouped onto one invoice |
| Must invoice separately | Child obligations cannot be combined due to incompatibility |
| Contains blocked items | One or more child obligations have an issue preventing generation |
| Not ready to invoice | Child obligations are not yet due or are missing configuration |
Step-by-Step
- Select Automatic Invoices from the type dropdown.
- Resolve any Needs Approval rows (via Review Approvals) and any Recurring service period repair required entries first — both blocks prevent the affected windows from appearing in the ready-to-invoice list. If a Late approved hourly time panel appears, read it so you know which late entries will be added to the next invoice; it needs no action.
- In the Ready to Invoice table, expand a parent row to see the individual child obligations and charges included.
- Select the rows you want to invoice. Select All picks parent rows when a group is combinable, and falls back to individual child rows when a group is not combinable.
- Click Preview Selected to confirm the draft will look as expected before committing. The preview shows client details, line items, quantities, rates, subtotal, tax, and total exactly as the draft will be created.
- Click Generate Invoices for Selected Periods.
Figure 2: Preview invoices before generation so billing staff can confirm descriptions, quantities, rates, and totals.
Resolve missing usage in the preview
The preview names any service with unreported usage and identifies its service period under Usage not recorded for this period. A missing record is not treated as a confirmed zero or silently replaced with a quantity saved on the contract.
- For Report a count for each period, enter the count directly in the preview and select Save. If a count is already reported, use Save correction to replace it. The preview recalculates the same selection after saving.
- For dated consumption, select Record usage: [service] for the relevant line. Usage Tracking opens with the affected client, service, contract line, and service period in context. Confirm the usage date, record the entry, then preview that period again.
- Check each named service when several are missing. An entry recorded for one service does not satisfy another service's reporting requirement.
For GreenLeaf's storage service, record the actual quantity for the named month before reviewing its overage. An explicit zero means usage was reported; no entry means it is still unreported. Already-invoiced usage is not a reason to add a replacement entry. See 14.15. Track Endpoint, Storage, and License Usage for Consumption-Based MSP Billing.
Month-End Close
Use Month-End Close when finance needs a calendar-month arrears invoice dated on the month's last day. For example, September 1 through September 30 work can be invoiced on September 30, rather than waiting for the normal invoice window to open on October 1.
- In Automatic Invoices, find the eligible calendar-month arrears group.
- Finish recording the month's time and usage, resolve approval blockers, and review the full period's charges.
- Select Generate month-end invoice on the eligible group.
- Review the confirmation and select Generate at month end.
- Review the resulting draft, including its service period and month-end invoice date.
The server checks eligibility again before generation. The period must cover a complete calendar month on the client's billing schedule, bill in arrears, and have its normal invoice window open the following day. All required service periods must exist, and the selection must include the complete billing window. Today must be the final calendar day in the effective billing timezone. Normal approval and duplicate-invoice checks still apply.
This action does not close an arbitrary mid-month period early or change scheduled automatic generation. The invoice date follows the billing timezone, not the server host's date. Time or usage recorded after closing is not added to that invoice, so confirm that work is fully recorded before proceeding.
See 14.11. Inspect, Repair, and Troubleshoot Recurring Service Periods on MSP Contracts if the expected month-end group is unavailable or its schedule requires repair.
When Items Cannot Be Combined
Recurring items that cannot combine will show one or more incompatibility reasons under the parent row:
- Invoice window differs — items have different invoice window start/end pairs
- Client differs — items belong to different clients
- PO scope differs — items reference different purchase order scopes
- Currency differs — items would invoice in different currencies
- Tax treatment differs — items use different tax sources (internal vs external)
- Export shape differs — items map to different accounting export shapes (e.g., one expects QBO, the other Xero)
Items that share the same client and invoice window are grouped together; the engine then evaluates these six fields per group and only items that match across all of them combine onto a single invoice.
Creating a Manual Invoice
- Select Manual Invoice from the type dropdown.
- Select the Client.
- (Optional) Enter a value in Invoice Number (Optional). This field is currently ignored — the system always auto-generates the invoice number — so you can safely leave it blank.
- (Optional) Tick This is a prepayment invoice (creates credit). When ticked, an additional Credit Expiration Date field appears.
- Add line items using +. For each line:
- Select a Service. The taxable status is read from the selected service and shown as a "(Taxable)" or "(Non-Taxable)" label — there is no separate taxable toggle on the line.
- Enter a Description if you want to override the default.
- Set the Quantity and Rate.
- To add a discount, add a line and switch the row to a Discount line. Discounts support:
- Discount Type: Percentage or Fixed Amount.
- Discount Description (e.g., "Early Payment Discount").
- Apply Discount To: target the entire invoice or a specific line item.
- Tax: discounts are applied before tax, so tax on the draft is calculated on the discounted amounts of the lines each discount targets, not on the pre-discount prices (see 14.4. Tax Rate Configuration).
- Review the calculated Total at the bottom of the form. Tax is not shown here — it is calculated server-side after you submit, and appears on the resulting draft invoice.
- Click Generate Invoice.
The Invoice Date (today's date in your tenant's Default Time Zone) and Due Date are set automatically when the draft is created. The due date comes from the client's effective billing profile: if the client has an active billing profile, that profile's payment terms govern the due date and the default payment method; if no profile applies, the client's own payment terms are used instead. You can adjust either value later from the draft invoice's details card. Manual invoices are useful for one-off charges, adjustments, or corrections that are not tied to a recurring contract line.
Creating a Prepayment Invoice
A prepayment invoice bills a client up front, for example a deposit before a server migration project, and turns the payment into credit that later invoices draw down. The form explains: "Prepayment invoices create client credit for future value. They do not create recurring service periods; later recurring invoices keep their own service-period coverage."
- Select Prepayment from the type dropdown. The Generate Prepayment Invoice form opens.
- Select the Client.
- Enter the Amount. It is entered in the selected client's default currency, and it is cleared when you change the client, so a deposit is not raised in the wrong currency.
- Optionally enter a Description (optional), such as Deposit for Q1 server migration project. The description is saved with the invoice. When the invoice is finalized, it becomes the description of the resulting credit; if you leave it blank, the credit is described as Credit issued from prepayment.
- Click Generate Prepayment Invoice. The button stays disabled until a client is selected and the amount is greater than zero.
The credit becomes available to apply to other invoices when you finalize the prepayment invoice — finalization is what posts the value to the client's credit balance. Creating the draft alone does not fund the credit.
What Happens After Generation
When invoices are generated:
- AlgaPSA creates draft invoice records — they are not sent to the client until you finalize them.
- Contract line details are linked to the invoice for auditability.
- The related recurring service periods move from ready/generated to billed.
- Usage records and time entries are marked invoiced when they are included on the invoice.
This prevents the same service period, time entry, or usage record from being billed twice. See 14.13. Managing Draft and Finalized Invoices for next steps.
How Charges Are Calculated
When an automatic invoice is generated, the billing engine calculates charges from multiple sources:
| Charge Type | Source |
|---|---|
| Fixed charges | Bundle-priced services allocate the recurring fee; recurring seats/units bill the effective quantity multiplied by unit rate. Existing proration and applicable pricing overrides still apply. |
| Time charges | Approved time entries (rounded by minimum-billable-time and round-up settings, then converted to hours × hourly rate). Overtime hours past overtime_threshold are billed at overtime_rate (or 1.5× the base rate if no rate is set) when Enable Overtime is on. Hourly time approved after its service period was already invoiced is added automatically to the next invoice, once, as a separate line with a (late time, service period …) suffix, provided it falls inside the 90-day lookback; older entries appear in the Late approved hourly time panel but are never billed. |
| Usage charges | Dated additive entries or one replaceable period total, according to the service configuration. Minimums and tiers apply per additive entry or once per period report; a missing report is unreported usage. |
| Bucket charges | Hours used beyond the bucket allowance (overageHours × overage_rate). The engine reads overage_minutes from usage records, or falls back to max(0, minutesUsed − configuredMinutes) when records don't carry a pre-computed overage. |
| Product / license charges | Quantity × rate from the contract line's product or license configuration, billed once per service period. |
Configuration fields like
enable_after_hours_rateandafter_hours_multiplierexist on the contract line schema, but the active billing engine does not apply an after-hours multiplier during charge calculation today — only overtime is applied.
Tax is calculated per line item based on the client's tax region and exemption settings.
Billing-run checklist
Before finalizing invoices, confirm:
- The client and billing address are correct.
- The invoice period matches the service period you intended to bill.
- Fixed fees appear once per period.
- Usage and overage quantities match source usage records.
- Taxes and exemptions are correct.
- Required PO numbers or PO budget limits are satisfied.
- The invoice is still a draft until your accounting team is ready to send or finalize it.
- If a Late approved hourly time panel appeared, check that the late-time lines on the draft match the entries marked Bills on next invoice.
See also
- 14.6. Creating Client Contracts — set up the contracts that drive automatic invoicing.
- 14.7. Contract Lines, Presets, and Examples — configure the contract lines whose charges land on invoices.
- 14.8. Pricing Schedules — schedule rate overrides that take precedence over base and service rates.
- 14.11. Understanding Service Periods — the service-period model behind invoice windows.
- 14.13. Managing Draft and Finalized Invoices — review, edit, finalize, and send the drafts created here.
- 14.14. How Accounting Works in AlgaPSA — how approved time becomes billable on automatic invoices.
- 14.15. Usage Tracking — how usage records feed usage and bucket charges.
- 14.2. Tenant Billing Settings — tenant-wide defaults.
- 14.4. Tax Rate Configuration — drive the per-line tax that is applied at draft creation.
