Creates a new purchase order

Parameters

supplier_id

ID of the supplier for the purchase order.

reference

A reference for the purchase order.

Example

FM_api('PurchaseOrder_new', ['supplier_id' => '4', 'reference' => 'TEST REF'])

On Success

"{"ok":1,"id":12}"