Allow accounts to record partial/advance payments against a PO before full delivery. A new PARTIALLY_PAID status tracks in-progress payment; paidAmount accumulates across multiple markPaid calls. PO only closes when both paidAmount >= totalAmount AND all line items are delivered. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| validations | ||
| cart.ts | ||
| db.ts | ||
| geo.ts | ||
| notifier.ts | ||
| permissions.ts | ||
| po-import-parser.ts | ||
| po-state-machine.ts | ||
| storage.ts | ||
| upload-files.ts | ||
| utils.ts | ||