diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index cd489412845..09935f1fe47 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -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) {