This commit is contained in:
GregM 2022-03-18 16:28:25 +01:00
parent 84ef951a99
commit 4c4d18ebd6

View File

@ -1070,7 +1070,7 @@ if ($id) {
if (!empty($user->rights->salaries->delete) && empty($totalpaye)) {
print dolGetButtonAction('', $langs->trans('Delete'), 'delete', $_SERVER["PHP_SELF"].'?action=delete&token='.newToken().'&id='.$object->id, '');
} else {
print dolGetButtonAction($langs->trans('DisabledBecausePayments'),$langs->trans('Delete'), 'default', $_SERVER['PHP_SELF'].'#', '', false);
print dolGetButtonAction($langs->trans('DisabledBecausePayments'), $langs->trans('Delete'), 'default', $_SERVER['PHP_SELF'].'#', '', false);
}
}
print "</div>";