More complete dependencies
This commit is contained in:
parent
1d02f6446f
commit
0e9720a4b5
@ -31,11 +31,10 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
var $boxcode="productdistribution";
|
var $boxcode="productdistribution";
|
||||||
var $boximg="object_product";
|
var $boximg="object_product";
|
||||||
var $boxlabel="BoxProductDistribution";
|
var $boxlabel="BoxProductDistribution";
|
||||||
var $depends = array("product|service");
|
var $depends = array("product|service","facture|propal|commande");
|
||||||
|
|
||||||
var $db;
|
var $db;
|
||||||
var $param;
|
var $param;
|
||||||
var $enabled=1;
|
|
||||||
|
|
||||||
var $info_box_head = array();
|
var $info_box_head = array();
|
||||||
var $info_box_contents = array();
|
var $info_box_contents = array();
|
||||||
@ -52,7 +51,6 @@ class box_graph_product_distribution extends ModeleBoxes
|
|||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
$this->db=$db;
|
$this->db=$db;
|
||||||
$this->enabled=($conf->facture->enabled || $conf->propal->enabled || $conf->commande->enabled);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user