pelagia-portal/App/app/(portal)/payments
Hardik 70f3230c36
All checks were successful
PR checks / checks (pull_request) Successful in 43s
PR checks / integration (pull_request) Successful in 31s
feat(po): register line items in the product catalogue on approval
Previously a PO's free-text line items only became reusable catalogue products
(/inventory/items) on full payment (markPaid → syncProductCatalog). An approved-
but-unpaid PO's items weren't selectable for further POs yet.

- extract syncProductCatalog into lib/product-catalog.ts (shared).
- call it from approvePo so approved items are immediately catalogued (create
  product by name if unknown, link the line item, upsert last/per-vendor price);
  payment still re-syncs to refresh prices. Idempotent.
- test: approving a PO with a free-text line creates + links the product and
  records the per-vendor price.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-24 04:59:47 +05:30
..
history feat(payments): compulsory payment date when Accounts records payment 2026-06-10 08:59:25 +05:30
actions.ts feat(po): register line items in the product catalogue on approval 2026-06-24 04:59:47 +05:30
page.tsx feat(po): manager sets advance payment on approval (issue #92) 2026-06-24 01:40:20 +05:30
payment-actions.tsx feat(po): manager sets advance payment on approval (issue #92) 2026-06-24 01:40:20 +05:30