caelum0x 2e41740aa3 fix(rago): RegenerateInvoice accepts fee adjustments and recomputes totals
regenerateInvoice(voidedInvoiceId, fees) now takes per-fee units and
unit amounts (zero units drops a fee); amounts and taxes are recomputed
at each fee's own rate and the invoice rollups are rebuilt from the fees.
Without fees the old copy behaviour is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 18:51:42 +03:00
..