From a7df75183d054112a18f22b89a05f8b29ac3eb09 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 11 Oct 2013 21:29:38 +0000 Subject: [PATCH] =?UTF-8?q?Montant=20n=C3=A9gatif=20pour=20ACH=20et=20VEN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/impress_jrn.inc.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/impress_jrn.inc.php b/include/impress_jrn.inc.php index a2e4db052..1c789da0d 100644 --- a/include/impress_jrn.inc.php +++ b/include/impress_jrn.inc.php @@ -350,7 +350,12 @@ if (isset($_REQUEST['bt_html'])) } else { - echo nbm($line['montant']) ; + if ( isset ($line['TVAC'])) { + echo ( nbm($line['TVAC']) < 0 ) ? " - " . nbm($line['TVAC']) . "" : nbm($line['TVAC']); + } else + { + echo nbm($line['montant']) ; + } } echo ""; echo "";