diff --git a/htdocs/fourn/class/fournisseur.commande.class.php b/htdocs/fourn/class/fournisseur.commande.class.php index ab5f2204c83..b46077ee930 100644 --- a/htdocs/fourn/class/fournisseur.commande.class.php +++ b/htdocs/fourn/class/fournisseur.commande.class.php @@ -1564,7 +1564,7 @@ class CommandeFournisseur extends CommonOrder { // Check quantity is enough dol_syslog(get_class($this)."::addline we check supplier prices fk_product=".$fk_product." fk_prod_fourn_price=".$fk_prod_fourn_price." qty=".$qty." ref_supplier=".$ref_supplier); - $prod = new Product($this->db, $fk_product); + $prod = new Product($this->db); if ($prod->fetch($fk_product) > 0) { $product_type = $prod->type; diff --git a/htdocs/supplier_proposal/class/supplier_proposal.class.php b/htdocs/supplier_proposal/class/supplier_proposal.class.php index dede1c9eec9..390533a3339 100644 --- a/htdocs/supplier_proposal/class/supplier_proposal.class.php +++ b/htdocs/supplier_proposal/class/supplier_proposal.class.php @@ -442,7 +442,7 @@ class SupplierProposal extends CommonObject { // Check quantity is enough dol_syslog(get_class($this)."::addline we check supplier prices fk_product=".$fk_product." fk_fournprice=".$fk_fournprice." qty=".$qty." ref_supplier=".$ref_supplier); - $prod = new Product($this->db, $fk_product); + $prod = new Product($this->db); if ($prod->fetch($fk_product) > 0) { $product_type = $prod->type; diff --git a/htdocs/ticket/index.php b/htdocs/ticket/index.php index d749aa25f02..dd95bd1bdf0 100644 --- a/htdocs/ticket/index.php +++ b/htdocs/ticket/index.php @@ -261,7 +261,7 @@ print ''; print ''; // Build graphic number of object -$data = $stats->getNbByMonth($endyear, $startyear); +$data = $stats->getNbByMonthWithPrevYear($endyear, $startyear); print '