forked from Wavyzz/dolibarr
Fix stats on tickets
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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">';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user