noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 01/01: Doc, correct bug introduced by auto-co


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/01: Doc, correct bug introduced by auto-correct
Date: Mon, 22 Aug 2022 12:23:56 -0400 (EDT)

sparkyx pushed a commit to tag rel9032
in repository noalyss.

commit 39233e20a087457c34adc9e4bed3928713131583
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Jun 13 14:34:51 2022 +0200

    Doc, correct bug introduced by auto-correct
---
 include/lib/html_input.class.php       |  6 +++---
 include/lib/http_input.class.php       |  6 +++---
 include/template/ledger_detail_ven.php | 11 ++++++-----
 3 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/include/lib/html_input.class.php b/include/lib/html_input.class.php
index 015881c91..3f63623db 100755
--- a/include/lib/html_input.class.php
+++ b/include/lib/html_input.class.php
@@ -757,9 +757,9 @@ class HtmlInput
 
     /**
      * return default if the value if the value doesn't exist in the array
-     * @param $ind the index to check
-     * @param $default the value to return
-     * @param $array the array
+     * @param $ind string the index to check
+     * @param $default string  the value to return
+     * @param $array array the array
      */
     static function default_value($ind, $default, $array)
     {
diff --git a/include/lib/http_input.class.php b/include/lib/http_input.class.php
index cfbdf4c1e..02976d7ee 100644
--- a/include/lib/http_input.class.php
+++ b/include/lib/http_input.class.php
@@ -229,9 +229,9 @@ class HttpInput
     }
     /**
      * @brief Retrieve from $_REQUEST
-     * @param $p_name name of the variable
-     * @param $p_type type of the variable , opt. default string
-     * @param $p_default default value is variable is not set
+     * @param $p_name string name of the variable
+     * @param $p_type string type of the variable , opt. default string
+     * @param $p_default string default value is variable is not set
      * @throws Exception if invalid
      */
     function request($p_name, $p_type="string", $p_default="")
diff --git a/include/template/ledger_detail_ven.php 
b/include/template/ledger_detail_ven.php
index 935a55aec..5b007b862 100644
--- a/include/template/ledger_detail_ven.php
+++ b/include/template/ledger_detail_ven.php
@@ -17,9 +17,9 @@ global $div,$g_parameter,$cn,$access,$jr_id,$obj;
     $owner = new Noalyss_Parameter_Folder($cn);
     ?>
 
-    <?php if ($access == 'W') : ?>
-        <form class="print" onsubmit="return op_save(this);">
-        <?php endif; ?>
+    <?php if ($access == 'W') :
+        echo '<form class="print" onsubmit="return op_save(this);">';
+    endif; ?>
 
         <?php echo HtmlInput::hidden('whatdiv', $div) . 
HtmlInput::hidden('jr_id', $jr_id) . dossier::hidden(); ?>
         <table style="width:100%">
@@ -274,7 +274,7 @@ echo $ipaid->input();
                  */
                 $sum_add_tax=0;$sum_add_tax_cur=0;
                 
Additional_Tax::display_row($jr_id,$sum_add_tax,$sum_add_tax_cur);
-                print_r("sum_add_tax_cur $sum_add_tax_cur");
+
                 $sum_prod_currency=bcadd($sum_prod_currency,$sum_add_tax_cur);
 
                 $total_tvac=bcadd($sum_add_tax,$total_tvac);
@@ -295,7 +295,7 @@ echo $ipaid->input();
                 echo tr($row);
                 ?>
             </table>
-            </form>
+            </td>
             </tr>
             </table>
             </td>
@@ -322,3 +322,4 @@ echo $ipaid->input();
 <?php
 require_once NOALYSS_TEMPLATE.'/ledger_detail_bottom.php';
 ?>
+</div>
\ No newline at end of file



reply via email to

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