External user must not have graph box with all stats
This commit is contained in:
parent
55a51a9724
commit
50e3049fd7
@ -115,11 +115,10 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
|||||||
if (empty($endyear)) $endyear=$nowarray['year'];
|
if (empty($endyear)) $endyear=$nowarray['year'];
|
||||||
$startyear=$endyear-1;
|
$startyear=$endyear-1;
|
||||||
$mode='customer';
|
$mode='customer';
|
||||||
$userid=0;
|
|
||||||
$WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
|
$WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
|
||||||
$HEIGHT='192';
|
$HEIGHT='192';
|
||||||
|
|
||||||
$stats = new FactureStats($this->db, 0, $mode, ($userid>0?$userid:0));
|
$stats = new FactureStats($this->db, $socid, $mode, 0);
|
||||||
|
|
||||||
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
||||||
if ($shownb)
|
if ($shownb)
|
||||||
|
|||||||
@ -114,11 +114,10 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
|||||||
if (empty($endyear)) $endyear=$nowarray['year'];
|
if (empty($endyear)) $endyear=$nowarray['year'];
|
||||||
$startyear=$endyear-1;
|
$startyear=$endyear-1;
|
||||||
$mode='supplier';
|
$mode='supplier';
|
||||||
$userid=0;
|
|
||||||
$WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
|
$WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
|
||||||
$HEIGHT='192';
|
$HEIGHT='192';
|
||||||
|
|
||||||
$stats = new FactureStats($this->db, 0, $mode, ($userid>0?$userid:0));
|
$stats = new FactureStats($this->db, $socid, $mode, 0);
|
||||||
|
|
||||||
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
||||||
if ($shownb)
|
if ($shownb)
|
||||||
|
|||||||
@ -115,11 +115,10 @@ class box_graph_orders_permonth extends ModeleBoxes
|
|||||||
if (empty($endyear)) $endyear=$nowarray['year'];
|
if (empty($endyear)) $endyear=$nowarray['year'];
|
||||||
$startyear=$endyear-1;
|
$startyear=$endyear-1;
|
||||||
$mode='customer';
|
$mode='customer';
|
||||||
$userid=0;
|
|
||||||
$WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
|
$WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
|
||||||
$HEIGHT='192';
|
$HEIGHT='192';
|
||||||
|
|
||||||
$stats = new CommandeStats($this->db, 0, $mode, ($userid>0?$userid:0));
|
$stats = new CommandeStats($this->db, $socid, $mode, 0);
|
||||||
|
|
||||||
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
||||||
if ($shownb)
|
if ($shownb)
|
||||||
|
|||||||
@ -114,11 +114,10 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
|||||||
if (empty($endyear)) $endyear=$nowarray['year'];
|
if (empty($endyear)) $endyear=$nowarray['year'];
|
||||||
$startyear=$endyear-1;
|
$startyear=$endyear-1;
|
||||||
$mode='supplier';
|
$mode='supplier';
|
||||||
$userid=0;
|
|
||||||
$WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
|
$WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
|
||||||
$HEIGHT='192';
|
$HEIGHT='192';
|
||||||
|
|
||||||
$stats = new CommandeStats($this->db, 0, $mode, ($userid>0?$userid:0));
|
$stats = new CommandeStats($this->db, $socid, $mode, 0);
|
||||||
|
|
||||||
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
||||||
if ($shownb)
|
if ($shownb)
|
||||||
|
|||||||
@ -115,11 +115,10 @@ class box_graph_propales_permonth extends ModeleBoxes
|
|||||||
if (empty($endyear)) $endyear=$nowarray['year'];
|
if (empty($endyear)) $endyear=$nowarray['year'];
|
||||||
$startyear=$endyear-1;
|
$startyear=$endyear-1;
|
||||||
$mode='customer';
|
$mode='customer';
|
||||||
$userid=0;
|
|
||||||
$WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
|
$WIDTH=(($shownb && $showtot) || ! empty($conf->dol_optimize_smallscreen))?'256':'320';
|
||||||
$HEIGHT='192';
|
$HEIGHT='192';
|
||||||
|
|
||||||
$stats = new PropaleStats($this->db, 0, $mode, ($userid>0?$userid:0));
|
$stats = new PropaleStats($this->db, $socid, $mode, 0);
|
||||||
|
|
||||||
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
// Build graphic number of object. $data = array(array('Lib',val1,val2,val3),...)
|
||||||
if ($shownb)
|
if ($shownb)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user