[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 131/218: Translation + use of httpInput
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 131/218: Translation + use of httpInput |
Date: |
Thu, 12 Sep 2019 15:58:54 -0400 (EDT) |
sparkyx pushed a commit to branch entreprise
in repository noalyss.
commit 8555b69d4d1e9948a03b0d48f08f89fe7281148b
Author: Dany De Bontridder <address@hidden>
Date: Fri Dec 28 10:00:06 2018 +0100
Translation + use of httpInput
---
include/compta_ods.inc.php | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/include/compta_ods.inc.php b/include/compta_ods.inc.php
index cab936d..0c15d15 100644
--- a/include/compta_ods.inc.php
+++ b/include/compta_ods.inc.php
@@ -40,8 +40,10 @@ global $g_user,$http;
$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');
if ( empty ($first_ledger))
@@ -91,7 +93,7 @@ elseif (isset($_POST['save']))
$ledger->save($array);
$jr_id = $cn->get_value('select jr_id from jrn where
jr_internal=$1', array($ledger->internal));
- echo '<h2> Opération enregistrée Piece ' .
h($ledger->pj) . '</h2>';
+ echo '<h2>'._("Opération enregistrée")._("Piece") .
h($ledger->pj) . '</h2>';
if (strcmp($ledger->pj, $_POST['e_pj']) != 0)
{
echo '<h3 class="notice">' . _('Attention numéro pièce
existante, elle a du être adaptée') . '</h3>';
- [Noalyss-commit] [noalyss] 89/218: adapt to 7.2 ,array, (continued)
- [Noalyss-commit] [noalyss] 89/218: adapt to 7.2 ,array, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 90/218: Code cleaning : remove SQL with hardcoded value, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 109/218: Indentation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 121/218: Currency : error when displaying, add 4 due to a mistype instruction, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 126/218: Merge branch 'master' into r700-currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 117/218: Currency : cosmetic display history : show only the value of the card/accounting, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 116/218: Database upgrade 131, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 120/218: Currency : send the saldo for financial ledger, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 135/218: Translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 123/218: Currency = payment automatic for Sales and Purchases, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 131/218: Translation + use of httpInput,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 124/218: 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, 2019/09/12
- [Noalyss-commit] [noalyss] 138/218: Translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 139/218: Translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 137/218: Translation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 140/218: Misc. Operation : input : Missing tag TR, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 144/218: Currency : meaning 1 EUR is worth x currency for Sales, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 141/218: Currency : for misc. operation, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 159/218: Currency : because of Misc Operation, the tiers must also be saved into operation_currency. Fix also PRINTJRN for currency, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 166/218: Typo, Dany De Bontridder, 2019/09/12
- [Noalyss-commit] [noalyss] 79/218: Bug : in Purchase and Sale , the last rows disappear when we change the ledger, Dany De Bontridder, 2019/09/12