Fix travis

This commit is contained in:
Alexandre SPANGARO 2019-07-27 07:56:33 +02:00
parent 053ae8224b
commit 83e2f71e07
6 changed files with 24 additions and 14 deletions

View File

@ -149,7 +149,8 @@ class box_graph_invoices_permonth extends ModeleBoxes
$i=$startyear;$legend=array();
while ($i <= $endyear)
{
if ($startmonth != 0) {
if ($startmonth != 0)
{
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
}
else
@ -193,7 +194,8 @@ class box_graph_invoices_permonth extends ModeleBoxes
$i=$startyear;$legend=array();
while ($i <= $endyear)
{
if ($startmonth != 0) {
if ($startmonth != 0)
{
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
}
else

View File

@ -146,7 +146,8 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
$i=$startyear;$legend=array();
while ($i <= $endyear)
{
if ($startmonth != 0) {
if ($startmonth != 0)
{
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
}
else
@ -190,7 +191,8 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
$i=$startyear;$legend=array();
while ($i <= $endyear)
{
if ($startmonth != 0) {
if ($startmonth != 0)
{
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
}
else

View File

@ -147,7 +147,8 @@ class box_graph_orders_permonth extends ModeleBoxes
$i=$startyear;$legend=array();
while ($i <= $endyear)
{
if ($startmonth != 0) {
if ($startmonth != 0)
{
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
}
else
@ -189,7 +190,8 @@ class box_graph_orders_permonth extends ModeleBoxes
$i=$startyear;$legend=array();
while ($i <= $endyear)
{
if ($startmonth != 0) {
if ($startmonth != 0)
{
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
}
else

View File

@ -146,7 +146,8 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
$i=$startyear;$legend=array();
while ($i <= $endyear)
{
if ($startmonth != 0) {
if ($startmonth != 0)
{
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
}
else
@ -188,7 +189,8 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
$i=$startyear;$legend=array();
while ($i <= $endyear)
{
if ($startmonth != 0) {
if ($startmonth != 0)
{
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
}
else

View File

@ -147,7 +147,8 @@ class box_graph_propales_permonth extends ModeleBoxes
$i=$startyear;$legend=array();
while ($i <= $endyear)
{
if ($startmonth != 0) {
if ($startmonth != 0)
{
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
}
else
@ -192,7 +193,8 @@ class box_graph_propales_permonth extends ModeleBoxes
$i=$startyear;$legend=array();
while ($i <= $endyear)
{
if ($startmonth != 0) {
if ($startmonth != 0)
{
$legend[]=sprintf("%d/%d",$i-2001, $i-2000);
}
else

View File

@ -40,11 +40,11 @@ abstract class Stats
* @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 $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
*/
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;
@ -140,10 +140,10 @@ abstract class Stats
* @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 $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
*/
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;