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:
2026-11-17 13:34:08 +02:00
co-authored by Claude Opus 5.5
parent 9aa06ae894
commit 3706b73879
9 changed files with 92 additions and 11 deletions
+9
View File
@@ -5,6 +5,15 @@ versions follow [Semantic Versioning](https://semver.org/).
## [Unreleased]
### Fixed
- **An invoice that was paid and then refunded can be voided** (planned as 2.0.2). Before, Void
was refused while any payment was recorded against the invoice, and the only way round it was to
remove the payment, which lost the record that money came in and went back. A payment now has
**Refund** (invoice page → Payments): it stays on record with its receipt, no longer counts as
paid, and the statement shows the refund going back out. Void is allowed when no payment on the
invoice is left unrefunded. Migration `20261118120000_payment_refunds` (two new columns).
## [2.0.1] - 2026-11-17
### Added