Fix travis
This commit is contained in:
parent
053ae8224b
commit
83e2f71e07
@ -149,7 +149,8 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
|||||||
$i=$startyear;$legend=array();
|
$i=$startyear;$legend=array();
|
||||||
while ($i <= $endyear)
|
while ($i <= $endyear)
|
||||||
{
|
{
|
||||||
if ($startmonth != 0) {
|
if ($startmonth != 0)
|
||||||
|
{
|
||||||
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -193,7 +194,8 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
|||||||
$i=$startyear;$legend=array();
|
$i=$startyear;$legend=array();
|
||||||
while ($i <= $endyear)
|
while ($i <= $endyear)
|
||||||
{
|
{
|
||||||
if ($startmonth != 0) {
|
if ($startmonth != 0)
|
||||||
|
{
|
||||||
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -146,7 +146,8 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
|||||||
$i=$startyear;$legend=array();
|
$i=$startyear;$legend=array();
|
||||||
while ($i <= $endyear)
|
while ($i <= $endyear)
|
||||||
{
|
{
|
||||||
if ($startmonth != 0) {
|
if ($startmonth != 0)
|
||||||
|
{
|
||||||
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -190,7 +191,8 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
|||||||
$i=$startyear;$legend=array();
|
$i=$startyear;$legend=array();
|
||||||
while ($i <= $endyear)
|
while ($i <= $endyear)
|
||||||
{
|
{
|
||||||
if ($startmonth != 0) {
|
if ($startmonth != 0)
|
||||||
|
{
|
||||||
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -147,7 +147,8 @@ class box_graph_orders_permonth extends ModeleBoxes
|
|||||||
$i=$startyear;$legend=array();
|
$i=$startyear;$legend=array();
|
||||||
while ($i <= $endyear)
|
while ($i <= $endyear)
|
||||||
{
|
{
|
||||||
if ($startmonth != 0) {
|
if ($startmonth != 0)
|
||||||
|
{
|
||||||
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -189,7 +190,8 @@ class box_graph_orders_permonth extends ModeleBoxes
|
|||||||
$i=$startyear;$legend=array();
|
$i=$startyear;$legend=array();
|
||||||
while ($i <= $endyear)
|
while ($i <= $endyear)
|
||||||
{
|
{
|
||||||
if ($startmonth != 0) {
|
if ($startmonth != 0)
|
||||||
|
{
|
||||||
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -146,7 +146,8 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
|||||||
$i=$startyear;$legend=array();
|
$i=$startyear;$legend=array();
|
||||||
while ($i <= $endyear)
|
while ($i <= $endyear)
|
||||||
{
|
{
|
||||||
if ($startmonth != 0) {
|
if ($startmonth != 0)
|
||||||
|
{
|
||||||
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -188,7 +189,8 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
|||||||
$i=$startyear;$legend=array();
|
$i=$startyear;$legend=array();
|
||||||
while ($i <= $endyear)
|
while ($i <= $endyear)
|
||||||
{
|
{
|
||||||
if ($startmonth != 0) {
|
if ($startmonth != 0)
|
||||||
|
{
|
||||||
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -147,7 +147,8 @@ class box_graph_propales_permonth extends ModeleBoxes
|
|||||||
$i=$startyear;$legend=array();
|
$i=$startyear;$legend=array();
|
||||||
while ($i <= $endyear)
|
while ($i <= $endyear)
|
||||||
{
|
{
|
||||||
if ($startmonth != 0) {
|
if ($startmonth != 0)
|
||||||
|
{
|
||||||
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -192,7 +193,8 @@ class box_graph_propales_permonth extends ModeleBoxes
|
|||||||
$i=$startyear;$legend=array();
|
$i=$startyear;$legend=array();
|
||||||
while ($i <= $endyear)
|
while ($i <= $endyear)
|
||||||
{
|
{
|
||||||
if ($startmonth != 0) {
|
if ($startmonth != 0)
|
||||||
|
{
|
||||||
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -40,11 +40,11 @@ abstract class Stats
|
|||||||
* @param int $startyear End year
|
* @param int $startyear End year
|
||||||
* @param int $cachedelay Delay we accept for cache file (0=No read, no save of cache, -1=No read but save)
|
* @param int $cachedelay Delay we accept for cache file (0=No read, no save of cache, -1=No read but save)
|
||||||
* @param int $format 0=Label of absiss is a translated text, 1=Label of absiss is month number, 2=Label of absiss is first letter of month
|
* @param int $format 0=Label of absiss is a translated text, 1=Label of absiss is month number, 2=Label of absiss is first letter of month
|
||||||
* @param int $startmonth month of the fiscal year start minus 1; 0=january
|
* @param int $startmonth month of the fiscal year start min 1 max 12 ; if 0 = january
|
||||||
* @return array Array of values
|
* @return array Array of values
|
||||||
|
|
||||||
*/
|
*/
|
||||||
public function getNbByMonthWithPrevYear($endyear, $startyear, $cachedelay = 0, $format = 0, $startmonth=0)
|
public function getNbByMonthWithPrevYear($endyear, $startyear, $cachedelay = 0, $format = 0, $startmonth = 0)
|
||||||
{
|
{
|
||||||
global $conf,$user,$langs;
|
global $conf,$user,$langs;
|
||||||
|
|
||||||
@ -140,10 +140,10 @@ abstract class Stats
|
|||||||
* @param int $startyear End year
|
* @param int $startyear End year
|
||||||
* @param int $cachedelay Delay we accept for cache file (0=No read, no save of cache, -1=No read but save)
|
* @param int $cachedelay Delay we accept for cache file (0=No read, no save of cache, -1=No read but save)
|
||||||
* @param int $format 0=Label of absiss is a translated text, 1=Label of absiss is month number, 2=Label of absiss is first letter of month
|
* @param int $format 0=Label of absiss is a translated text, 1=Label of absiss is month number, 2=Label of absiss is first letter of month
|
||||||
* @param int $startmonth month of the fiscal year start minus 1; 0=january
|
* @param int $startmonth month of the fiscal year start min 1 max 12 ; if 0 = january
|
||||||
* @return array Array of values
|
* @return array Array of values
|
||||||
*/
|
*/
|
||||||
public function getAmountByMonthWithPrevYear($endyear, $startyear, $cachedelay = 0, $format = 0, $startmonth=0)
|
public function getAmountByMonthWithPrevYear($endyear, $startyear, $cachedelay = 0, $format = 0, $startmonth = 0)
|
||||||
{
|
{
|
||||||
global $conf,$user,$langs;
|
global $conf,$user,$langs;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user