noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 04/19: Correct Add button for ledger when cre


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 04/19: Correct Add button for ledger when creating FIN ledger
Date: Mon, 9 Sep 2019 13:54:58 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 7d580f6046917fa63c4799f5219fae6ac425856f
Author: Dany De Bontridder <address@hidden>
Date:   Sun Sep 8 00:27:24 2019 +0200

    Correct Add button for ledger when creating FIN ledger
---
 include/class/acc_ledger.class.php | 2 ++
 include/template/param_jrn.php     | 1 +
 2 files changed, 3 insertions(+)

diff --git a/include/class/acc_ledger.class.php 
b/include/class/acc_ledger.class.php
index ad72cfc..6f90ead 100644
--- a/include/class/acc_ledger.class.php
+++ b/include/class/acc_ledger.class.php
@@ -2463,6 +2463,7 @@ class Acc_Ledger extends jrn_def_sql
      */
     function input_new()
     {
+       global $g_user;
         $http=new HttpInput();
         $retry=$http->post("sa", "string", "");
 //            if ( $retry == "add") {
@@ -2480,6 +2481,7 @@ class Acc_Ledger extends jrn_def_sql
         $f_add_button->javascript=" 
this.jrn=-1;select_card_type({type_cat:4});";
 
         $str_add_button="";
+
         if ($g_user->check_action(FICADD)==1)
         {
             $str_add_button=$f_add_button->input();
diff --git a/include/template/param_jrn.php b/include/template/param_jrn.php
index b5af8ce..6c73529 100644
--- a/include/template/param_jrn.php
+++ b/include/template/param_jrn.php
@@ -68,6 +68,7 @@ if ( $new|| $type=='FIN') :
     echo $card->search();
     echo $card->input();
     echo $str_add_button;
+
     ?>
     </td>
     <td class="notice" style="white-space: nowrap">



reply via email to

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