Billing: refund a payment; void invoices that aren't paid (none, or all refunded)
Void was refused while any payment was recorded, so a paid-then-refunded invoice could only be voided by deleting the payment and losing the record. A payment can now be marked refunded: kept with its receipt, no longer counted as paid, shown on the statement as money going back out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,7 @@ export type BillingTier = { name: string; upTo: number | null; monthly: number |
|
||||
export type Payment = {
|
||||
id: string; receiptNumber: string; customerId: string; invoiceId: string | null; amountCents: number; paidOn: string;
|
||||
method: string; reference: string | null; notes: string | null; receiptSentAt: string | null; createdAt: string;
|
||||
refundedAt?: string | null; refundNote?: string | null;
|
||||
invoice?: { id: string; number: string } | null; customer?: { id: string; name: string };
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user