feat(po): manager sets advance payment on approval (#92) #99

Merged
shad0w merged 3 commits from feat/manager-advance-payment into master 2026-06-23 20:26:28 +00:00
Showing only changes of commit 455d268925 - Show all commits

View file

@ -517,6 +517,11 @@ model PurchaseOrder {
// resolved amount is stored here. Null on legacy/pre-feature POs ⇒ no explicit
// advance, so Accounts defaults to the full remaining balance. Set once at
// approval and not edited afterwards (issue #92).
//
// NOTE (issue #91): this IS the "exact sum due for payment" for an ADVANCE/PART
// request. When the structured payment-request lane (payment-term enum +
// separate approval) is built, reuse this column for the requested amount
// rather than adding a parallel "exact sum" field.
suggestedAdvancePayment Decimal? @db.Decimal(12, 2)
piQuotationNo String?
piQuotationDate DateTime?