[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 08/13: Bug fix : duplicate operation last dat
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 08/13: Bug fix : duplicate operation last date was not proposed |
Date: |
Mon, 30 Aug 2021 10:12:00 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 6a6a0121246995cda305d2752c3100a4b8e951b6
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Sat Aug 28 12:46:08 2021 +0200
Bug fix : duplicate operation last date was not proposed
---
include/compta_ach.inc.php | 8 ++++++--
include/compta_fin.inc.php | 11 +++++++----
include/compta_ven.inc.php | 12 ++++++++----
include/operation_ods_new.inc.php | 10 ++++++----
4 files changed, 27 insertions(+), 14 deletions(-)
diff --git a/include/compta_ach.inc.php b/include/compta_ach.inc.php
index fc7b550..1c7cb13 100644
--- a/include/compta_ach.inc.php
+++ b/include/compta_ach.inc.php
@@ -265,8 +265,12 @@ catch (Exception $e)
alert($e->getMessage());
return;
}
-if (!isset($_REQUEST['e_date']) && $g_parameter->MY_DATE_SUGGEST=='Y')
- echo create_script(" get_last_date()");
+$e_date=$http->request("e_date","string","");
+
+if ($e_date=="" && $g_parameter->MY_DATE_SUGGEST=='Y')
+ {
+ echo create_script(" get_last_date()");
+ }
echo create_script(" update_name()");
echo '</div>';
diff --git a/include/compta_fin.inc.php b/include/compta_fin.inc.php
index 2df16d7..7ef5b29 100644
--- a/include/compta_fin.inc.php
+++ b/include/compta_fin.inc.php
@@ -154,10 +154,13 @@ try
echo HtmlInput::reset(_('Effacer'));
$script="update_name();";
- if ( ! isset($_REQUEST['e_date'])&& $g_parameter->MY_DATE_SUGGEST=='Y')
- {
- $script.=" get_last_date();";
- }
+ $e_date=$http->request("e_date","string","");
+
+ if ($e_date=="" && $g_parameter->MY_DATE_SUGGEST=='Y'){
+ $script.=" get_last_date();";
+
+ }
+
if ( ! isset ($_REQUEST['first_sold']) ) {
$script.=" ajax_saldo('first_sold');";
}
diff --git a/include/compta_ven.inc.php b/include/compta_ven.inc.php
index b9795c3..e08b6d4 100644
--- a/include/compta_ven.inc.php
+++ b/include/compta_ven.inc.php
@@ -300,10 +300,14 @@ echo '<div class="content">';
{
echo '<script> update_pj()</script>';
}
- if (!isset($_REQUEST['e_date']) && $g_parameter->MY_DATE_SUGGEST=='Y')
- {
- echo create_script(" get_last_date()");
- }
+$e_date=$http->request("e_date","string","");
+
+if ($e_date=="" && $g_parameter->MY_DATE_SUGGEST=='Y')
+{
+ echo create_script(" get_last_date()");
+}
+
+
echo create_script(" update_name()");
return;
?>
diff --git a/include/operation_ods_new.inc.php
b/include/operation_ods_new.inc.php
index 06d0ef5..1872c0c 100644
--- a/include/operation_ods_new.inc.php
+++ b/include/operation_ods_new.inc.php
@@ -122,10 +122,12 @@ echo '</form>';
echo "<script>checkTotalDirect();</script>";
echo create_script(" update_name()");
-if (!isset($_REQUEST['e_date']) && $g_parameter->MY_DATE_SUGGEST=='Y')
-{
- echo create_script(" get_last_date()");
-}
+$e_date=$http->request("e_date","string","");
+
+if ($e_date=="" && $g_parameter->MY_DATE_SUGGEST=='Y') {
+ echo create_script(" get_last_date()");
+ }
+
echo '</div>';
?>
- [Noalyss-commit] [noalyss] branch master updated (07f215d -> 0fbb377), Dany De Bontridder, 2021/08/30
- [Noalyss-commit] [noalyss] 01/13: Bug : export currency in CSV bad column name, Dany De Bontridder, 2021/08/30
- [Noalyss-commit] [noalyss] 06/13: Bug : fix security , clean completely the session and prevent to set the menu public to an user, Dany De Bontridder, 2021/08/30
- [Noalyss-commit] [noalyss] 09/13: security, Dany De Bontridder, 2021/08/30
- [Noalyss-commit] [noalyss] 02/13: Fix code + add phpunit, Dany De Bontridder, 2021/08/30
- [Noalyss-commit] [noalyss] 03/13: Bug : fiche account not created automatically when empty , improve test, Dany De Bontridder, 2021/08/30
- [Noalyss-commit] [noalyss] 05/13: Add a button search_card, Dany De Bontridder, 2021/08/30
- [Noalyss-commit] [noalyss] 08/13: Bug fix : duplicate operation last date was not proposed,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 07/13: Code cleaning ; partial rewrite of user management, Dany De Bontridder, 2021/08/30
- [Noalyss-commit] [noalyss] 10/13: Cosmetic : export PDF of an operation, set decimal to 2 and add info, Dany De Bontridder, 2021/08/30
- [Noalyss-commit] [noalyss] 12/13: Apply patch when creating a DB, Dany De Bontridder, 2021/08/30
- [Noalyss-commit] [noalyss] 04/13: Cosmetic, Dany De Bontridder, 2021/08/30
- [Noalyss-commit] [noalyss] 13/13: cosmetic, Dany De Bontridder, 2021/08/30
- [Noalyss-commit] [noalyss] 11/13: Typo correct profile, Dany De Bontridder, 2021/08/30