noalyss-commit
[Top][All Lists]
Advanced

[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)." &euro; ]</A>";
+       echo "<A class=\"detail\"  href=\"javascript:void(0)\" 
onclick=\"viewOperation('".$element."',".$gDossier.")\" > 
".$operation->get_internal()." [ ".nbm($l_amount,2)." &euro; ]</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 &euro; ]</A>";
+       echo "<A class=\"detail\" 
HREF=\"javascript:viewOperation('".$element."',".$gDossier.")\" > 
".$operation->get_internal()." [ ".nbm($l_amount,2)." &euro; ]</A>";
       }//for
     }// if ( $a != null ) {
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]