po_from_csv
Convert an approved MRP worksheet into read-only purchase-order drafts, one per vendor, validated against EBMS and ready to POST. It creates nothing, so review and confirm each draft before writing.
Instructions
Turn an approved MRP worksheet into purchase-order drafts, read-only. Reads the worksheet mrp_plan produced (its Excel workbook, or a CSV), after the planner approved BUY rows on its To order tab (and perhaps changed Qty or Vendor); checks every vendor and product against EBMS; and returns one draft per vendor with the exact body to POST to APINV with ebms_write. It creates nothing. A worksheet handed in twice cannot order twice: ebms_write refuses the duplicate EXTERNALID. Show the drafts and get a clear yes per purchase order before writing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | The worksheet's CSV text, exactly as the user attached or pasted it. | |
| path | No | Path of the worksheet on this computer: the .xlsx workbook mrp_plan saved (after the user approved rows in it), or a CSV. Give this or csv. | |
| company | Yes | Required. Company, by ID or name. Must match the worksheet's company. |