Skip to content

Commit

Permalink
Merge pull request #52 from simnandez/develop
Browse files Browse the repository at this point in the history
Cherry Pick 3.1 to develop
  • Loading branch information
hregis committed Nov 20, 2011
2 parents afaae39 + 75fa989 commit 2f100d0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion htdocs/core/photos_resize.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
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"]))
Expand Down Expand Up @@ -207,4 +208,4 @@


llxFooter();
?>
?>
18 changes: 12 additions & 6 deletions htdocs/fourn/commande/fiche.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@
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
Expand All @@ -143,12 +149,12 @@
$productsupplier = new ProductFournisseur($db);
$idprod=$productsupplier->get_buyprice($_POST['idprodfournprice'], $qty);

//$societe='';
if ($object->socid)
{
$societe=new Societe($db);
$societe->fetch($object->socid);
}
//$societe='';
/*if ($object->socid)
{
$societe=new Societe($db);
$societe->fetch($object->socid);
}*/

if ($idprod > 0)
{
Expand Down

0 comments on commit 2f100d0

Please sign in to comment.