Fixing style errors.
This commit is contained in:
parent
7a8d0b698a
commit
bc37e75e7f
@ -118,11 +118,9 @@ if ($idprod > 0) {
|
|||||||
// get costprice for subproducts if any
|
// get costprice for subproducts if any
|
||||||
$producttmp->get_sousproduits_arbo();
|
$producttmp->get_sousproduits_arbo();
|
||||||
$prods_arbo=$producttmp->get_arbo_each_prod();
|
$prods_arbo=$producttmp->get_arbo_each_prod();
|
||||||
if (!empty($prods_arbo))
|
if (!empty($prods_arbo)) {
|
||||||
{
|
|
||||||
$price = 0;
|
$price = 0;
|
||||||
foreach($prods_arbo as $child)
|
foreach ($prods_arbo as $child) {
|
||||||
{
|
|
||||||
$sousprod = new Product($db);
|
$sousprod = new Product($db);
|
||||||
$sousprod->fetch($child['id']);
|
$sousprod->fetch($child['id']);
|
||||||
$price += $sousprod->cost_price;
|
$price += $sousprod->cost_price;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user