Merge branch 'new_bom_cost' of github.com:atm-maxime/dolibarr into new_bom_cost

This commit is contained in:
Maxime Kohlhaas 2020-03-30 10:34:23 +02:00
commit 83b5b82147

View File

@ -1007,7 +1007,8 @@ class BOM extends CommonObject
* BOM costs calculation based on cost_price or pmp of each BOM line
* @return void
*/
public function calculateCosts() {
public function calculateCosts()
{
include_once DOL_DOCUMENT_ROOT . '/product/class/product.class.php';
$this->unit_cost = 0;
$this->total_cost = 0;