From 852d2e6db508b1bb71d2e7e2ddfa517278fb39f7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 6 Aug 2011 18:44:59 +0000 Subject: [PATCH] Fix: Total is not rounded on user precision --- htdocs/compta/resultat/clientfourn.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/compta/resultat/clientfourn.php b/htdocs/compta/resultat/clientfourn.php index 0cecb922024..125cfe9aa22 100644 --- a/htdocs/compta/resultat/clientfourn.php +++ b/htdocs/compta/resultat/clientfourn.php @@ -20,7 +20,7 @@ /** * \file htdocs/compta/resultat/clientfourn.php * \brief Page reporting - * \version $Id: clientfourn.php,v 1.63 2011/08/03 00:46:31 eldy Exp $ + * \version $Id: clientfourn.php,v 1.64 2011/08/06 18:44:59 eldy Exp $ */ require('../../main.inc.php'); @@ -105,7 +105,7 @@ $html=new Form($db); if ($modecompta=="CREANCES-DETTES") { $nom=$langs->trans("AnnualByCompaniesDueDebtMode"); - $nom.='
('.$langs->trans("SeeReportInInputOutputMode",'','').')'; + $nom.='
('.$langs->trans("SeeReportInInputOutputMode",'','').')'; $period=$html->select_date($date_start,'date_start',0,0,0,'',1,0,1).' - '.$html->select_date($date_end,'date_end',0,0,0,'',1,0,1); //$periodlink=''.img_previous().' '.img_next().''; $description=$langs->trans("RulesResultDue"); @@ -114,7 +114,7 @@ if ($modecompta=="CREANCES-DETTES") } else { $nom=$langs->trans("AnnualByCompaniesInputOutputMode"); - $nom.='
('.$langs->trans("SeeReportInDueDebtMode",'','').')'; + $nom.='
('.$langs->trans("SeeReportInDueDebtMode",'','').')'; //$period=$html->select_date($date_start,'date_start',0,0,0,'',1,0,1).' - '.$html->select_date($date_end,'date_end',1,1,0,'',1,0,1); $period=$html->select_date($date_start,'date_start',0,0,0,'',1,0,1).' - '.$html->select_date($date_end,'date_end',0,0,0,'',1,0,1); //$periodlink=''.img_previous().' '.img_next().''; @@ -663,8 +663,8 @@ else if ($mysoc->tva_assuj != 'franchise') // Assujeti { print ''; - if ($modecompta == 'CREANCES-DETTES') print ''.price($subtotal_ht).''; - print ''.price($subtotal_ttc).''; + if ($modecompta == 'CREANCES-DETTES') print ''.price(price2num($subtotal_ht)).''; + print ''.price(price2num($subtotal_ttc)).''; print ''; } @@ -677,8 +677,8 @@ if ($mysoc->tva_assuj != 'franchise') // Assujeti print ''; print ''.$langs->trans("Profit").''; - if ($modecompta == 'CREANCES-DETTES') print ''.price($total_ht).''; - print ''.price($total_ttc).''; + if ($modecompta == 'CREANCES-DETTES') print ''.price(price2num($total_ht)).''; + print ''.price(price2num($total_ttc)).''; print ''; } @@ -688,5 +688,5 @@ print '
'; $db->close(); -llxFooter('$Date: 2011/08/03 00:46:31 $ - $Revision: 1.63 $'); +llxFooter('$Date: 2011/08/06 18:44:59 $ - $Revision: 1.64 $'); ?>