mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Merge pull request #51 from simnandez/3.1
Fix: [bug 235] Bad local tax control
This commit is contained in:
@@ -33,6 +33,7 @@ require_once(DOL_DOCUMENT_ROOT."/lib/images.lib.php");
|
||||
require_once(DOL_DOCUMENT_ROOT."/product/class/product.class.php");
|
||||
|
||||
$langs->load("products");
|
||||
$langs->load("other");
|
||||
|
||||
$modulepart=$_REQUEST['modulepart']?$_REQUEST['modulepart']:'produit|service';
|
||||
if (isset($_GET["id"]))
|
||||
|
||||
@@ -133,6 +133,12 @@ if ($action == 'addline' && $user->rights->fournisseur->commande->creer)
|
||||
dol_print_error($db,$object->error);
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($object->socid)
|
||||
{
|
||||
$societe=new Societe($db);
|
||||
$societe->fetch($object->socid);
|
||||
}
|
||||
|
||||
// Ecrase $pu par celui du produit
|
||||
// Ecrase $desc par celui du produit
|
||||
@@ -145,11 +151,11 @@ if ($action == 'addline' && $user->rights->fournisseur->commande->creer)
|
||||
$idprod=$product->get_buyprice($_POST['idprodfournprice'], $qty);
|
||||
|
||||
//$societe='';
|
||||
if ($object->socid)
|
||||
/*if ($object->socid)
|
||||
{
|
||||
$societe=new Societe($db);
|
||||
$societe->fetch($object->socid);
|
||||
}
|
||||
}*/
|
||||
|
||||
if ($idprod > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user