Fix: [bug 227] LocalTaxes: Suppliers calculate problem
This commit is contained in:
parent
0c8e4b8f1b
commit
2f7365043c
@ -415,8 +415,8 @@ if ($action == 'update_line')
|
|||||||
if (trim($_POST['label']) != trim($label)) $label=$_POST['label'];
|
if (trim($_POST['label']) != trim($label)) $label=$_POST['label'];
|
||||||
|
|
||||||
$type = $prod->type;
|
$type = $prod->type;
|
||||||
$localtax1_tx = $prod->localtax1_tx;
|
$localtax1tx = $prod->localtax1_tx;
|
||||||
$localtax2_tx = $prod->localtax2_tx;
|
$localtax2tx = $prod->localtax2_tx;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -474,7 +474,8 @@ if ($action == 'addline')
|
|||||||
|
|
||||||
$type = $product->type;
|
$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)
|
if ($idprod == -1)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user