Merge branch '16.0_FIXBOM_CalculatePrice' of github.com:atm-lena/dolibarr into 16.0_FIXBOM_CalculatePrice
This commit is contained in:
commit
654b75de9f
@ -1073,7 +1073,7 @@ class BOM extends CommonObject
|
||||
if ($res>0) {
|
||||
$bom_child->calculateCosts();
|
||||
$line->childBom[] = $bom_child;
|
||||
$line->total_cost = price2num( $bom_child->total_cost * $line->qty, 'MT');
|
||||
$line->total_cost = price2num($bom_child->total_cost * $line->qty, 'MT');
|
||||
$this->total_cost += $line->total_cost;
|
||||
} else {
|
||||
$this->error = $bom_child->error;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user