Fix missing button to create new record (Look and feel)
This commit is contained in:
parent
9a5f2634a4
commit
3cf59ba67f
@ -43,6 +43,8 @@ if ($user->socid) {
|
|||||||
}
|
}
|
||||||
$result = restrictedArea($user, 'paymentbybanktransfer', '', '');
|
$result = restrictedArea($user, 'paymentbybanktransfer', '', '');
|
||||||
|
|
||||||
|
$usercancreate = $user->rights->paymentbybanktransfer->create;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
@ -62,7 +64,12 @@ if (prelevement_check_config('bank-transfer') < 0) {
|
|||||||
setEventMessages($langs->trans("ErrorModuleSetupNotComplete", $langs->transnoentitiesnoconv("PaymentByBankTransfer")), null, 'errors');
|
setEventMessages($langs->trans("ErrorModuleSetupNotComplete", $langs->transnoentitiesnoconv("PaymentByBankTransfer")), null, 'errors');
|
||||||
}
|
}
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("SuppliersStandingOrdersArea"));
|
$newcardbutton = '';
|
||||||
|
if ($usercancreate) {
|
||||||
|
$newcardbutton .= dolGetButtonTitle($langs->trans('NewStandingOrder'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/compta/prelevement/create.php?type=bank-transfer');
|
||||||
|
}
|
||||||
|
|
||||||
|
print load_fiche_titre($langs->trans("SuppliersStandingOrdersArea"), $newcardbutton);
|
||||||
|
|
||||||
|
|
||||||
print '<div class="fichecenter"><div class="fichethirdleft">';
|
print '<div class="fichecenter"><div class="fichethirdleft">';
|
||||||
|
|||||||
@ -43,6 +43,8 @@ if ($user->socid) {
|
|||||||
}
|
}
|
||||||
$result = restrictedArea($user, 'prelevement', '', 'bons');
|
$result = restrictedArea($user, 'prelevement', '', 'bons');
|
||||||
|
|
||||||
|
$usercancreate = $user->rights->prelevement->bons->creer;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
@ -62,7 +64,12 @@ if (prelevement_check_config() < 0) {
|
|||||||
setEventMessages($langs->trans("ErrorModuleSetupNotComplete", $langs->transnoentitiesnoconv("PaymentByDirectDebit")), null, 'errors');
|
setEventMessages($langs->trans("ErrorModuleSetupNotComplete", $langs->transnoentitiesnoconv("PaymentByDirectDebit")), null, 'errors');
|
||||||
}
|
}
|
||||||
|
|
||||||
print load_fiche_titre($langs->trans("CustomersStandingOrdersArea"));
|
$newcardbutton = '';
|
||||||
|
if ($usercancreate) {
|
||||||
|
$newcardbutton .= dolGetButtonTitle($langs->trans('NewStandingOrder'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/compta/prelevement/create.php?type=');
|
||||||
|
}
|
||||||
|
|
||||||
|
print load_fiche_titre($langs->trans("CustomersStandingOrdersArea"), $newcardbutton);
|
||||||
|
|
||||||
|
|
||||||
print '<div class="fichecenter"><div class="fichethirdleft">';
|
print '<div class="fichecenter"><div class="fichethirdleft">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user