noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 03/03: Task #1131 - Esthétique historique fi


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 03/03: Task #1131 - Esthétique historique fiches: corriger mode de qualification du solde (D/C). #1131
Date: Sat, 20 Jun 2015 09:27:32 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 77130788f5b50f8766f02a01958a328a51c103c6
Author: Dany De Bontridder <address@hidden>
Date:   Sat Jun 20 11:01:20 2015 +0200

    Task #1131 - Esthétique historique fiches: corriger mode de qualification 
du solde (D/C).
    #1131
---
 include/fiche.inc.php |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/include/fiche.inc.php b/include/fiche.inc.php
index 058294d..1af01df 100644
--- a/include/fiche.inc.php
+++ b/include/fiche.inc.php
@@ -575,12 +575,17 @@ for ($e = 0; $e < count($afiche); $e++)
                echo td(nbm($amount_cred), ' 
style="font-weight:bold;text-align:right"');
                echo '</tr>';
                echo '<tr>';
-               if ($amount_deb > $amount_cred)
+                $solde=abs(round($amount_cred - $amount_deb, 2));
+                if ( $solde == 0)
+                {
+                    $s='solde';
+                }
+                else if ($amount_deb > $amount_cred)
                        $s = 'solde débiteur';
                else
                        $s = 'solde crediteur';
                echo td($s);
-               echo td(nbm(abs(round($amount_cred - $amount_deb, 2))), ' 
style="font-weight:bold;text-align:right"');
+               echo td(nbm($solde), ' 
style="font-weight:bold;text-align:right"');
                echo '</tr>';
                echo '</table>';
        }



reply via email to

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