Fix stats on tickets
This commit is contained in:
parent
4c01f33228
commit
9e9d88f28c
@ -1564,7 +1564,7 @@ class CommandeFournisseur extends CommonOrder
|
|||||||
{
|
{
|
||||||
// Check quantity is enough
|
// 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);
|
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)
|
if ($prod->fetch($fk_product) > 0)
|
||||||
{
|
{
|
||||||
$product_type = $prod->type;
|
$product_type = $prod->type;
|
||||||
|
|||||||
@ -442,7 +442,7 @@ class SupplierProposal extends CommonObject
|
|||||||
{
|
{
|
||||||
// Check quantity is enough
|
// 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);
|
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)
|
if ($prod->fetch($fk_product) > 0)
|
||||||
{
|
{
|
||||||
$product_type = $prod->type;
|
$product_type = $prod->type;
|
||||||
|
|||||||
@ -261,7 +261,7 @@ print '</table>';
|
|||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
// Build graphic number of object
|
// Build graphic number of object
|
||||||
$data = $stats->getNbByMonth($endyear, $startyear);
|
$data = $stats->getNbByMonthWithPrevYear($endyear, $startyear);
|
||||||
|
|
||||||
print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
|
print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user