noalyss-commit
[Top][All Lists]
Advanced

[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>';
 
 ?>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]