FIX #12875
This commit is contained in:
parent
44bc0392eb
commit
ecaacc9543
@ -84,16 +84,16 @@ if ($idprod > 0)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add price for costprice
|
|
||||||
$price=$producttmp->cost_price;
|
|
||||||
$prices[] = array("id" => 'costprice', "price" => price2num($price), "label" => $langs->trans("CostPrice").': '.price($price, 0, $langs, 0, 0, -1, $conf->currency), "title" => $langs->trans("PMPValueShort").': '.price($price, 0, $langs, 0, 0, -1, $conf->currency)); // For price field, we must use price2num(), for label or title, price()
|
|
||||||
|
|
||||||
if(!empty($conf->stock->enabled))
|
if(!empty($conf->stock->enabled))
|
||||||
{
|
{
|
||||||
// Add price for pmp
|
// Add price for pmp
|
||||||
$price=$producttmp->pmp;
|
$price=$producttmp->pmp;
|
||||||
$prices[] = array("id" => 'pmpprice', "price" => price2num($price), "label" => $langs->trans("PMPValueShort").': '.price($price, 0, $langs, 0, 0, -1, $conf->currency), "title" => $langs->trans("PMPValueShort").': '.price($price, 0, $langs, 0, 0, -1, $conf->currency)); // For price field, we must use price2num(), for label or title, price()
|
$prices[] = array("id" => 'pmpprice', "price" => price2num($price), "label" => $langs->trans("PMPValueShort").': '.price($price, 0, $langs, 0, 0, -1, $conf->currency), "title" => $langs->trans("PMPValueShort").': '.price($price, 0, $langs, 0, 0, -1, $conf->currency)); // For price field, we must use price2num(), for label or title, price()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add price for costprice
|
||||||
|
$price=$producttmp->cost_price;
|
||||||
|
$prices[] = array("id" => 'costprice', "price" => price2num($price), "label" => $langs->trans("CostPrice").': '.price($price, 0, $langs, 0, 0, -1, $conf->currency), "title" => $langs->trans("PMPValueShort").': '.price($price, 0, $langs, 0, 0, -1, $conf->currency)); // For price field, we must use price2num(), for label or title, price()
|
||||||
}
|
}
|
||||||
|
|
||||||
echo json_encode($prices);
|
echo json_encode($prices);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user