[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 42/54: If currency not given then supposed to
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 42/54: If currency not given then supposed to be the default one (id=0) |
Date: |
Sat, 11 Jul 2020 13:26:58 -0400 (EDT) |
sparkyx pushed a commit to annotated tag entreprise-0500
in repository noalyss.
commit e1be2ee3ef4f86685a1d3ccb89874f8e5264e678
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Thu Oct 24 10:30:47 2019 +0200
If currency not given then supposed to be the default one (id=0)
---
include/class/acc_currency.class.php | 3 ++-
include/class/acc_ledger.class.php | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/include/class/acc_currency.class.php
b/include/class/acc_currency.class.php
index 7470957..0de9a09 100644
--- a/include/class/acc_currency.class.php
+++ b/include/class/acc_currency.class.php
@@ -27,7 +27,8 @@ require_once
NOALYSS_INCLUDE."/database/v_currency_last_value_sql.class.php";
/**
* @class
- * @brief display currency , convert to euro , and save them if used
+ * @brief display currency , convert to euro , and save them if used. The
default currency has the id 0 and is
+ * normally EUR
*/
class Acc_Currency
{
diff --git a/include/class/acc_ledger.class.php
b/include/class/acc_ledger.class.php
index bfb8f0f..ee30e8b 100644
--- a/include/class/acc_ledger.class.php
+++ b/include/class/acc_ledger.class.php
@@ -1332,8 +1332,8 @@ class Acc_Ledger extends jrn_def_sql
$count=0;
// currency
- $currency_code=$http->extract($p_array,
"p_currency_code","number");
- $currency_rate=$http->extract($p_array,
"p_currency_rate","number");
+ $currency_code=$http->extract($p_array,
"p_currency_code","number",0);
+ $currency_rate=$http->extract($p_array,
"p_currency_rate","number",1);
$currency_rate_ref=new Acc_Currency($this->db, $currency_code);
for ($i=0; $i<$nb_item; $i++)
- [Noalyss-commit] [noalyss] 32/54: task #0001698: Problème affichage historique fiches Prevent direct use of http_request translation Cosmetic, (continued)
- [Noalyss-commit] [noalyss] 32/54: task #0001698: Problème affichage historique fiches Prevent direct use of http_request translation Cosmetic, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 34/54: Task #0001703: Faciliter effacement montants dans les filtres, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 35/54: Improve PHPUNIT Test for phpunit7 and phpunit8, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 38/54: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 39/54: Bug with p_jrn, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 40/54: Task #1759 = PRINTBAL sur 4 colonnes, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 44/54: gitlab #5 Achat propose l'anc pour toutes les lignes, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 36/54: documentation + traduction, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 37/54: Merge branch 'accept7100' into entreprise, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 41/54: Merge branch 'bug-printtva' into entreprise, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 42/54: If currency not given then supposed to be the default one (id=0),
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 43/54: Save_form_plan must use the array, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 49/54: Adapt printtva to entreprise, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 52/54: test : find the accounting with the biggest number of records, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 47/54: Merge branch 'dev7102' into entreprise, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 48/54: Acc_Ledger : problem with acc_ledger::load(), Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 45/54: fixup! Printtva , under some circumstance tva_summary::check fails, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 46/54: indent, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 50/54: improve test for fiche get_row, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 51/54: test : compute min et max periode, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 53/54: test : use the accounting with the biggest number of records, Dany De Bontridder, 2020/07/11