diff --git a/htdocs/bom/class/api_boms.class.php b/htdocs/bom/class/api_boms.class.php index 2147f7be1ba..776bcd54b7f 100644 --- a/htdocs/bom/class/api_boms.class.php +++ b/htdocs/bom/class/api_boms.class.php @@ -350,7 +350,8 @@ class Boms extends DolibarrApi $request_data->efficiency, $request_data->position, $request_data->fk_bom_child, - $request_data->import_key + $request_data->import_key, + $request_data->fk_unit ); if ($updateRes > 0) { @@ -395,7 +396,8 @@ class Boms extends DolibarrApi $request_data->disable_stock_change, $request_data->efficiency, $request_data->position, - $request_data->import_key + $request_data->import_key, + $request_data->fk_unit ); if ($updateRes > 0) { diff --git a/htdocs/bom/class/bom.class.php b/htdocs/bom/class/bom.class.php index 1e761324c7f..a5778a17511 100644 --- a/htdocs/bom/class/bom.class.php +++ b/htdocs/bom/class/bom.class.php @@ -1739,13 +1739,25 @@ class BOMLine extends CommonObjectLine * @var string description */ public $description; + + /** + * @var double qty + */ public $qty; /** * @var int qty frozen */ public $qty_frozen; + + /** + * @var int disable stock change + */ public $disable_stock_change; + + /** + * @var double efficiency + */ public $efficiency; /** @@ -1769,12 +1781,16 @@ class BOMLine extends CommonObjectLine */ public $unit_cost = 0; - /** * @var Bom array of Bom in line */ public $childBom = array(); + /** + * @var int Service unit + */ + public $fk_unit; + /** * @var int Service Workstation */