#21750 NEW: Added "Get lines and Post lines from BOM" at the REST Service

This commit is contained in:
Christian Humpel
2022-08-15 16:25:42 +02:00
parent 0576f31592
commit 91094d48e6

View File

@@ -505,14 +505,15 @@ class BOM extends CommonObject
/**
* Add an BOM line into database (linked to BOM)
*
* @param $fk_product
* @param $qty
* @param $qty_frozen
* @param $disable_stock_change
* @param $efficiency
* @param $fk_bom_child
* @param $import_key
* @return int
* @param int $fk_product Id of product
* @param float $qty Quantity
* @param int $qty_frozen Frozen quantity
* @param int $disable_stock_change Disable stock change on using in MO
* @param float $efficiency Efficiency in MO
* @param int $position Position of BOM-Line in BOM-Lines
* @param int $fk_bom_child Id of BOM Child
* @param string $import_key Import Key
* @return int <0 if KO, >0 if OK
*/
public function addLine($fk_product, $qty, $qty_frozen = 0, $disable_stock_change = 0, $efficiency = 1.0, $position = -1, $fk_bom_child = null, $import_key = null){