You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Red-team money findings: - createCreditNote caps the CN to the invoice's remaining creditable value (invoice payable − already-credited by non-cancelled CNs), read+insert in one txn. Blocks a CN exceeding its invoice / unlimited CNs flipping it 'paid'. - nextDocNo allocates via one atomic UPDATE ... RETURNING (row lock) instead of read-then-bump — no duplicate/burned numbers under concurrent issue (Postgres). - markStatus rejects accepted/lost on non-QUOTATION docs — an issued invoice can no longer be hidden from overdue chasing via a quote-only transition. - computeBill bounds qty magnitude (keeps fractional for weighed Store goods); HQ buildLines additionally requires whole-unit integer qty (SMS/module seats). - recordPayment rejects TDS greater than the cash received — no fabricated-TDS 'settlement' with no money. money-guards test locks all four. Suite money paths green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
4 days ago | |
|---|---|---|
| .. | ||
| auth | 5 days ago | |
| billing-engine | 4 days ago | |
| domain | 4 days ago | |
| ui | 4 days ago | |