The Invoice That Is Paid in Three Parts: Partial Payments, Overpayments and the Last Payment That Closes It

A customer rarely pays an invoice in one transfer. A deposit arrives first, a second payment follows after delivery, and the rest comes weeks later. The invoice remains one document with one number. What changes is the amount recorded against it. Firmspace treats that as a normal state rather than an error: each payment is booked on its own, and the invoice keeps a running total.
The field that carries this history is the paid amount. It starts at zero and grows with every payment. The invoice status is a separate matter: draft, sent and overdue stay as they are until the paid amount reaches the gross total. Only then does the invoice become paid. A small chip in the list shows that something has already arrived; the status still tells the truth about the rest.
Recording a partial payment is the same action as recording a full one, with one extra field. The payment dialog accepts an amount. Leave it empty and the CRM books the remaining balance, not the full invoice again. That detail matters after a deposit: pressing the paid button a second time closes the gap instead of doubling the payment.
The same rule appears in the payment dialog, the API route and the assistant tool mark_invoice_paid. The assistant accepts an amount and an optional payment date. Without an amount it also books the remainder. It finds the invoice by number, including the case where a Cyrillic letter was typed instead of a Latin one, and in the normal mode it asks for confirmation before the entry is written.
Every payment becomes its own payment event with a source and an idempotency key. The key is what stops a double click or a repeated network request from adding the same money twice. If the request arrives again, the CRM recognises the key and returns the invoice without a second entry. Two genuine payments that arrive at the same moment are serialised by a row lock, so they read the starting balance one after the other.
A partial payment does not pretend the invoice is closed. The status stays sent or overdue, the open amount becomes smaller, and the invoice remains in the receivables list. The dashboard subtracts the paid amount from the gross, so the money still owed is visible without a second spreadsheet.
Only the last payment flips the invoice to paid. At that moment three separate consequences can follow: the linked order can move to paid, the deal can be won if every invoice on it is settled, and the automatic fiscal receipt step can run. Each is a separate step, and a failure in one does not undo the money. None of them happens on a partial payment.
The partial payment still leaves traces. The audit log records invoice.partially_paid with the amount applied, the total paid and the gross. The customer's deal, contact and company cards get a feed entry. The team notification says that part of the invoice arrived. Automation rules receive invoice_partial_paid instead of invoice_paid, which is the event to use when a rule should react to a deposit.
Overpayment is allowed, not silently clipped. If a customer transfers more than the open amount, the paid amount can exceed the gross, and the invoice is paid. The CRM does not invent a refund or a credit note; that is an accounting decision a person has to make. The surplus stays visible in the amount, which is better than hiding it behind a rounded status.
The payment date is not decoration. It decides the month in which the money appears on the charts, and it is checked against the locked period. A payment dated inside a closed month is refused rather than quietly moved. The period has to be opened first, or the date has to be the day the money actually arrived.
A payment link follows the same logic. When part of the invoice is already paid, the link is created for the outstanding amount, not the original total. The customer does not pay twice for the same goods, and the invoice does not need to be reissued.
Where the assistant stops is worth stating. In the normal mode it prepares the payment entry and waits for confirmation; the confirmation card shows the invoice and the amount. With auto mode on, the firm has deliberately removed that pause, so a partial amount spoken in a chat can be booked without a second look — unless the conversation has just read untrusted text, which puts the confirmation back. The assistant does not guess a missing amount and does not split a payment on its own; the number has to come from the person or from a bank record.
The practical check after a partial payment is short: the invoice still shows the right open amount, the payment event carries the right date and source, the deal has not been won too early, and the order has not moved to paid. If a second payment is expected, the invoice stays on the receivables list, which is exactly where a follow-up belongs.
A partial payment is not a special case to be avoided. It is how many small firms actually receive money. The CRM's job is to keep the document, the debt and the consequences separate: one invoice, several payments, and a status that changes only when the last part arrives. The assistant can prepare each entry and read the result back; the decision about how much arrived stays with the person who saw the bank statement.