No description
Schema: - Add ProductVendorPrice table (productId, vendorId, price, updatedAt) with unique constraint on (productId, vendorId) Payment action (markPaid): - Auto-create Product for any unlinked line item (matched by name case-insensitively, or created fresh with auto-generated code) - Link POLineItem.productId for newly matched/created products - Upsert ProductVendorPrice for the PO vendor + unit price - Always update Product.lastPrice / lastVendorId as denormalized cache Search API: - Include vendorPrices[] in results (vendorId, vendorName, price) Editor dropdown: - Show per-vendor prices below item name when available Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| App/pelagia-portal | ||
| .gitignore | ||