noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 02/16: Mantis #0001688: Affichage centime da


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/16: Mantis #0001688: Affichage centime dans l'écran de confirmation
Date: Sun, 3 Feb 2019 14:38:40 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 381086a4193446b63f83833fae5f58bfeb03f74d
Author: Dany De Bontridder <address@hidden>
Date:   Wed Jan 23 20:40:44 2019 +0100

    Mantis #0001688: Affichage centime dans l'écran de confirmation
---
 include/class/acc_ledger_fin.class.php | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

diff --git a/include/class/acc_ledger_fin.class.php 
b/include/class/acc_ledger_fin.class.php
index 4c2ab45..d361faa 100644
--- a/include/class/acc_ledger_fin.class.php
+++ b/include/class/acc_ledger_fin.class.php
@@ -631,10 +631,21 @@ class Acc_Ledger_Fin extends Acc_Ledger
                $r.="</TABLE>";
 
                // saldo
-               $r.='<br>'.sprintf(_("Ancien solde = %d"), $solde);
+        $r.="<table>";
+        $r.=tr(
+            td(_("Ancien solde")).
+            td(nbm($solde),'class="num"')
+        );
                $new_solde+=$tot_amount;
-               $r.='<br>'.sprintf(_("Nouveau solde = %d"),$new_solde);
-               $r.='<br>'.sprintf(_("Difference = %d"), $tot_amount);
+               $r.=tr(
+                   td(_("Nouveau solde")).
+            td(nbm($new_solde),' class="num"')
+        );
+        $r.=tr(
+            td(_("Difference")).
+            td(nbm($tot_amount),' class="num"')
+        );
+        $r.='</table>';
                // check for upload piece
                $file = new IFile();
 
@@ -939,11 +950,11 @@ class Acc_Ledger_Fin extends Acc_Ledger
                                        // for each item, insert into 
operation_analytique */
                                        $op = new Anc_Operation($this->db);
                                        $op->oa_group = 
$this->db->get_next_seq("s_oa_group"); /* for analytic */
-                                       $op->j_id = $j_id;
+                                       $op->j_id = $j_id_other;
                                        $op->oa_date = $e_date;
                                        $op->oa_debit = 'f';
                                        $op->oa_description = 
sql_string($comment);
-                                       $op->save_form_plan($_POST, $i, $j_id);
+                                       $op->save_form_plan($_POST, $i, 
$j_id_other);
                                }
 
 



reply via email to

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