Merge branch '16.0_FIXBOM_CalculatePrice' of github.com:atm-lena/dolibarr into 16.0_FIXBOM_CalculatePrice

This commit is contained in:
atm-lena 2022-12-19 10:40:17 +01:00
commit 654b75de9f

View File

@ -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;