[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 130/162: use of httpInput
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 130/162: use of httpInput |
Date: |
Sat, 11 Jul 2020 13:24:01 -0400 (EDT) |
sparkyx pushed a commit to annotated tag E-4
in repository noalyss.
commit 1974dfcee3397b0659200d7b6d4bd3581d5c3921
Author: Dany De Bontridder <danydb@noalyss.eu>
AuthorDate: Fri Dec 28 10:22:23 2018 +0100
use of httpInput
---
include/operation_ods_new.inc.php | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/operation_ods_new.inc.php
b/include/operation_ods_new.inc.php
index 8e97df6..1c6f96f 100644
--- a/include/operation_ods_new.inc.php
+++ b/include/operation_ods_new.inc.php
@@ -31,8 +31,9 @@ require_once NOALYSS_INCLUDE.'/lib/iconcerned.class.php';
global $g_user,$g_parameter;
$cn=Dossier::connect();
-$id_predef = (isset($_REQUEST['p_jrn_predef'])) ? $_REQUEST['p_jrn_predef'] :
-1;
-$id_ledger = (isset($_REQUEST['p_jrn'])) ? $_REQUEST['p_jrn'] : $id_predef;
+$id_predef = $http->request('p_jrn_predef','number',-1);
+$id_ledger = $http->request('p_jrn','number',$id_predef);
+
$ledger = new Acc_Ledger($cn, $id_ledger);
$first_ledger=$ledger->get_first('ODS');
$ledger->id = ($ledger->id == -1) ? $first_ledger['jrn_def_id'] : $id_ledger;
- [Noalyss-commit] [noalyss] 121/162: Merge branch 'master' into r700-currency, (continued)
- [Noalyss-commit] [noalyss] 121/162: Merge branch 'master' into r700-currency, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 124/162: Missing bracket, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 125/162: Esthetic with button "Add accounting", Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 131/162: Translation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 133/162: Translation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 120/162: 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, 2020/07/11
- [Noalyss-commit] [noalyss] 126/162: typo doc, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 127/162: Translation + use of httpInput, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 128/162: Translation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 129/162: Translation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 130/162: use of httpInput,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 134/162: Translation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 137/162: Currency : for misc. operation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 135/162: Translation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 136/162: Misc. Operation : input : Missing tag TR, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 140/162: Currency : meaning 1 EUR is worth x currency for Sales, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 141/162: Currency : the meaning is : 1 euro is worth xxx Currency , so we divide the amount with the currency rate to compute the EUR value, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 143/162: Currency : detail operation Purchase , the amount in currency were wrong in the summary, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 132/162: Translation, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 138/162: Currency : Precision 6, Dany De Bontridder, 2020/07/11
- [Noalyss-commit] [noalyss] 142/162: Currency : history for accounting , correct amount in currency, Dany De Bontridder, 2020/07/11