docs(schema): note suggestedAdvancePayment is the reuse point for issue #91
All checks were successful
PR checks / checks (pull_request) Successful in 43s
PR checks / integration (pull_request) Successful in 32s

The structured payment-request lane (#91) should extend this column for the
ADVANCE/PART 'exact sum due', not add a parallel field.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hardik 2026-06-24 01:45:56 +05:30
parent 99c928213b
commit 455d268925

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?