[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 38/73: Task #1961 : Currency remove default c
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 38/73: Task #1961 : Currency remove default currency |
Date: |
Fri, 28 May 2021 05:26:33 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit eb64bf1c8c31545108cd902f41ace575314ae07b
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Apr 25 13:49:45 2021 +0200
Task #1961 : Currency remove default currency
---
include/class/data_currency_operation.class.php | 4 ++--
include/class/print_operation_currency.class.php | 13 +++++++------
include/print_currency01.inc.php | 4 ++--
3 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/include/class/data_currency_operation.class.php
b/include/class/data_currency_operation.class.php
index 939c7af..c46d972 100644
--- a/include/class/data_currency_operation.class.php
+++ b/include/class/data_currency_operation.class.php
@@ -112,7 +112,7 @@ class Data_Currency_Operation
$sql=" select jr_id,
j_date,
j_montant,
- coalesce(oc_amount,j_montant) oc_amount,
+ coalesce(oc_amount,0) oc_amount,
j_poste,
jr_comment,
jr_internal,
@@ -125,7 +125,7 @@ class Data_Currency_Operation
(select ad_value from fiche_detail fd1 where fd1.f_id=jrnx.f_id
and ad_id=23) as fiche_qcode
from jrnx
join jrn on (jr_grpt_id=jrnx.j_grpt)
- left join operation_currency oc using (j_id)
+ join operation_currency oc using (j_id)
join jrn_def on (jr_def_id=jrn_def.jrn_def_id)
";
$sql.=$this->SQL_Condition();
diff --git a/include/class/print_operation_currency.class.php
b/include/class/print_operation_currency.class.php
index 1d8569c..5eefff8 100644
--- a/include/class/print_operation_currency.class.php
+++ b/include/class/print_operation_currency.class.php
@@ -126,8 +126,9 @@ class Print_Operation_Currency
$rate_ref=_("Taux de référence");
$rate=_("Taux utilisé");
$currency=_("Devise");
- $r=<<<EOF
-<table class="result">
+ $r=HtmlInput::filter_table("pcur01_tb", '0,1,2,3,4,5,6,7,8,9,10', 1);
+ $r.=<<<EOF
+<table id="pcur01_tb" class="result">
<tr>
<th>{$date}</th>
<th>{$accounting}</th>
@@ -136,10 +137,10 @@ class Print_Operation_Currency
<th>{$comment}</th>
<th>{$internal}</th>
<th>{$currency}</th>
- <th>{$amount}</th>
- <th>{$rate}</th>
- <th>{$rate_ref}</th>
- <th>{$amount_currency}</th>
+ <th class="num">{$amount}</th>
+ <th class="num">{$rate}</th>
+ <th class="num">{$rate_ref}</th>
+ <th class="num">{$amount_currency}</th>
</tr>
EOF;
diff --git a/include/print_currency01.inc.php b/include/print_currency01.inc.php
index 734f516..3bc703a 100644
--- a/include/print_currency01.inc.php
+++ b/include/print_currency01.inc.php
@@ -53,8 +53,8 @@ $to_account->set_attribute('gDossier',Dossier::id());
$to_account->set_attribute('jrn',0);
$to_account->set_attribute('account','to_account');
-$acc_currency=new Acc_Currency($cn);
-$selCurrency=$acc_currency->select_currency();
+$selCurrency=new ISelect("p_currency_code");
+$selCurrency->value=$cn->make_array("select id,cr_code_iso from currency where
id > 0 order by cr_code_iso");
$selCurrency->selected=$print_operation_currency->getData_operation()->getCurrency_id();
- [Noalyss-commit] [noalyss] 36/73: improve captcha, replace the global variable by a "DEFINE" constant, (continued)
- [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
- [Noalyss-commit] [noalyss] 28/73: Task #0001961: Devise : faciliter les calculs d'écarts de conversion, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 38/73: Task #1961 : Currency remove default currency,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 40/73: Cosmetic : add button_magnifier for searching, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 52/73: Code Rewriting : rename Noalyss_SQL class by Table_Data_SQL, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 53/73: Code Rewriting : rename Noalyss_SQL class by Table_Data_SQL, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 45/73: Cosmetic : button with HREF, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 60/73: Cosmetic : navigator on small device, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 62/73: Remove dead code, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 63/73: Unit test : update, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 65/73: Task #0001992: Prévision, calcul avec comptabilité analytique, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 54/73: Security : Check the folder, Dany De Bontridder, 2021/05/28
- [Noalyss-commit] [noalyss] 05/73: comptability version 7.4 warning null is not a countable, Dany De Bontridder, 2021/05/28