[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/24: Cosmetic : error message when user can
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/24: Cosmetic : error message when user cannot add card |
Date: |
Tue, 12 Jul 2022 07:05:17 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 20c5235abe7572288b80813724692d02db118620
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon May 2 10:37:58 2022 +0200
Cosmetic : error message when user cannot add card
---
include/class/acc_ledger.class.php | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/include/class/acc_ledger.class.php
b/include/class/acc_ledger.class.php
index fd1c6bf20..89c118618 100644
--- a/include/class/acc_ledger.class.php
+++ b/include/class/acc_ledger.class.php
@@ -830,10 +830,11 @@ class Acc_Ledger extends jrn_def_sql
}
$add_js.='update_row("quick_item");';
$ret="";
+ $add_card=false;
if ($g_user->check_action(FICADD)==1)
{
// Button for adding customer
- $add_card=TRUE;
+ $add_card=true;
}
$wLedger=$this->select_ledger('ODS', 2,FALSE);
if ($wLedger==null)
@@ -1042,7 +1043,7 @@ class Acc_Ledger extends jrn_def_sql
$deb->selected=(isset(${'ck'.$i}))?true:false;
$deb->readonly=$p_readonly;
$deb->javascript=' onChange="checkTotalDirect()"';
- $str_add_button=($add_card==TRUE)?$this->add_card("-1",
+ $str_add_button=($add_card==true)?$this->add_card("-1",
$quick_code->id):"";
$ret.='<tr>';
$ret.='<td>'.$quick_code->input().$quick_code->search().$str_add_button.'</td>';
- [Noalyss-commit] [noalyss] branch master updated (f8d23563a -> cbc0d3fb7), Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 01/24: Cosmetic : error message when user cannot add card,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 02/24: remove direct access to $_POST and extract, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 03/24: ISelect->display fails if this->value if null, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 06/24: Bug when ledger badly parametrized, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 08/24: Merge branch 'devel', Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 05/24: Security : management , profile access, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 09/24: Supplemental TAX : manage parameter A ledger can have only 1 supplemental tax, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 13/24: code documentation, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 10/24: New : 2178 Additional Tax : input in purchase and sale ledger - tax with positive amount - tax with negative amount - tax in currency, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 11/24: Nouveau #0002178: Cotisation de solidarité Impression : Listing (HTML, CSV et PDF) Impression : Extended (HTML, CSV et PDF) Negatif amount and currency, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 14/24: Additional Tax : database changes, Dany De Bontridder, 2022/07/12