fix(invoices): validate line totals with global discounts (H37) #51
Loading…
Reference in a new issue
No description provided.
Delete branch "Seyyed/Seyyed_arc:codex/team-base-11-line-total-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Verification
48 targeted tests passed, including H23, H37, payment-only updates and a posted SQLite sale. A rejected rewrite preserved the 99 receivable and 9 VAT entries. PHP, WordPress, HTTP and PostgreSQL were not run.
H36 follow-up
A numeric serialization fixture for quantity 7 and total 999999999.99 produces a 1E-7 difference with 7E-8 tolerance. Adjacent unit-price floats also fail. The canonical amount and exact decimal representation need to be defined, including the Mapper's end-of-order rounding adjustment.