← All field notes
Progress payments that didn’t add up
- Problem
- Previous totals were added up from line items instead of the contract, and deposits were counted as positive amounts.
- Fix
- I moved the math to the contract level, handled deposits as negatives, and used one rounding rule everywhere.
- Stack
- TypeScript · Next.js · Billing