Fix: [bug 235] Bad local tax control

Conflicts:
	htdocs/fourn/commande/fiche.php
This commit is contained in:
Juanjo Menent 2011-11-20 10:17:14 +01:00
parent afaae396a4
commit d7fce41b8a

View File

@ -133,6 +133,12 @@ if ($action == 'addline' && $user->rights->fournisseur->commande->creer)
exit;
}
if ($object->socid)
{
$societe=new Societe($db);
$societe->fetch($object->socid);
}
// Ecrase $pu par celui du produit
// Ecrase $desc par celui du produit
// Ecrase $txtva par celui du produit
@ -144,11 +150,11 @@ if ($action == 'addline' && $user->rights->fournisseur->commande->creer)
$idprod=$productsupplier->get_buyprice($_POST['idprodfournprice'], $qty);
//$societe='';
if ($object->socid)
/*if ($object->socid)
{
$societe=new Societe($db);
$societe->fetch($object->socid);
}
}*/
if ($idprod > 0)
{