_listBySupplier
Last updated
List Stock items associated with a given Supplier, ordered by stock item name. Uses the supplier_id field in the stock table.
Integer. The ID of the supplier.
FM_api('Stock_listBySupplier',
[
'supplier_id'=>'2'
]
);The id, name and code of each stock item associated with the chosen supplier.
Example:
[{"id":"1","name":"Item1","code":"0001"},{"id":"2","name":"Item2","code":"2000"}]If no supplier ID provided:
Last updated
{"error":"no Supplier ID provided"}