Fix: [bug 227] LocalTaxes: Suppliers calculate problem

This commit is contained in:
Juanjo Menent 2011-11-02 21:06:21 +01:00
parent 0c8e4b8f1b
commit 2f7365043c

View File

@ -415,8 +415,8 @@ if ($action == 'update_line')
if (trim($_POST['label']) != trim($label)) $label=$_POST['label'];
$type = $prod->type;
$localtax1_tx = $prod->localtax1_tx;
$localtax2_tx = $prod->localtax2_tx;
$localtax1tx = $prod->localtax1_tx;
$localtax2tx = $prod->localtax2_tx;
}
else
{
@ -474,7 +474,8 @@ if ($action == 'addline')
$type = $product->type;
$result=$object->addline($label, $product->fourn_pu, $tvatx, $localtax2tx, $localtax2tx, $_POST['qty'], $idprod);
$result=$object->addline($label, $product->fourn_pu, $tvatx, $localtax1tx, $localtax2tx, $_POST['qty'], $idprod);
}
if ($idprod == -1)
{