[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 32/173: New function findSide return D if num
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 32/173: New function findSide return D if number is <0 |
Date: |
Mon, 22 Mar 2021 12:58:31 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 7b488dfd3964fbf6877b95d222fb6a4876093e03
Author: Dany De Bontridder <dany@alchimerys.be>
AuthorDate: Tue Jan 8 17:53:22 2019 +0100
New function findSide return D if number is <0
---
include/lib/ac_common.php | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/include/lib/ac_common.php b/include/lib/ac_common.php
index c57d20a..ca7d654 100644
--- a/include/lib/ac_common.php
+++ b/include/lib/ac_common.php
@@ -114,6 +114,22 @@ function nb($p_number)
}
/**
+ * return D if the number is smaller than 0 , C if bigger and an empty string
if
+ * equal to 0. Used for displaying saldo D / C (debit / credit )
+ * @param float $p_number
+ */
+function findSide($p_number)
+{
+ $return ='';
+ if ( $p_number > 0 ) {
+ $return ='D';
+ }else {
+ $return =($p_number== 0)?"":"C";
+ }
+ return $return;
+}
+
+/**
* format the number with a sep. for the thousand
* @param $p_number number
* @param $p_dec number of decimal to display
- [Noalyss-commit] [noalyss] 15/173: Translation, (continued)
- [Noalyss-commit] [noalyss] 15/173: Translation, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 19/173: Translation, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 24/173: Currency : meaning 1 EUR is worth x currency for Sales, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 30/173: Currency : detail operation Sale , the amount in currency were wrong in the summary, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 20/173: Misc. Operation : input : Missing tag TR, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 22/173: Currency : Precision 6, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 25/173: Currency : the meaning is : 1 euro is worth xxx Currency , so we divide the amount with the currency rate to compute the EUR value, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 29/173: Currency : purchase, save all detail also in currency, fix problem with the advance payment, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 33/173: Fix problem with total in balance export, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 31/173: Task #1660 : place the button for the inventory on the top, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 32/173: New function findSide return D if number is <0,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 35/173: Task #0001309: Association d'une opération avec elle-même., Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 36/173: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 41/173: PHP 7.2 incomptability : sizeof of not array, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 45/173: Database upgrade, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 53/173: Mantis #0001682: CA - ajouter possibilité d'exporter le plan analytique, missing file, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 56/173: Mantis #1626: AFFICHAGE BALANCE FICHE - soldes nuls au débit, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 58/173: Mantis #1665: Pouvoir modifier l'ordre dans les listing de compta analytique, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 59/173: Mantis #1596: Dans le plan comptable, fiches non cliquables Les fiches sont cliquable dans Plan Comptable , PCMNCFG et dans la liste des postes, en plus on peut obtenir toutes les fiches d'un poste, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 42/173: Currency - fix view, Dany De Bontridder, 2021/03/22
- [Noalyss-commit] [noalyss] 52/173: Mantis #0001682: CA - ajouter possibilité d'exporter le plan analytique, add action CSV:Analytic_Axis, Dany De Bontridder, 2021/03/22