Skip to content

Commit

Permalink
cvsimport
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 11, 2011
2 parents a549823 + 950dfee commit 9fc7b00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions htdocs/compta/facture.php
Expand Up @@ -902,7 +902,7 @@
// Ecrase $base_price_type par celui du produit
if ($_POST['idprod'])
{
$prod = new Product($db, $_POST['idprod']);
$prod = new Product($db);
$prod->fetch($_POST['idprod']);

$tva_tx = get_default_tva($mysoc,$object->client,$prod->id);
Expand Down Expand Up @@ -1883,7 +1883,7 @@

$result=$object->fetch_thirdparty();

$soc = new Societe($db, $object->socid);
$soc = new Societe($db);
$soc->fetch($object->socid);

$totalpaye = $object->getSommePaiement();
Expand Down
2 changes: 1 addition & 1 deletion htdocs/compta/facture/class/facture.class.php
Expand Up @@ -372,7 +372,7 @@ function create($user,$notrigger=0,$forceduedate=0)
{
if ($_facrec->lines[$i]->fk_product)
{
$prod = new Product($this->db, $_facrec->lines[$i]->fk_product);
$prod = new Product($this->db);
$res=$prod->fetch($_facrec->lines[$i]->fk_product);
}
$tva_tx = get_default_tva($mysoc,$soc,$prod->id);
Expand Down

0 comments on commit 9fc7b00

Please sign in to comment.