[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 06/08: cosmetic : 2 digit
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 06/08: cosmetic : 2 digit |
Date: |
Thu, 23 Mar 2023 10:02:01 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit a99916902ded6855f211895d53269ad829e898b0
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Thu Mar 23 12:42:29 2023 +0100
cosmetic : 2 digit
---
include/template/letter_all.php | 3 ++-
include/template/letter_prop.php | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/template/letter_all.php b/include/template/letter_all.php
index d5059aa82..b71cd7e82 100644
--- a/include/template/letter_all.php
+++ b/include/template/letter_all.php
@@ -2,6 +2,7 @@
//This file is part of NOALYSS and is under GPL
//see licence.txt
?><?php
+\Noalyss\Dbg::echo_file(__FILE__);
$amount_deb=0;$amount_cred=0;
$gDossier=dossier::id();
global $g_failed;
@@ -94,7 +95,7 @@ $r=sprintf('<A class="detail"
style="text-decoration:underline" href="javascrip
$operation->jr_id=$element;
$l_amount=$this->db->get_value("select jr_montant from jrn ".
" where jr_id=$element");
- echo "<A class=\"detail\" href=\"javascript:void(0)\"
onclick=\"viewOperation('".$element."',".$gDossier.")\" >
".$operation->get_internal()." [ ".nb($l_amount)." € ]</A>";
+ echo "<A class=\"detail\" href=\"javascript:void(0)\"
onclick=\"viewOperation('".$element."',".$gDossier.")\" >
".$operation->get_internal()." [ ".nbm($l_amount,2)." € ]</A>";
}//for
}// if ( $a != null ) {
// compute amount
diff --git a/include/template/letter_prop.php b/include/template/letter_prop.php
index 4b4b6cd42..845b2d0f2 100644
--- a/include/template/letter_prop.php
+++ b/include/template/letter_prop.php
@@ -138,7 +138,7 @@ $r=sprintf('<A class="detail"
style="text-decoration:underline" HREF="javascrip
$operation->jr_id=$element;
$l_amount=$this->db->get_value("select jr_montant from jrn ".
" where jr_id=$element");
- echo "<A class=\"detail\"
HREF=\"javascript:viewOperation('".$element."',".$gDossier.")\" >
".$operation->get_internal()." [ $l_amount € ]</A>";
+ echo "<A class=\"detail\"
HREF=\"javascript:viewOperation('".$element."',".$gDossier.")\" >
".$operation->get_internal()." [ ".nbm($l_amount,2)." € ]</A>";
}//for
}// if ( $a != null ) {
- [Noalyss-commit] [noalyss] branch master updated (2372c052c -> 863d9cc10), Dany De Bontridder, 2023/03/23
- [Noalyss-commit] [noalyss] 03/08: Improve Debug info, Dany De Bontridder, 2023/03/23
- [Noalyss-commit] [noalyss] 04/08: Merge branch 'r9100-php82' into devel, Dany De Bontridder, 2023/03/23
- [Noalyss-commit] [noalyss] 05/08: Documentation, Dany De Bontridder, 2023/03/23
- [Noalyss-commit] [noalyss] 01/08: WIP ADAPT PHP8.2, Dany De Bontridder, 2023/03/23
- [Noalyss-commit] [noalyss] 06/08: cosmetic : 2 digit,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 02/08: Comptability PHP8.1 cannot use null for trim , replace and Datetime, Dany De Bontridder, 2023/03/23
- [Noalyss-commit] [noalyss] 08/08: Merge branch 'dev9101' into devel, Dany De Bontridder, 2023/03/23
- [Noalyss-commit] [noalyss] 07/08: Bug #2253 LETTRAGE - Problème affichage décimale, Dany De Bontridder, 2023/03/23