Merge pull request #22708 from bb2a/FIX---php-8-totalarray
FIX - php 8 warnings, totalarray commande liste
This commit is contained in:
commit
1431d7fa2a
@ -2215,7 +2215,11 @@ if ($resql) {
|
|||||||
if (!$i) {
|
if (!$i) {
|
||||||
$totalarray['pos'][$totalarray['nbfield']] = 'c.total_tva';
|
$totalarray['pos'][$totalarray['nbfield']] = 'c.total_tva';
|
||||||
}
|
}
|
||||||
$totalarray['val']['c.total_tva'] += $obj->total_tva;
|
if (isset($totalarray['val']['c.total_tva'])) {
|
||||||
|
$totalarray['val']['c.total_tva'] += $obj->total_tva;
|
||||||
|
} else {
|
||||||
|
$totalarray['val']['c.total_tva'] = $obj->total_tva;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Amount TTC / gross
|
// Amount TTC / gross
|
||||||
@ -2227,7 +2231,11 @@ if ($resql) {
|
|||||||
if (!$i) {
|
if (!$i) {
|
||||||
$totalarray['pos'][$totalarray['nbfield']] = 'c.total_ttc';
|
$totalarray['pos'][$totalarray['nbfield']] = 'c.total_ttc';
|
||||||
}
|
}
|
||||||
$totalarray['val']['c.total_ttc'] += $obj->total_ttc;
|
if (isset($totalarray['val']['c.total_ttc'])) {
|
||||||
|
$totalarray['val']['c.total_ttc'] += $obj->total_ttc;
|
||||||
|
} else {
|
||||||
|
$totalarray['val']['c.total_ttc'] = $obj->total_ttc;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Currency
|
// Currency
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user