|
|
8cd97ebff7
|
feat: PO-POSTPAY-AUTO — auto PaymentRequest on SDN sign + postpay modes
- PostpayMode enum (SIMPLE/PER_DELIVERY) on POPaymentSchedule
- isPostDelivery flag on POInstallment (auto-set at creation)
- SDN.sign() → triggerPostpayOnSdnSign: creates/recalculates PaymentRequest
- SIMPLE: 1 PR per postpay installment, dueDate = signedDate + postDeliveryDays
- PER_DELIVERY: 1 PR per SDN, amount = deliveredAmount × postpayPercent/100
- SDN.cancel() → rejects PENDING/APPROVED PRs, preserves PAID PRs
- Frontend: postpayMode Radio in PO drawer, "После отгрузки" tag on installments
- Rename УПД tabs: исходящие → Клиенты, входящие → Поставщики
- Backfill: 2 installments marked isPostDelivery=true
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-04-28 13:27:57 +03:00 |
|