[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 117/218: Currency : cosmetic display history
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 117/218: Currency : cosmetic display history : show only the value of the card/accounting |
Date: |
Thu, 12 Sep 2019 15:58:51 -0400 (EDT) |
sparkyx pushed a commit to branch entreprise
in repository noalyss.
commit 7280cfd320c3ef0a941d6d60e16c1ce154674c95
Author: Dany De Bontridder <address@hidden>
Date: Sun Dec 9 11:12:28 2018 +0100
Currency : cosmetic display history : show only the value of the
card/accounting
---
include/class/acc_account_ledger.class.php | 8 +++++++-
include/class/fiche.class.php | 13 ++++++++++---
2 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/include/class/acc_account_ledger.class.php
b/include/class/acc_account_ledger.class.php
index f588761..bcf3b12 100644
--- a/include/class/acc_account_ledger.class.php
+++ b/include/class/acc_account_ledger.class.php
@@ -474,8 +474,14 @@ class Acc_Account_Ledger
"<TD>".$tiers."</TD>".
"<TD>".h($op['description'])."</TD>".
td($op['jr_optype']);
+ /// If the currency is not the default one , then show
the amount
+ if ( $op['currency_id'] > 0 && $op['oc_amount'] != 0)
+ {
echo td($op['cr_code_iso']).
-
td(nbm(bcadd($op['oc_amount'],$op['oc_vat_amount'],4)),'style="text-align:right;padding-left:10px;"');
+
td(nbm(bcadd($op['oc_amount'],4)),'style="text-align:right;padding-left:10px;"');
+ } else {
+ echo td().td();
+ }
echo
"<TD
style=\"text-align:right;padding-left:10px;\">".nbm($op['deb_montant'])."</TD>".
diff --git a/include/class/fiche.class.php b/include/class/fiche.class.php
index 6f62be3..6beb6df 100644
--- a/include/class/fiche.class.php
+++ b/include/class/fiche.class.php
@@ -1471,7 +1471,7 @@ class Fiche
"<TH style=\"text-align:left\">"._('Description')." </TH>".
"<TH style=\"text-align:left\">"._('Type')." </TH>".
"<TH style=\"text-align:left\">"._('ISO')."</TH>".
- "<TH style=\"text-align:left\">"._('Dev.')."</TH>".
+ "<TH style=\"text-align:right\">"._('Dev.')."</TH>".
"<TH style=\"text-align:right\">"._('Débit')." </TH>".
"<TH style=\"text-align:right\">"._('Crédit')." </TH>".
th('Prog.','style="text-align:right"').
@@ -1537,8 +1537,15 @@ class Fiche
"<TD>".h($op['description'])."</TD>".
td($op['jr_optype']);
+ /// If the currency is not the default one , then show the amount
+ if ( $op['currency_id'] > 0 && $op['oc_amount'] != 0)
+ {
echo td($op['cr_code_iso']).
-
td(nbm(bcadd($op['oc_amount'],$op['oc_vat_amount'],4)),'style="text-align:right;padding-left:10px;"');
+
td(nbm(bcadd($op['oc_amount'],4)),'style="text-align:right;padding-left:10px;"');
+ } else {
+ echo td().td();
+ }
+
echo "<TD
style=\"text-align:right\">".nbm($op['deb_montant'])."</TD>".
"<TD
style=\"text-align:right\">".nbm($op['cred_montant'])."</TD>".
td(nbm(abs($progress)).$side,'style="text-align:right"').
@@ -1592,7 +1599,7 @@ class Fiche
echo '<TR>';
echo '<TD><form method="GET" ACTION="">'.
- HtmlInput::submit('bt_other',"Autre poste").
+ HtmlInput::submit('bt_other',_("Autre poste")).
HtmlInput::array_to_hidden(array('gDossier','ac'), $_REQUEST).
dossier::hidden().
$hid->input("type","poste").$hid->input('p_action','impress')."</form></TD>";
- [Noalyss-commit] [noalyss] 63/218: CFGLED : security fix : remove $_REQUEST, (continued)
- [Noalyss-commit] [noalyss] 63/218: CFGLED : security fix : remove $_REQUEST, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 64/218: Merge master, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 72/218: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 83/218: adapt to 7.2 ,init, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 86/218: Currency : show the currency of the ledger when entering info, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 89/218: adapt to 7.2 ,array, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 90/218: Code cleaning : remove SQL with hardcoded value, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 109/218: Indentation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 121/218: Currency : error when displaying, add 4 due to a mistype instruction, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 126/218: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 117/218: Currency : cosmetic display history : show only the value of the card/accounting,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 116/218: Database upgrade 131, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 120/218: Currency : send the saldo for financial ledger, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 135/218: Translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 123/218: Currency = payment automatic for Sales and Purchases, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 131/218: Translation + use of httpInput, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 124/218: Currency : when we pay at the same time as we record the sale / purchase , either the bank is in euro (default currency) or the sale/purchase has the same currency than the financial ledger, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 138/218: Translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 139/218: Translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 137/218: Translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 140/218: Misc. Operation : input : Missing tag TR, Dany De Bontridder, 2019/09/12