Clean code
This commit is contained in:
parent
4a43ed2852
commit
d39ab4c288
@ -145,9 +145,9 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
|||||||
|
|
||||||
$filenamenb = $dir."/".$prefix."invoicesnbinyear-".$endyear.".png";
|
$filenamenb = $dir."/".$prefix."invoicesnbinyear-".$endyear.".png";
|
||||||
// default value for customer mode
|
// default value for customer mode
|
||||||
$fileurlnb = DOL_URL_ROOT.'/viewimage.php?modulepart=billstats&file=invoicesnbinyear-'.$endyear.'.png';
|
$fileurlnb = DOL_URL_ROOT.'/viewimage.php?modulepart=billstats&file=invoicesnbinyear-'.$endyear.'.png';
|
||||||
if ($mode == 'supplier') {
|
if ($mode == 'supplier') {
|
||||||
$fileurlnb = DOL_URL_ROOT.'/viewimage.php?modulepart=billstatssupplier&file=invoicessuppliernbinyear-'.$endyear.'.png';
|
$fileurlnb = DOL_URL_ROOT.'/viewimage.php?modulepart=billstatssupplier&file=invoicessuppliernbinyear-'.$endyear.'.png';
|
||||||
}
|
}
|
||||||
|
|
||||||
$px1 = new DolGraph();
|
$px1 = new DolGraph();
|
||||||
|
|||||||
@ -129,8 +129,10 @@ class box_graph_invoices_peryear extends ModeleBoxes
|
|||||||
|
|
||||||
$filenamenb = $dir."/".$prefix."invoicesamountyears-".$endyear.".png";
|
$filenamenb = $dir."/".$prefix."invoicesamountyears-".$endyear.".png";
|
||||||
// default value for customer mode
|
// default value for customer mode
|
||||||
$fileurlnb = DOL_URL_ROOT.'/viewimage.php?modulepart=billstats&file=invoicesamountyears-'.$endyear.'.png';
|
$fileurlnb = DOL_URL_ROOT.'/viewimage.php?modulepart=billstats&file=invoicesamountyears-'.$endyear.'.png';
|
||||||
if ($mode == 'supplier') $fileurlnb = DOL_URL_ROOT.'/viewimage.php?modulepart=billstatssupplier&file=invoicessupplieramountyears-'.$endyear.'.png';
|
if ($mode == 'supplier') {
|
||||||
|
$fileurlnb = DOL_URL_ROOT.'/viewimage.php?modulepart=billstatssupplier&file=invoicessupplieramountyears-'.$endyear.'.png';
|
||||||
|
}
|
||||||
|
|
||||||
$px2 = new DolGraph();
|
$px2 = new DolGraph();
|
||||||
$mesg = $px2->isGraphKo();
|
$mesg = $px2->isGraphKo();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user