[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 169/218: Mantis #0001688: Affichage centime
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 169/218: Mantis #0001688: Affichage centime dans l'écran de confirmation |
Date: |
Thu, 12 Sep 2019 15:59:03 -0400 (EDT) |
sparkyx pushed a commit to branch entreprise
in repository noalyss.
commit 5f55c2731c9ee8b6e0e9912d9ef68806b7935b40
Author: Dany De Bontridder <address@hidden>
Date: Wed Jan 23 21:03:55 2019 +0100
Mantis #0001688: Affichage centime dans l'écran de confirmation
---
include/class/acc_ledger_fin.class.php | 52 +++++++++++++++++++++++++++-------
1 file changed, 41 insertions(+), 11 deletions(-)
diff --git a/include/class/acc_ledger_fin.class.php
b/include/class/acc_ledger_fin.class.php
index df743a4..f07d5ce 100644
--- a/include/class/acc_ledger_fin.class.php
+++ b/include/class/acc_ledger_fin.class.php
@@ -639,24 +639,54 @@ class Acc_Ledger_Fin extends Acc_Ledger
$cur_rate=$acc_currency->get_rate_date($e_date);
$default_currency=new Acc_Currency($this->db , 0);
// saldo
-
- $r.='<br>'.sprintf(_("Ancien solde = %f %s"),$solde,
$cur);
+ $r .= "<table>";
+ $r .= tr(
+ td(_("Ancien solde")) .
+ td(nbm($solde).$cur, 'class="num"')
+ );
$new_solde=bcadd($solde,$tot_amount);
- $r.='<br>'.sprintf(_("Nouveau solde = %f %s"),$new_solde,
$cur);
- $r.='<br>'.sprintf(_("Difference = %f %s"), $tot_amount,
$cur);
+ $r .= tr(
+ td(_("Nouveau solde")) .
+ td(nbm($new_solde).$cur, ' class="num"')
+ );
+ $r .= tr(
+ td(_("Difference")) .
+ td(nbm($tot_amount).$cur, ' class="num"')
+ );
+ $r.=tr(
+ td(_("Taux")).
+ td($cur_rate)
+ );
+ $r.=tr(
+ td(_("Nouveau solde")).
+
td(bcdiv($new_solde,$cur_rate).$default_currency->get_code(), ' class="num"')
+ );
+ $r.='</table>';
+
- $r.='<br>'.sprintf(_("Taux = %s"),$cur_rate);
- $r.='<br>'.sprintf(_("Nouveau solde = %f
%s"),bcdiv($new_solde,$cur_rate),$default_currency->get_code());
+
} else {
$cur=$acc_currency->get_code();
// saldo
-
- $r.='<br>'.sprintf(_("Ancien solde = %f %s"),$solde,
$cur);
- $new_solde=bcadd($new_solde,$tot_amount);
- $r.='<br>'.sprintf(_("Nouveau solde = %f %s"),$new_solde,
$cur);
- $r.='<br>'.sprintf(_("Difference = %f %s"), $tot_amount,
$cur);
+ $r .= "<table>";
+ $r .= tr(
+ td(_("Ancien solde")) .
+ td(nbm($solde).$cur, 'class="num"')
+ );
+ $new_solde=bcadd($solde,$tot_amount);
+ $r .= tr(
+ td(_("Nouveau solde")) .
+ td(nbm($new_solde).$cur, ' class="num"')
+ );
+ $r .= tr(
+ td(_("Difference")) .
+ td(nbm($tot_amount).$cur, ' class="num"')
+ );
+
+ $r.='</table>';
+
}
// check for upload piece
- [Noalyss-commit] [noalyss] 150/218: Currency : detail operation Sale , the amount in currency were wrong in the summary, (continued)
- [Noalyss-commit] [noalyss] 150/218: Currency : detail operation Sale , the amount in currency were wrong in the summary, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 154/218: by default jrn is an empty array, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 164/218: Currency Show currency info for MISC, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 161/218: PHP 7.2 incomptability : sizeof of not array, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 155/218: Task #0001309: Association d'une opération avec elle-même., Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 158/218: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 160/218: Protect parameters, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 167/218: Currency : set default accounting for change difference when using currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 165/218: Database upgrade, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 168/218: translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 169/218: Mantis #0001688: Affichage centime dans l'écran de confirmation,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 176/218: Mantis #1626: AFFICHAGE BALANCE FICHE - soldes nuls au débit, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 177/218: Mantis #1643: Déplacement du "bouton" «retour en-haut/calculatrice», Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 184/218: CSS : cosmetic, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 185/218: Merge issue : inappropriate rollback, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 186/218: Fix Inappropriate merge, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 188/218: Fix broken merge, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 181/218: Mantis #1611: Problème Plan comptable - mise en évidence poste utilisés, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 198/218: Merge branch 'entreprise' of gitlab.noalyss.eu:noalyss/noalyss into entreprise, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 200/218: Merge branch 'master' into entreprise, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 212/218: Periode : when searching for a ledger , you can set a periode, Dany De Bontridder, 2019/09/12