Skip to main content

Customer invoices, receipts and receivables — configuration

Everything on this page is a switch, a setting, a rule, a permission or an account mapping. Nothing here is hardcoded — including the wording a tax authority makes you print.

The app and its options​

Receivables is an option on Sales, not a module of its own. That is the deliberate mirror of payables being an option on Purchasing: a purchase order and a supplier bill live in one app behind two switches, and arranging the receivables side differently would be two vocabularies for one idea.

A distributor who bought Sales and does their billing in an accounting package switches sales.receivables off and keeps orders and shipments.

SettingDefaultWhat it does
sales.receivablesonInvoice customers, credit them, record receipts and chase what is owed.
sales.invoice_approval_threshold0Invoices at or above this need a manager before they post. Zero means none do, and an invoice posts in one step.
sales.cash_application_strategyreference_then_oldestHow a receipt is proposed across open invoices.
sales.writeoff_threshold5Balances below this may be written off without a second signature.
sales.unapplied_cash_days7How long a receipt may sit unapplied before somebody is told.
credit_memo.require_purchase_historyonA credit memo line for a product must be for one the customer was invoiced for. Off, people holding customer_invoice.credit_unrestricted (Manager and Accounting; never Sales) may credit any product, and each such line is audited as "not bought by this customer".
receivables.auto_writeoff_under0 (off)A payment that leaves an invoice open by less than this writes the rest off as a small balance when it is banked. It only applies below sales.writeoff_threshold too, so it never writes off what would need approving, and never on a disputed invoice.
receivables.nsf_fee.*$25, draft, hold onThe fee drafted when a payment comes back, whether it posts without review, and the credit hold. See Returned payments, with the rules and each state's cap.
receivables.bank_charge_tolerance25A payment short of an invoice by up to this much is proposed as a bank charge on the cash-application screen. The clerk keeps, lowers or removes it. It is also the most the bank charges on one receipt may come to, typed or proposed, and only on a wire or ACH (round 15: refused 422 bank_charge_over_limit or bank_charge_not_bank_paid). 0 suggests and allows none.
receivables.bank_charge_max_percent5.00The most a bank charge may be, proposed or typed, as a percent of the payment. A shortfall is proposed as a bank charge only within both this and the tolerance, and only for a payment by wire or ACH; cash and cheques are never proposed one. A larger shortfall is left open as a part payment. 0 suggests none.
sales.credit_warning_percent90Near-limit alert for credit control (%): how much of their limit a customer may use before whoever may release held orders is told the account is close to it. The Customers app's Credit warning for account staff (%) (customers.credit_warning_percent) is a separate alert, for everybody who looks after customers.

Switching sales.receivables off requires switching off the settings that depend on it first. That is the platform refusing to strand a setting a company is relying on, not a bug. sales.cash_application_strategy is the exception and does not have to be switched off first — it is a choice between three values and none of them means "off".

The cash application strategy, and why it is a setting​

Three values:

  • reference_then_oldest (default) — honour an invoice number the customer quoted, then fill oldest first.
  • oldest_first — oldest first regardless.
  • manual — propose nothing; the clerk keys it.

Acumatica applies by reference then oldest; NetSuite auto-applies oldest-first; Odoo matches on the payment reference and falls back to a suggestion; SAP proposes by due date; ERPNext offers outstanding invoices oldest first. The unanimous fallback is oldest-first and the majority prefer a quoted reference in front of it, which is the shipped default.

It is a setting rather than a constant because a customer who pays by statement and a customer who pays by invoice number are two different clerks' days.

Approval thresholds​

Zero out of the box, meaning no invoice needs approving — the same shipped default the vendor bill threshold has, and for the same reason: a distributor who installs this and finds their first invoice stuck behind an approval nobody told them about would rightly call it a bug.

Set it and invoices at or above the figure go through the workflow engine. The rule lives on the rules screen with everything else, so a company that wants a different condition — a customer group, a currency, a margin — writes it there rather than asking for a setting.

The write-off threshold works the other way round: below it a write-off is one step, at or above it a write-off needs approving.

Permissions​

PermissionGranted toWhat it allows
customer_invoice.readManager, Sales, Accounting, ReadOnlySee invoices and credit memos. Sending one, or marking it sent, also needs customer_invoice.manage, .post or collections.manage, so ReadOnly reads and never sends.
customer_invoice.manageManager, AccountingRaise and change drafts, and price their lines.
customer_invoice.postManager, AccountingPost into the ledger and onto the customer's account.
customer_invoice.correctManager, AccountingCorrect or Cancel a posted invoice: post a credit memo for all of it, take its payments off, and (Correct) open a replacement draft. Also needs customer_invoice.manage, .post and customer_receipt.manage, and customer_receipt.post where a banked payment moves. Update details on a posted invoice needs only customer_invoice.manage.
customer_receipt.readManager, Sales, Accounting, ReadOnlySee receipts and what they settled. Marking a remittance produced also needs customer_receipt.manage, .post or collections.manage.
customer_receipt.manageManager, AccountingRecord receipts and apply them, take an application off a draft, and import a lockbox file into a draft deposit.
customer_receipt.postManager, AccountingRelease a receipt, reverse one the bank sent back, and — with customer_receipt.manage — apply or un-apply cash on a posted receipt, which posts a journal.
ar_writeoff.postnobodyGive up a balance a customer owes.
collections.readManager, Sales, AccountingSee who owes what and when they were last chased.
collections.manageManager, Sales, AccountingRecord that a customer was chased, and what they said.

Three of these are deliberate and worth stating.

Sales may read an invoice and may not raise one. A rep answers "have they been billed for that" all day; putting a number on a customer's account is accounting's act, the same way approving a supplier bill is.

Nobody may write off. Not Manager, not Accounting. It is the one act here that gives up money the company is owed, so an administrator grants it deliberately — which is the conversation a controller should have before it ships rather than after. It is the same shape proposal.approve_financial has.

Sales may chase. In a distributor the person who rings about an overdue invoice is as often the rep who knows the customer as the credit controller, and reading what a customer owes is not the same grant as reading what they were charged.

Correcting a posted invoice​

customer_invoice.correct is its own grant because one click does what otherwise takes posting a credit memo and moving cash: a role that holds it should be one you would trust with both. It reads no setting of its own, and these existing ones apply:

  • Credit memo authority (Settings → Authority, decision Credit memo): the correction's credit memo is measured against the person's limit like any other. Over it, the credit waits for approval and the correction finishes when it is approved and posted. While it waits, other credits, write-offs and due-date changes on the invoice are refused, and an approver is told, instead of approving, when the credit could not post. Recommended: leave as configured for credit memos.
  • Fiscal periods: the credit memo's date must be in an open period, on or after the invoice's own date; the original's period may be closed. The replacement takes the original's date where that period is open, otherwise the credit's.
  • Payment terms: a payment that took an early-payment discount takes the replacement's discount again, the smaller of the two, where it arrived inside the replacement's discount window.
  • Small-balance auto write-off may apply to the replacement when the moved payments leave a small balance on it, as with any payment.
  • With an external tax service, a correction's credit memo is not sent to the service (as with every credit memo today); the tax reconciliation report shows the difference to adjust there. The replacement is committed as any invoice is when it posts.

Accounts​

Roles, never account ids. Map them on the chart of accounts screen; the starter chart seeds all of them.

RoleKindWhat lands there
accounts_receivableAssetWhat customers owe. Debited by an invoice, credited by a receipt.
sales_revenueIncomeWhat was sold.
tax_payableLiabilityTax charged to a customer and owed to a state.
sales_other_revenueIncomeAn invoice line with nothing out of the catalogue on it — a freight recharge, a pallet fee, a rebill.
sales_returnsIncomeSales returns and allowances. What credit memos give back: goods returned, and allowances for damage or a price agreed afterwards. Optional, and not seeded: see below.
receivables_discount_givenExpenseWhat early payment cost.
receivables_write_offExpenseBalances given up on.
bank_feesExpenseWhat a bank kept of a customer's payment on the way (a wire fee), recorded as a bank charge on the receipt. The same role banking uses for fees on a statement. A bank charge is refused until it is mapped.

Sales returns and allowances​

Out of the box a credit memo reduces Sales itself, so the income statement shows net sales and cannot say how much came back. To see returns on their own line, add an income account (for example 4150 Sales returns and allowances) and give it the Sales returns and allowances role under Accounting → Chart → Roles. From then on a credit memo's goods debit that account instead: a credit raised from an invoice, a return's credit, and a credit without the goods alike. The receivable and the tax are the same either way.

Three things to know:

  • Choosing the account is the switch. There is no setting. Take the role off the account and credit memos reduce Sales again.
  • Nothing already posted is restated. Only credit memos posted afterwards use the account.
  • A correction is not a return. When an invoice is corrected, its credit stays in Sales, because the same goods are billed again on the replacement and the two net to nothing there.

What each document writes:

DebitCredit
InvoiceAccounts receivableSales revenue, tax payable
Credit memoSales revenue, tax payableAccounts receivable
Receipt, appliedCashAccounts receivable
Receipt, unappliedCashAccounts receivable (on account)
Early payment discountSettlement discounts givenAccounts receivable
Bank charge on a receiptBank and card feesAccounts receivable
Write-offBad debts and write-offsAccounts receivable
Receipt reversalAccounts receivableCash
Cash un-applied on a posted receiptThe invoice's receivable (and the discount, if one was taken)Accounts receivable (back on account), settlement discounts given
Credit memo applied across receivable rolesThe credit's receivable roleThe invoice's receivable role

Un-applying on a posted receipt undoes only what that application posted. Cash applied after banking had its own journal, and that journal is cancelled by an opposite one. Cash applied before banking is inside the receipt's own journal, which stays as it is; an opposite of what a later application of the same figures would post is written instead. In another currency that includes the realised exchange difference. It is dated today in the company's calendar, or the first open date after it where today's period is closed. A write-off is never un-applied here; it has its own reversal under ar_writeoff.approve.

A credit memo applied to an invoice on another receivable role (a customer class on a related-party receivable, say) posts a reclass between the two roles, so each role's balance stays tied to its own documents. Same role, nothing posts, as before. Un-applying the credit cancels the reclass.

Cost of goods sold is not in this table. It is posted when the goods leave the building, by the shipment, and an invoice that posted it again would double the cost of everything you sell. There is a test that proves it.

Tax payable is one role, and a company filing in six states can still have six accounts. The narrow exception that lets a tax code name an account directly is the tax module's, and this role is what it overrides. Everything else lands here.

Settlement discounts given is seeded as an operating expense, not under revenue as a contra, and for a mechanical reason: a group and its accounts are the same kind, so an expense cannot sit under Income in the starter chart. A company that would rather read it beside the revenue it reduces renumbers the account, which is a morning rather than a migration.

Freight and a discount on a whole invoice​

A draft invoice or credit memo shows Freight and Invoice discount under its lines, for anyone with customer_invoice.manage. Both print under the subtotal. On a credit memo, enter the freight being given back. A posted invoice is corrected with a credit memo (it is never edited). Cloning an invoice and raising a recurring invoice both carry these amounts; a clone in another currency names what it could not copy, to be entered again.

With Sales on, the invoice desk's Adjustments bar adds a charge or a discount line with no product. It earns into the Other sales income role unless the line names an account.

What the invoice prints​

The invoice template is a template. Every element on it — your company details, tax registrations, the bill-to and ship-to, the per-line tax and the summary, the payment terms and the discount date, the remittance instructions — is a field, and the layout is editable on the printing screen.

Including the wording. Some jurisdictions require particular sentences on an invoice: a reverse-charge notice, a VAT statement, an excise declaration, a retention-of-title clause. That is a template field (required_wording), not a string in the code, because the sentence differs by country, changes when the law does, and is not something a customer should have to wait for a release to change.

Three things control what appears:

WhereWhat it does
Company setup → Tax registrationsYour tax registration numbers, each with its kind and who issued it.
Company setup → Remittance instructionsHow to pay — the instructions, not bank credentials.
printing.invoice_wordingThe jurisdiction-required wording block.

A proforma prints from the same template with a banner saying what it is, and posts nothing.

Customer settings that affect billing​

On the customer, and inheritable from the customer class:

FieldWhat it does
Payment termsThe due date, and the early-payment discount and its window. The terms list says each term's due schedule in a sentence — "Due net 30 days", "Due 10 days after month-end", "Due on day 15 of next month (cut-off day 25)", and "Due on receipt" for nought days (Cash on delivery, Due on receipt); the calculation basis is under Columns.
Credit limitWhat an order is checked against.
Billing cycleon_shipment (default), weekly, biweekly, semimonthly, monthly.
Billing dayWhich day of the cycle.
Statement formopen_item or balance_forward.

The cycle is swept overnight. Two jobs run on the platform scheduler, which fires at the declared hour in the entity's own timezone and records a business date, so the guarantee is "once per local day" rather than once per UTC day. Billing dated a day out is the kind of mistake a customer notices.

JobHourWhat it does
sales.consolidate_billing05:00One draft invoice per customer whose cycle falls today, for every delivery of theirs nobody has billed.
sales.recurring_invoices05:00Copies every recurring template whose date has arrived and advances its schedule.

Both draft; neither posts. A consolidated invoice is the largest document a distributor sends that nobody has read, and a sweep that posted one would occasionally bill for a delivery somebody was about to credit. The drafts land in the invoices list's To do slice, which is what that slice is for. Acumatica's and SAP's batch billing and NetSuite's Invoice Groups all produce documents a person releases.

Both run at five, before the signal sweep at six: an invoice drafted this morning should be in the queue when the signals that read the invoice book run, not an hour behind it.

Sending invoices​

Emailing an invoice goes through the same provider framework everything else does. No mail account connected is a declared degradation, not a failure: the invoice is issued, attached to its record and marked sent, and the screen says the mail did not go so somebody can send the PDF themselves.

The address is the customer's accounts-payable contact first, then the customer's own address — the mirror of a purchase order preferring the ordering contact, and right way round for this direction. An invoice in a buyer's inbox is one that sits there.

A proforma is refused by this path. It is genuinely sent to customers, but sending it here would record it as an invoice having gone out, and a proforma owes nothing. Print it and attach it by hand.

Nothing about the body is configurable, and that is deliberate: the invoice is the attachment, an endpoint that accepted arbitrary text would be a way to send anything to anyone under this company's name, and the mail lands in a mailbox this system does not control (rule 11). It carries no balance, no account history and no payment link.

The credit limit​

Checked at order entry, against the live receivables balance — so an order that is refused names the actual figure rather than saying "over limit". What happens when it is over is sales.credit_policy: nothing, a warning, or a refusal until somebody with the permission releases it. Warn is the default, because a limit is usually somebody's estimate from two years ago and a product that refuses real orders on one teaches a sales desk to switch the check off.

There is no second gate on the invoice. Refusing to invoice for goods that have already shipped would leave revenue unrecognised because of a credit decision, which is the wrong lever; the limit stops the order, which is where stopping is useful. None of the five incumbents blocks an invoice on credit.

The balance it measures is the customer's one balance (round 21): open invoices, less open credit memos, less cash on account — so a deposit or a payment not yet applied counts in the customer's favour, as it does in NetSuite, Xero and QuickBooks. The customer list, the customer's header and credit panel, the order and the aging all show the same figure. Nothing to configure; the upgrade restates every customer's stored balance once.

Proving the books​

Accounting → Aging → Reconciliation puts the receivables subledger against the receivables control account, arrived at two different ways, and says whether they agree. It is a screen rather than a report because a report is something somebody has to remember to run.

The aging grid is checked against it too: the line under the grid adds the grid's own rows up, on the As at date, and the green "ties" only shows when those rows add up to the subledger as well as the subledger to the account.

It also tells you when the accounts_receivable role is not mapped to an account, which is the state a half-configured chart leaves you in and the one that makes every other number on the page meaningless.

Signals​

Four, all of which write to the signals screen rather than emailing anybody:

SignalWhen
Overdue invoiceAn invoice is past its due date. The remedy records a collections call.
Unapplied cashA receipt has sat unapplied for sales.unapplied_cash_days. The remedy applies it.
Near credit limitA customer has used sales.credit_warning_percent of their limit.
Statement cycle dueA customer's statement cycle has come round.

Lockbox files​

Nothing to switch on: importing a lockbox file is part of receipts, gated by customer_receipt.manage, and every cheque it keys is a draft in a deposit whose control total and count are the file's. It reads these settings:

  • sales.cash_application_strategy decides each cheque's proposed split. Where the file quotes invoice numbers they are honoured first under any strategy except manual, which proposes nothing — a desk that keys every split keeps doing so.
  • The attachment size limit and allow-list (Settings → Attachments) apply to the kept file, which is stored as text.

Customers are matched by customer number, then by exact name; anything else is left for a person, and the deposit will not post until they key it. A file is identified by its SHA-256, so the same file is refused however it is renamed. BAI2 lockbox items are the 16 details of type 116 (item in lockbox deposit), or 115 where a file has none, with the bank reference as the cheque number, the customer reference as the customer and the text as the invoice numbers. A bank that lays out its BAI2 differently, or only sends X12 820, should send the CSV.

The assistant​

Seven read tools — open invoices, the aging, unapplied cash, customers over their limit, disputed invoices, the collections list, and a deposit batch with each cheque and where it went (sales.lockbox_batch, for reviewing an imported lockbox file) — and three actions.

Two of the three actions move money: applying unapplied cash and writing off a balance. Those do not happen when the assistant decides they should; they go into the approvals queue and need proposal.approve_financial on top of the ordinary decide permission. Recording a collections call does not move money and happens directly.

That distinction is declared on the tool and read from the registry, so a new tool that moves money cannot be added without it.

Templates and sending (A10)​

  • A recurring invoice's template is numbered in Recurring invoice template (customer_invoice_template, RIT-{sequence:05d}), so the gap-free invoice series never holds a template. A draft made recurring keeps the number it had.
  • An invoice is only marked sent when the email went, or when somebody says it was sent another way. With no email account connected, connect one under Settings → Integrations, or have staff mark invoices sent after sending them.

What decides an invoice's tax place, and the notices (A10 round 2)​

No new settings. Three things an administrator should know:

  • A manual invoice takes the customer's default delivery location when none is chosen (the same default a sales order uses), and is taxed at that location's address. Keep delivery locations' addresses right — a customer's first location is opened at its billing address and follows it when the billing address is edited, as long as the two were the same place.
  • An invoice with no tax row says why on its page: no jurisdiction covers the address (Tax → Jurisdictions), or it has no address at all. Nothing is refused; switch on tax.require_a_rule if you would rather be refused.
  • A direct invoice (stock lines, no shipment or order behind them) takes its goods out of stock as it posts, from its Ship from site or the main site, and books their cost. Setting receivables.direct_invoice_moves_stock (on by default); off, it moves nothing and is flagged instead. The negative-stock setting applies: under block, a short shelf stops the invoice posting.
  • Make deposit uses the banking deposit document and needs bank_transaction.post (Accounting role); listing what is waiting needs bank_account.read.

Round-19 story review​

Nothing new to configure. The receivables tie-out (Reconciliation tab, the dashboard card and the month-end close checklist) now dates on-account cash applied in a later month by the application, so a month closed before the application still ties. A posting date chosen at Post on an order or shipment invoice is checked against the fiscal calendar like any other posting.

Round-22 story review​

Nothing new to configure. The month-end checklist gains two receivables lines (docs/admin/close-workflow.md); Record payment offers open credit memos only to people with customer_receipt.manage, and cash on account only to those with customer_receipt.post, as before; an order's deposits are listed only to people with customer_receipt.read.

Round 23​

  • Posting dates. No setting: an order or shipment invoice's posting date defaults to its invoice date (the API's default since it was added), and the page starts at today only when the invoice date's month refuses postings (fiscal.read is needed to ask; without it the page starts at the invoice date and the post itself is the check).
  • Deposits taken on an order may exceed it; the excess stays on the customer's account. No setting.