fix warnings in bankentrie list
This commit is contained in:
parent
f6cd0818b3
commit
71541fa299
@ -214,6 +214,7 @@ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x'
|
|||||||
$search_thirdparty_user = '';
|
$search_thirdparty_user = '';
|
||||||
$search_num_releve = '';
|
$search_num_releve = '';
|
||||||
$search_conciliated = '';
|
$search_conciliated = '';
|
||||||
|
$toselect = '';
|
||||||
|
|
||||||
$search_account = "";
|
$search_account = "";
|
||||||
if ($id > 0 || !empty($ref)) {
|
if ($id > 0 || !empty($ref)) {
|
||||||
@ -224,14 +225,14 @@ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x'
|
|||||||
if (empty($reshook)) {
|
if (empty($reshook)) {
|
||||||
$objectclass = 'Account';
|
$objectclass = 'Account';
|
||||||
$objectlabel = 'BankTransaction';
|
$objectlabel = 'BankTransaction';
|
||||||
$permissiontoread = $user->rights->banque->lire;
|
$permissiontoread = !empty($user->rights->banque->lire);
|
||||||
$permissiontodelete = $user->rights->banque->modifier;
|
$permissiontodelete = !empty($user->rights->banque->modifier);
|
||||||
$uploaddir = $conf->bank->dir_output;
|
$uploaddir = $conf->bank->dir_output;
|
||||||
include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php';
|
include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Conciliation
|
// Conciliation
|
||||||
if ((GETPOST('confirm_savestatement', 'alpha') || GETPOST('confirm_reconcile', 'alpha')) && $user->rights->banque->consolidate
|
if ((GETPOST('confirm_savestatement', 'alpha') || GETPOST('confirm_reconcile', 'alpha')) && !empty($user->rights->banque->consolidate)
|
||||||
&& (!GETPOSTISSET('pageplusone') || (GETPOST('pageplusone') == GETPOST('pageplusoneold')))) {
|
&& (!GETPOSTISSET('pageplusone') || (GETPOST('pageplusone') == GETPOST('pageplusoneold')))) {
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
@ -313,7 +314,7 @@ if ((GETPOST('confirm_savestatement', 'alpha') || GETPOST('confirm_reconcile', '
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (GETPOST('save') && !$cancel && $user->rights->banque->modifier) {
|
if (GETPOST('save') && !$cancel && !empty($user->rights->banque->modifier)) {
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
if (price2num(GETPOST("addcredit")) > 0) {
|
if (price2num(GETPOST("addcredit")) > 0) {
|
||||||
@ -373,7 +374,7 @@ if (GETPOST('save') && !$cancel && $user->rights->banque->modifier) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($action == 'confirm_delete' && $confirm == 'yes' && $user->rights->banque->modifier) {
|
if ($action == 'confirm_delete' && $confirm == 'yes' && !empty($user->rights->banque->modifier)) {
|
||||||
$accline = new AccountLine($db);
|
$accline = new AccountLine($db);
|
||||||
$result = $accline->fetch(GETPOST("rowid", "int"));
|
$result = $accline->fetch(GETPOST("rowid", "int"));
|
||||||
$result = $accline->delete($user);
|
$result = $accline->delete($user);
|
||||||
@ -843,7 +844,7 @@ if ($resql) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Form to add a transaction with no invoice
|
// Form to add a transaction with no invoice
|
||||||
if ($user->rights->banque->modifier && $action == 'addline' && !empty($conf->global->BANK_USE_OLD_VARIOUS_PAYMENT)) {
|
if (!empty($user->rights->banque->modifier) && $action == 'addline' && !empty($conf->global->BANK_USE_OLD_VARIOUS_PAYMENT)) {
|
||||||
print load_fiche_titre($langs->trans("AddBankRecordLong"), '', '');
|
print load_fiche_titre($langs->trans("AddBankRecordLong"), '', '');
|
||||||
|
|
||||||
print '<table class="noborder centpercent">';
|
print '<table class="noborder centpercent">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user