From 565de5258f4d9e1a3ee9d22bb0a12ef0d436475d Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Sat, 20 Sep 2014 09:19:26 +0200 Subject: [PATCH] Re-Add subtotal line on compta report (accidentaly remove before) --- htdocs/compta/resultat/clientfourn.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/htdocs/compta/resultat/clientfourn.php b/htdocs/compta/resultat/clientfourn.php index d55930ef80f..e400a9efd8f 100644 --- a/htdocs/compta/resultat/clientfourn.php +++ b/htdocs/compta/resultat/clientfourn.php @@ -601,6 +601,11 @@ else { dol_print_error($db); } +print ''; +if ($modecompta == 'CREANCES-DETTES') + print ''.price(-$subtotal_ht).''; +print ''.price(-$subtotal_ttc).''; +print ''; /* * Dunning @@ -633,8 +638,8 @@ if ($result) $total_ht += $obj->amount; $total_ttc += $obj->amount; - $subtotal_ht -= $obj->amount; - $subtotal_ttc -= $obj->amount; + $subtotal_ht += $obj->amount; + $subtotal_ttc += $obj->amount; $var = !$var; print " "; @@ -661,8 +666,8 @@ else } print ''; if ($modecompta == 'CREANCES-DETTES') - print ''.price(-$subtotal_ht).''; -print ''.price(-$subtotal_ttc).''; + print ''.price($subtotal_ht).''; +print ''.price($subtotal_ttc).''; print ''; /*