fix missing fields in box

This commit is contained in:
Frédéric FRANCE 2020-12-05 08:58:20 +01:00
parent e9a12b5324
commit 325951877b
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1

View File

@ -164,8 +164,8 @@ class box_produits extends ModeleBoxes
if (empty($conf->dynamicprices->enabled) || empty($objp->fk_price_expression)) {
$price_base_type = $langs->trans($objp->price_base_type);
$price = ($objp->price_base_type == 'HT') ?price($objp->price) : $price = price($objp->price_ttc);
} else //Parse the dynamic price
{
} else {
//Parse the dynamic price
$productstatic->fetch($objp->rowid, '', '', 1);
$priceparser = new PriceParser($this->db);
$price_result = $priceparser->parseProduct($productstatic);