Create a new Stock item
Integer ID for the stock item. If this is provided, the server will try to update the existing stock item instead of creating a new one.
String. The human-readable name of the Stock item.
String. The stock code for this item.
Codes must be unique, so if you try to create a new stock item with an existing stock code, then the existing item will be updated instead.
Integer nominal code for accounting purposes. Defaults to 0 if not supplied.
Float cost of one of the stock item. How much you bought it for.
Integer. How many of the item are you adding to database.
Float price of the stock. How much you sell the product for.
String description of the Stock item.
String notes about the Stock item. You could include details of where it was purchased, any special instructions for working with it, etc.
String name of the Supplier. Must match an existing Supplier.
FM_api('Stock_add', [ 'name'=>'1kg 1.75mm PLA Filament', 'code'=>'PLA001', 'nominal'=>'1', 'cost'=>'12.99', 'price'=>'15.99', 'amount'=>'3', 'description'=>'PLA filament for 3D printers' ] );