[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">
- [Noalyss-commit] [noalyss] branch master updated (598fe82 -> dcd880f), Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 01/19: Typo DatabaseCore, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 02/19: highlight default password, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 03/19: hightlight password + add waiting box when installing, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 10/19: Task #0001733: Impression moyen paiement Add name of the bank card to the prepared query, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 11/19: CFGLED Ergonomy : the card we've created is proposed in the field "bank account", Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 12/19: Merge branch 'dev7109', Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 14/19: Fiche:GetByDef if nothing is found returns empty array, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 16/19: Fiche Cosmetic :, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 04/19: Correct Add button for ledger when creating FIN ledger,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 05/19: Bug prerelease : Cannot save preference, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 07/19: Code : mistype variable $step, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 06/19: Code : missing semicolon, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 15/19: Security : direct access to GLOBALS, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 17/19: Merge branch 'dev7109', Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 19/19: Merge branch 'master' of gitlab.noalyss.eu:noalyss/noalyss, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 08/19: verif_bil : fetch_all return false or an array, comptability PHP7, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 13/19: Security : direct access to GLOBALS, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 09/19: Security : direct access to GLOBALS, Dany De Bontridder, 2019/09/09
- [Noalyss-commit] [noalyss] 18/19: Cleaning, Dany De Bontridder, 2019/09/09