[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 98/218: Fin currency : detail operation show
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 98/218: Fin currency : detail operation show currency , rate and amount |
Date: |
Thu, 12 Sep 2019 15:58:48 -0400 (EDT) |
sparkyx pushed a commit to branch entreprise
in repository noalyss.
commit ffa1b5af34388f7c2670f0d0a10a00016782796a
Author: Dany De Bontridder <address@hidden>
Date: Tue Nov 27 18:11:18 2018 +0100
Fin currency : detail operation show currency , rate and amount
---
include/template/ledger_detail_fin.php | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/include/template/ledger_detail_fin.php
b/include/template/ledger_detail_fin.php
index a34f4b6..80b3458 100644
--- a/include/template/ledger_detail_fin.php
+++ b/include/template/ledger_detail_fin.php
@@ -93,6 +93,19 @@ echo td(_('Pièce')).td($itext->input());
</table>
</td>
+<?php
+/**
+ * Display Currency in a column, if invoice not recorded in EUR
+ */
+if ($obj->det->currency_id!=0)
+{
+ $currency_amount=$obj->db->get_value("select oc_amount from
operation_currency where j_id in (select j_id from jrn join jrnx on
(j_grpt=jr_grpt_id ) where jr_id=$1)",
+ [$obj->jr_id]);
+ $currency_rate=$obj->db->get_value("select currency_rate from jrn where
jr_id=$1",[$obj->jr_id]);
+ $currency_code=$obj->db->get_value("select cr_code_iso from currency where
id=$1",[$obj->det->currency_id]);
+ printf ("%s Taux utilisé %s Montant en devise
%s",$currency_code,$currency_rate,$currency_amount);
+}
+?>
<div class="myfieldset">
<?php
$detail=new Acc_Misc($cn,$obj->jr_id);
- [Noalyss-commit] [noalyss] 212/218: Periode : when searching for a ledger , you can set a periode, (continued)
- [Noalyss-commit] [noalyss] 212/218: Periode : when searching for a ledger , you can set a periode, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 209/218: PDFLand has now his own file, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 210/218: Data_SQL database connexion private, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 216/218: Version set to 7.1, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 202/218: Merge branch 'dev7109' into entreprise, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 162/218: Currency - fix view, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 178/218: Mantis #1665: Pouvoir modifier l'ordre dans les listing de compta analytique, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 78/218: Bug : ajax fails if wait_box does not exist, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 105/218: Background color, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 92/218: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 98/218: Fin currency : detail operation show currency , rate and amount,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 97/218: Fin : currency , add missing info into Operation_Currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 113/218: change background, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 95/218: currency : adapt for FIN, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 122/218: Currency : display correctly the saldo at the end / beginning operation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 136/218: Translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 115/218: Currency : ledger printing for FIN + detail operation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 143/218: Currency : precision 6, display default currency , protect used currency against delete, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 149/218: Currency : purchase, save all detail also in currency, fix problem with the advance payment, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 151/218: Task #1660 : place the button for the inventory on the top, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 157/218: Merge branch 'r700-currency' of gitlab.noalyss.eu:noalyss/noalyss into r700-currency, Dany De Bontridder, 2019/09/12