|
@@ -349,6 +349,9 @@ if ($modecompta == 'CREANCES-DETTES') {
|
|
|
//var_dump($result);
|
|
|
//$r = $AccCat->calculate($result);
|
|
|
$r = dol_eval($result, 1, 1, '1');
|
|
|
+ if (is_nan($r)) {
|
|
|
+ $r = 0;
|
|
|
+ }
|
|
|
|
|
|
print '<td class="liste_total right"><span class="amount">'.price($r).'</span></td>';
|
|
|
}
|
|
@@ -373,6 +376,9 @@ if ($modecompta == 'CREANCES-DETTES') {
|
|
|
|
|
|
//$r = $AccCat->calculate($result);
|
|
|
$r = dol_eval($result, 1, 1, '1');
|
|
|
+ if (is_nan($r)) {
|
|
|
+ $r = 0;
|
|
|
+ }
|
|
|
|
|
|
print '<td class="liste_total right"><span class="amount">'.price($r).'</span></td>';
|
|
|
if (empty($sommes[$code]['N'])) {
|
|
@@ -392,6 +398,9 @@ if ($modecompta == 'CREANCES-DETTES') {
|
|
|
|
|
|
//$r = $AccCat->calculate($result);
|
|
|
$r = dol_eval($result, 1, 1, '1');
|
|
|
+ if (is_nan($r)) {
|
|
|
+ $r = 0;
|
|
|
+ }
|
|
|
|
|
|
print '<td class="liste_total right"><span class="amount">'.price($r).'</span></td>';
|
|
|
if (empty($sommes[$code]['M'][$k])) {
|
|
@@ -412,6 +421,9 @@ if ($modecompta == 'CREANCES-DETTES') {
|
|
|
|
|
|
//$r = $AccCat->calculate($result);
|
|
|
$r = dol_eval($result, 1, 1, '1');
|
|
|
+ if (is_nan($r)) {
|
|
|
+ $r = 0;
|
|
|
+ }
|
|
|
|
|
|
print '<td class="liste_total right"><span class="amount">'.price($r).'</span></td>';
|
|
|
if (empty($sommes[$code]['M'][$k])) {
|