[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 29/73: Cosmetic : display properly currency i
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 29/73: Cosmetic : display properly currency in detail operation |
Date: |
Fri, 28 May 2021 05:26:28 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 8708c63b71a51ec60f5deb31805f4afd1a08973d
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Apr 18 16:13:12 2021 +0200
Cosmetic : display properly currency in detail operation
---
include/config.inc.example | 13 ++++++++++---
include/template/ledger_detail_ach.php | 6 +++---
include/template/ledger_detail_misc.php | 7 ++++---
include/template/ledger_detail_ven.php | 6 +++---
include/template/ledger_search.php | 11 +++++++++++
5 files changed, 31 insertions(+), 12 deletions(-)
diff --git a/include/config.inc.example b/include/config.inc.example
index 56bbdff..4f95799 100644
--- a/include/config.inc.example
+++ b/include/config.inc.example
@@ -19,8 +19,15 @@ define ("LOCALE",1);
define ("domaine","");
define ("MULTI",1);
define ("dbname","");
- // Uncomment to DEBUG
-// define ("DEBUG",TRUE);
+
+/*
+ * DEBUGNOALYSS let you see more information when you develop.
+ * 0 = for production
+ * 1 = display all errors
+ * 2 = display all errors + more information
+ */
+
+define ("DEBUGNOALYSS",0);
// Uncomment to log your input
// define ("LOGINPUT",TRUE);
// Uncomment if you want to activate the possibility to reinitialize
@@ -73,4 +80,4 @@ define ("dbname","");
// Define a random session key if you work with different version of NOALYSS
// define ('SESSION_KEY','abcde');
// Max size is defined by default to 2MB, it could be also needed to modify
PHP Ini file
-// define ("MAX_FILE_SIZE",2097152);
\ No newline at end of file
+// define ("MAX_FILE_SIZE",2097152);
diff --git a/include/template/ledger_detail_ach.php
b/include/template/ledger_detail_ach.php
index 70f303b..c8116da 100644
--- a/include/template/ledger_detail_ach.php
+++ b/include/template/ledger_detail_ach.php
@@ -287,9 +287,9 @@ $str_anc="";
$four_space=" "." "." "." ";
echo $currency->get_code(),$four_space;
- echo _("Taux utilisé")," ", $obj->det->currency_rate,$four_space;
- echo _("Taux Réf"), " ",$obj->det->currency_rate_ref.$four_space;
- echo _("Montant en devise"),
" ",nbm($sum_charge_euro).$four_space;
+ echo _("Taux utilisé")," ",
nbm($obj->det->currency_rate,4),$four_space;
+ echo _("Taux Réf"),
" ",nbm($obj->det->currency_rate_ref,4).$four_space;
+ echo _("Montant en devise"),
" ",nbm($sum_charge_euro,4).$four_space;
}
?>
diff --git a/include/template/ledger_detail_misc.php
b/include/template/ledger_detail_misc.php
index e48be4c..fd2a400 100644
--- a/include/template/ledger_detail_misc.php
+++ b/include/template/ledger_detail_misc.php
@@ -207,9 +207,10 @@ $amount_idx=0; $sum_prod_currency=0;
$four_space=" "." "." "." ";
echo $currency->get_code(),$four_space;
- echo _("Taux utilisé")," ", $obj->det->currency_rate,$four_space;
- echo _("Taux Réf"), " ",$obj->det->currency_rate_ref.$four_space;
- echo _("Montant en devise"), " ",$sum_prod_currency,$four_space;
+ echo _("Taux utilisé")," ",
nbm($obj->det->currency_rate,4),$four_space;
+ echo _("Taux Réf"),
" ",nbm($obj->det->currency_rate_ref,4).$four_space;
+ echo _("Montant en devise"),
" ",nbm($sum_prod_currency,4).$four_space;
+
}
?>
</div>
diff --git a/include/template/ledger_detail_ven.php
b/include/template/ledger_detail_ven.php
index 347f98b..ae5c1db 100644
--- a/include/template/ledger_detail_ven.php
+++ b/include/template/ledger_detail_ven.php
@@ -297,9 +297,9 @@ echo $ipaid->input();
$four_space=" "." "." "." ";
echo $currency->get_code(),$four_space;
- echo _("Taux utilisé")," ", $obj->det->currency_rate,$four_space;
- echo _("Taux Réf"), " ",$obj->det->currency_rate_ref.$four_space;
- echo _("Montant en devise"), " ",$sum_prod_currency,$four_space;
+ echo _("Taux utilisé")," ",
nbm($obj->det->currency_rate,4),$four_space;
+ echo _("Taux Réf"),
" ",nbm($obj->det->currency_rate_ref,4).$four_space;
+ echo _("Montant en devise"),
" ",nbm($sum_prod_currency,4).$four_space;
}
?>
<?php
diff --git a/include/template/ledger_search.php
b/include/template/ledger_search.php
index 7461998..458512a 100644
--- a/include/template/ledger_search.php
+++ b/include/template/ledger_search.php
@@ -87,6 +87,17 @@ echo $f_accounting->input(); ?>
<?php echo $f_paid->input(); ?>
</td>
</tr>
+
+<tr>
+<td style="text-align:right;width:30em">
+ <?php echo _('Devise')?>
+</td>
+
+<td>
+<?php echo $sCurrency->input(); ?>
+</td>
+</tr>
+
<tr>
<td style="text-align:right;width:30em">
- [Noalyss-commit] [noalyss] 25/73: Cosmetic : icon in dialog box, lightblue when hover, (continued)
- [Noalyss-commit] [noalyss] 25/73: Cosmetic : icon in dialog box, lightblue when hover, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 46/73: Improve Sort Table ,, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 27/73: Javascript : waiting box display when exporting in PDF or CSV, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 37/73: Cosmetic improve smoke dg box, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 39/73: Bug #0001971: erreur calcul dans champ prix/unité htva, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 06/73: Cosmetic, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 08/73: Warning if PHPVERSION < 7.2, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 10/73: Cosmetic : update fontello, button inplace_edit, doc, logo and dashboad, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 16/73: Currency : add a check , upgrade version of DB, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 24/73: Bug Select_Box = problem with DIV id, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 29/73: Cosmetic : display properly currency in detail operation,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 34/73: javascript : test and improve cosmetic, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 36/73: improve captcha, replace the global variable by a "DEFINE" constant, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 41/73: Cosmetic : Card History, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 47/73: Fix block problem with font, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 49/73: Improve function display_row_custom for the custom sort key see Sorttable.js, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 50/73: Improve Manage_Table_SQL, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 55/73: Manage_Table_SQL : typo, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 56/73: Output_HTML adapt to bootstrap navbar, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 57/73: Task #1807: Boutons indistincts – thème 7 classic, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 44/73: Cosmetic : width to large if recover passwd enable and icon trash not available for document (in operation detail), Dany De Bontridder, 2021/05/28