build_purchase_orders
ChatGPTUse this when a seller asks to turn a reorder list into draft purchase orders shown in the chat, split what they need by supplier, or round order quantities up to case packs and minimum order quantities (MOQs). Do not use to decide how much to reorder; it needs the quantities first. Needs what to order (SKU and quantity needed; a reorder plan's suggested order quantity works) and a supplier catalog (SKU, supplier, unit cost; optional MOQ, case pack, lead time days, supplier minimum order value). Raises each line to the MOQ, rounds up to whole cases, groups lines into one draft PO per supplier with totals, picks the cheapest supplier when several carry a SKU, and flags POs under the supplier's minimum and SKUs missing from the catalog. It drafts the POs only: it does not send, place or submit anything to a supplier. Read-only; stores nothing.





