2
0
forked from Wavyzz/dolibarr

Fix stats on tickets

This commit is contained in:
Laurent Destailleur
2019-11-05 16:06:08 +01:00
parent 4c01f33228
commit 9e9d88f28c
3 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -261,7 +261,7 @@ print '</table>';
print '</div>';
// Build graphic number of object
$data = $stats->getNbByMonth($endyear, $startyear);
$data = $stats->getNbByMonthWithPrevYear($endyear, $startyear);
print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';