diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 8030df6b75dfc..5c193f426f3f2 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -986,7 +986,7 @@ $localtax2_tx = get_localtax($tva_tx, 2, $object->thirdparty); // Margin - $fournprice = price2num(GETPOST('fournprice'.$predef) ? GETPOST('fournprice'.$predef) : ''); + $fournprice = price2num(GETPOST('fournprice_predef') ? GETPOST('fournprice_predef') : ''); $buyingprice = price2num(GETPOST('buying_price'.$predef) != '' ? GETPOST('buying_price'.$predef) : ''); // If buying_price is '0', we muste keep this value // Prepare a price equivalent for minimum price check diff --git a/htdocs/compta/facture/card.php b/htdocs/compta/facture/card.php index bb96c2c2f815a..1f8e04f2a2d05 100644 --- a/htdocs/compta/facture/card.php +++ b/htdocs/compta/facture/card.php @@ -2326,7 +2326,7 @@ */ // Margin - $fournprice = price2num(GETPOST('fournprice'.$predef) ? GETPOST('fournprice'.$predef) : ''); + $fournprice = price2num(GETPOST('fournprice_predef') ? GETPOST('fournprice_predef') : ''); $buyingprice = price2num(GETPOST('buying_price'.$predef) != '' ? GETPOST('buying_price'.$predef) : ''); // If buying_price is '0', we must keep this value