General editorial guide prepared with AI assistance. Examples are hypothetical; implementation depends on project requirements and qualified review.
Decision and problem
A partial payment should not alter the original service value. Use separate invoice, payment and adjustment records, linking each payment to a known reference. Define revenue recognition under the approved accounting policy.
Designing the solution
In a synthetic example, an invoice of 100 with receipts of 30 and 20 leaves 50 due if there are no adjustments. Do not overwrite the invoice with 50; derive the balance from transactions. Reversal requires authority and an audit record, not silent deletion.
Practical acceptance test
Reconcile receipts for a period against the collections report and test retrying a payment after a connection failure. Do not duplicate payments or confuse outstanding invoices with collections.
