Fixing style errors.
This commit is contained in:
parent
7a8d0b698a
commit
bc37e75e7f
@ -101,7 +101,7 @@ if ($idprod > 0) {
|
|||||||
$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->pmp;
|
$price += $sousprod->pmp;
|
||||||
@ -114,15 +114,13 @@ if ($idprod > 0) {
|
|||||||
|
|
||||||
// Add price for costprice (at end)
|
// Add price for costprice (at end)
|
||||||
$price = $producttmp->cost_price;
|
$price = $producttmp->cost_price;
|
||||||
if (empty($price) && ! empty($conf->global->PRODUCT_USE_SUB_COST_PRICES_IF_COST_PRICE_EMPTY)) {
|
if (empty($price) && ! empty($conf->global->PRODUCT_USE_SUB_COST_PRICES_IF_COST_PRICE_EMPTY)) {
|
||||||
// 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