Purchasing and vendors
Vendors, vendor items, purchase orders, and receiving.
Pages: /dashboard/platform/purchasing, /vendors, /vendors/[id], /purchase-orders, /purchase-orders/[id].
Set up a vendor
configureVendor, then configureVendorItem linking a variant to the vendor's item, cost, and minimums. Vendor minimum order must be a non-negative integer in cents.
Draft an order
draftPurchaseOrder with lines. "Each purchase-order line requires a unit cost or vendor item".
Submit and approve
transitionPurchaseOrder: draft, submitted, approved, partially_received, received, cancelled.
Receive
receivePurchaseOrder with a location, accepted and rejected quantities per line, lot numbers, expiry (valid ISO timestamp), vendorDocumentNumber, and discrepancyNotes.