Add hook massaction to reception list.

This commit is contained in:
Francis Appels 2022-04-25 13:58:33 +02:00
parent e9cfb9b69c
commit 40da139225

View File

@ -166,6 +166,15 @@ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x'
}
if (empty($reshook)) {
// Mass actions
$objectclass = 'Reception';
$objectlabel = 'Receptions';
$permissiontoread = $user->rights->reception->lire;
$permissiontoadd = $user->rights->reception->creer;
$permissiontodelete = $user->rights->reception->supprimer;
$uploaddir = $conf->reception->multidir_output[$conf->entity];
include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php';
if ($massaction == 'confirm_createbills') {
$receptions = GETPOST('toselect', 'array');
$createbills_onebythird = GETPOST('createbills_onebythird', 'int');