[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/03: Bug fixed : when using a predefined op
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/03: Bug fixed : when using a predefined operation and change the ledger, if we correct, we use the previous ledger |
Date: |
Sat, 10 Sep 2022 14:35:43 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 53e518f926a263240a677b67762d4da1a11a83a2
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sun Sep 4 09:55:57 2022 +0200
Bug fixed : when using a predefined operation and change the ledger, if we
correct, we use the previous ledger
---
include/compta_ach.inc.php | 5 ++---
include/compta_ven.inc.php | 11 ++++++-----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/include/compta_ach.inc.php b/include/compta_ach.inc.php
index 1c7cb138b..59768647d 100644
--- a/include/compta_ach.inc.php
+++ b/include/compta_ach.inc.php
@@ -197,10 +197,9 @@ if (!isset($_REQUEST ['p_jrn']))
}
$Ledger->id = $def_ledger['jrn_def_id'];
}
-else
+else if (isset($_REQUEST ['p_jrn']))
$Ledger->id = $request_jrn;
-
-if (isset ($_REQUEST['p_jrn_predef'])){
+else if (isset ($_REQUEST['p_jrn_predef'])){
$Ledger->id=$http->request('p_jrn_predef');
}
// pre defined operation
diff --git a/include/compta_ven.inc.php b/include/compta_ven.inc.php
index e08b6d4df..2025388e2 100644
--- a/include/compta_ven.inc.php
+++ b/include/compta_ven.inc.php
@@ -212,15 +212,16 @@ if (!isset($_REQUEST ['p_jrn']))
}
$Ledger->id=$def_ledger['jrn_def_id'];
}
-else
- $Ledger->id=$http->request('p_jrn');
-
-if (isset($_REQUEST['p_jrn_predef']))
+else if ( isset($_REQUEST ['p_jrn']) ) {
+ $Ledger->id=$http->request('p_jrn','number');
+}
+else if (isset($_REQUEST['p_jrn_predef']))
{
- $Ledger->id=$http->request('p_jrn_predef');
+ $Ledger->id=$http->request('p_jrn_predef','number');
}
+
echo '<div class="content">';
if ($p_msg!="")
{