Fix: use bad var
This commit is contained in:
parent
828716420b
commit
1cdd77a671
@ -334,7 +334,7 @@ if ($action == 'addline' && $user->rights->fournisseur->commande->creer)
|
||||
else
|
||||
{
|
||||
$ttc = price2num($_POST['price_ttc']);
|
||||
$ht = $ttc / (1 + ($tauxtva / 100));
|
||||
$ht = $ttc / (1 + ($tva_tx / 100));
|
||||
$price_base_type = 'HT';
|
||||
$result=$object->addline($desc, $ht, $qty, $tva_tx, $localtax1_tx, $localtax2_tx, 0, 0, '', $remise_percent, $price_base_type, $ttc, $type,'','', $date_start, $date_end);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user