Sales documents and receipts feed the general ledger through the clinic's configured accounting basis and posting settings. A Paid badge alone is not proof that every journal posted successfully. Review the source document, ledger, and posting queue together.

Accounting basis and settings#

Cash-basis accounting is the default: the invoice sale posts when it is Paid and eligible for posting. Accrual accounting recognises the invoice receivable and revenue at issue; each settled receipt, including a partial payment, then clears the receivable. Auto-post sales and auto-post payments settings also affect processing.

The sync service compares the document's current state with existing ledger entries and posts only the required delta or reversal. Retrying an event is not a reason to add a manual duplicate journal.

Invoices and receipts#

For a cash-basis sale, settled payment accounts fund the sale posting, with revenue or the appropriate prepaid liability, tax, and discount handling. For accrual, invoice recognition debits receivables and credits the sale or liability and tax; receipt settlement debits the payment account and credits receivables.

The actual accounts depend on the product, branch, payment method, accounting settings, and supported fallback rules. A card receipt commonly uses a clearing account; provider payout is a separate settlement movement. Current clinic invoices use the tenant currency, not a per-sale currency picker.

Packages and memberships#

Prepaid items can post to liability accounts at sale. Delivery events recognise the appropriate delivered share as revenue. Membership itemised-entitlement accounting and package-credit accounting have their own services; do not assume every digital product uses one identical account or recognition rule.

Expiry events can release remaining package or membership liability to breakage through accounting. Review the actual sale, usage, expiry, and resulting entries when reconciling deferred revenue.

Credit notes and refunds#

A credit note records the credited sale and associated tax or liability correction. It first reduces the original receivable. A refund payment records the payout of remaining credit against the selected eligible method or account. Returning an overpayment does not create a revenue credit note.

Eligible returned units restore stock and reverse related COGS only when restock is explicitly selected. Value-only adjustments and goods not returned must not recreate inventory. See Refund workflow.

Voids#

Void follows the document's supported cancellation/disposition path and clears the associated ledger and stock effects where allowed. It can be refused for settled payments, delivered visits, a closed period, VAT finalisation, or an unidentifiable legacy sale entry. Use a credit note for an actual sale correction.

Commissions#

Commission rows and optional GL entries follow the configured commission policy and lifecycle. Pending, approved, paid, and reversed are distinct states. Do not assume invoice payment creates an approved commission or that GL auto-posting is enabled in every clinic.

Posting failures#

  1. Open the source invoice and verify its branch, status, and receipts.
  2. Check Journal entries and Posting Queue for its existing or missing entry.
  3. Have an administrator resolve missing mappings, permission or period blockers, or failed processing.
  4. Preview and retry through the supported posting action, then reconcile the ledger.

A background failure can leave a valid operational document ahead of its accounting. Do not delete the document or invent another receipt to make the ledger agree.