minor fix accessing $db
This commit is contained in:
parent
7bde781206
commit
eb504ffacc
@ -3314,23 +3314,23 @@ class Product extends CommonObject
|
|||||||
if (! empty($conf->commande->enabled))
|
if (! empty($conf->commande->enabled))
|
||||||
{
|
{
|
||||||
$result=$this->load_stats_commande(0,'1,2');
|
$result=$this->load_stats_commande(0,'1,2');
|
||||||
if ($result < 0) dol_print_error($db,$this->error);
|
if ($result < 0) dol_print_error($this->db,$this->error);
|
||||||
$stock_commande_client=$this->stats_commande['qty'];
|
$stock_commande_client=$this->stats_commande['qty'];
|
||||||
}
|
}
|
||||||
if (! empty($conf->expedition->enabled))
|
if (! empty($conf->expedition->enabled))
|
||||||
{
|
{
|
||||||
$result=$this->load_stats_sending(0,'1,2');
|
$result=$this->load_stats_sending(0,'1,2');
|
||||||
if ($result < 0) dol_print_error($db,$this->error);
|
if ($result < 0) dol_print_error($this->db,$this->error);
|
||||||
$stock_sending_client=$this->stats_expedition['qty'];
|
$stock_sending_client=$this->stats_expedition['qty'];
|
||||||
}
|
}
|
||||||
if (! empty($conf->fournisseur->enabled))
|
if (! empty($conf->fournisseur->enabled))
|
||||||
{
|
{
|
||||||
$result=$this->load_stats_commande_fournisseur(0,'1,2,3,4');
|
$result=$this->load_stats_commande_fournisseur(0,'1,2,3,4');
|
||||||
if ($result < 0) dol_print_error($db,$this->error);
|
if ($result < 0) dol_print_error($this->db,$this->error);
|
||||||
$stock_commande_fournisseur=$this->stats_commande_fournisseur['qty'];
|
$stock_commande_fournisseur=$this->stats_commande_fournisseur['qty'];
|
||||||
|
|
||||||
$result=$this->load_stats_reception(0,'4');
|
$result=$this->load_stats_reception(0,'4');
|
||||||
if ($result < 0) dol_print_error($db,$this->error);
|
if ($result < 0) dol_print_error($this->db,$this->error);
|
||||||
$stock_reception_fournisseur=$this->stats_reception['qty'];
|
$stock_reception_fournisseur=$this->stats_reception['qty'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user