php v8 warning
This commit is contained in:
parent
b8de54aac0
commit
7dc93b3544
@ -144,6 +144,8 @@ llxHeader();
|
|||||||
|
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
|
|
||||||
|
$exportlink="";
|
||||||
|
$namelink="";
|
||||||
// Affiche en-tete du rapport
|
// Affiche en-tete du rapport
|
||||||
if ($modecompta == "CREANCES-DETTES") {
|
if ($modecompta == "CREANCES-DETTES") {
|
||||||
$name = $langs->trans("Turnover");
|
$name = $langs->trans("Turnover");
|
||||||
@ -254,6 +256,11 @@ $sql .= " ORDER BY dm";
|
|||||||
|
|
||||||
$minyearmonth = $maxyearmonth = 0;
|
$minyearmonth = $maxyearmonth = 0;
|
||||||
|
|
||||||
|
$cum = Array();
|
||||||
|
$cum_ht = Array();
|
||||||
|
$total_ht = Array();
|
||||||
|
$total = Array();
|
||||||
|
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
@ -395,6 +402,12 @@ for ($mois = 1 + $nb_mois_decalage; $mois <= 12 + $nb_mois_decalage; $mois++) {
|
|||||||
$case = dol_print_date(dol_mktime(1, 1, 1, $mois_modulo, 1, $annee_decalage), "%Y-%m");
|
$case = dol_print_date(dol_mktime(1, 1, 1, $mois_modulo, 1, $annee_decalage), "%Y-%m");
|
||||||
$caseprev = dol_print_date(dol_mktime(1, 1, 1, $mois_modulo, 1, $annee_decalage - 1), "%Y-%m");
|
$caseprev = dol_print_date(dol_mktime(1, 1, 1, $mois_modulo, 1, $annee_decalage - 1), "%Y-%m");
|
||||||
|
|
||||||
|
$total_ht[$annee]=0;
|
||||||
|
$total[$annee]=0;
|
||||||
|
$cum_ht[$case]=0;
|
||||||
|
$cum[$case]=0;
|
||||||
|
|
||||||
|
|
||||||
if ($annee >= $year_start) { // We ignore $annee < $year_start, we loop on it to be able to make delta, nothing is output.
|
if ($annee >= $year_start) { // We ignore $annee < $year_start, we loop on it to be able to make delta, nothing is output.
|
||||||
if ($modecompta == 'CREANCES-DETTES') {
|
if ($modecompta == 'CREANCES-DETTES') {
|
||||||
// Value turnover of month w/o VAT
|
// Value turnover of month w/o VAT
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user