[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 49/173: Mantis #0001688: Affichage centime da
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 49/173: Mantis #0001688: Affichage centime dans l'écran de confirmation |
Date: |
Mon, 22 Mar 2021 12:58:38 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 5f55c2731c9ee8b6e0e9912d9ef68806b7935b40
Author: Dany De Bontridder <dany@alchimerys.be>
AuthorDate: 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] 16/173: Translation, (continued)
- [Noalyss-commit] [noalyss] 16/173: Translation, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 17/173: Translation, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 23/173: Currency : precision 6, display default currency , protect used currency against delete, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 27/173: Currency : detail operation Purchase , the amount in currency were wrong in the summary, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 37/173: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 38/173: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 39/173: Currency : because of Misc Operation, the tiers must also be saved into operation_currency. Fix also PRINTJRN for currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 44/173: Currency Show currency info for MISC, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 46/173: Typo, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 48/173: translation, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 49/173: Mantis #0001688: Affichage centime dans l'écran de confirmation,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 50/173: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 51/173: Mantis #0001666: Export CSV depuis histo ne filtre pas par journal, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 54/173: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 55/173: mantis #1690: Bug : impossible d'utiliser < dans Inplace_Edit Use base64_decode to protect the string in serialize, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 57/173: Mantis #1643: Déplacement du "bouton" «retour en-haut/calculatrice», Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 60/173: Mantis #0001614: Problème bilans , changement pour bilan ASBL, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 61/173: Mantis #1611: Problème Plan comptable - mise en évidence poste utilisés, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 62/173: Bug : CARD misplace of "Search Card", Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 63/173: Fix bug from merge, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 65/173: Merge issue : inappropriate rollback, Dany De Bontridder, 2021/03/22