Fixed 2 fatal errors in commande/fiche.php and a SQL problem too

This commit is contained in:
Marcos García 2012-07-28 16:22:01 +02:00
parent 2a3a8f5aa5
commit bb8dd6ded6

View File

@ -620,10 +620,10 @@ else if ($action == 'addline' && $user->rights->commande->creer)
// ajout prix achat // ajout prix achat
$fk_fournprice = GETPOST('np_fournprice'); $fk_fournprice = GETPOST('np_fournprice');
if (GETPOST('np_buying_price'))
$pa_ht = GETPOST('np_buying_price'); $pa_ht = GETPOST('np_buying_price');
else
$pa_ht = null; if (!$fk_fournprice) $fk_fournprice = null;
if (!$pa_ht) $pa_ht = null;
$info_bits=0; $info_bits=0;
if ($tva_npr) $info_bits |= 0x01; if ($tva_npr) $info_bits |= 0x01;