mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-24 16:49:48 +00:00
The `validateInvoicesRemainingAmount` method was incorrectly comparing the total credit amount (sum of all entries) against each individual invoice's due amount. This caused valid credit note applications to be rejected when applying to multiple invoices where the total exceeded any single invoice's due amount. Changed the validation to compare each invoice's due amount against only the specific entry amount being applied to that invoice. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>