From 82206db80bfb5b2acdec6a9a13f27544afb9fa09 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 10 Mar 2005 14:14:33 +0000 Subject: [PATCH] Indique le montant en valeur absolue dans les paiements --- htdocs/compta/export/modules/compta.export.poivre.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/compta/export/modules/compta.export.poivre.class.php b/htdocs/compta/export/modules/compta.export.poivre.class.php index eb316ccac25..c5c0c8b1f95 100644 --- a/htdocs/compta/export/modules/compta.export.poivre.class.php +++ b/htdocs/compta/export/modules/compta.export.poivre.class.php @@ -264,7 +264,7 @@ class ComptaExportPoivre $page->write_string($j,4, stripslashes($linep[$i][3])." ".stripslashes($linep[$i][6])); // $page->write_string($j,5, $linep[$i][7]); // Numéro de facture - $page->write($j,6, ereg_replace(",",".",round($linep[$i][5], 2))); // Montant de la ligne + $page->write($j,6, ereg_replace(",",".",round(abs($linep[$i][5]), 2))); // Montant de la ligne $page->write_string($j,7,$debit); $j++; @@ -276,7 +276,7 @@ class ComptaExportPoivre $page->write_string($j,3, $linep[$i][2]); $page->write_string($j,4, stripslashes($linep[$i][3])." ".stripslashes($linep[$i][6])); // $page->write_string($j,5, $linep[$i][7]); // Numéro de facture - $page->write($j,6, ereg_replace(",",".",round($linep[$i][5], 2))); // Montant de la ligne + $page->write($j,6, ereg_replace(",",".",round(abs($linep[$i][5]), 2))); // Montant de la ligne $page->write_string($j,7, $credit); $j++;