automatic billable calculation (#3200)
This commit is contained in:
@@ -153,8 +153,9 @@ class TimesheetTeamController extends TimesheetAbstractController
|
||||
|
||||
return $this->createForm(TimesheetMultiUserEditForm::class, $entry, [
|
||||
'action' => $this->generateUrl('admin_timesheet_create_multiuser'),
|
||||
'include_rate' => $this->isGranted('edit_rate', $entry),
|
||||
'include_exported' => $this->isGranted('edit_export', $entry),
|
||||
'include_rate' => $this->isGranted($this->getPermissionEditRate()),
|
||||
'include_exported' => $this->isGranted($this->getPermissionEditExport()),
|
||||
'include_billable' => $this->isGranted($this->getPermissionEditBillable()),
|
||||
'include_user' => $this->includeUserInForms('create'),
|
||||
'allow_begin_datetime' => $mode->canEditBegin(),
|
||||
'allow_end_datetime' => $mode->canEditEnd(),
|
||||
@@ -205,6 +206,11 @@ class TimesheetTeamController extends TimesheetAbstractController
|
||||
return 'edit_export_other_timesheet';
|
||||
}
|
||||
|
||||
protected function getPermissionEditBillable(): string
|
||||
{
|
||||
return 'edit_billable_other_timesheet';
|
||||
}
|
||||
|
||||
protected function getPermissionEditRate(): string
|
||||
{
|
||||
return 'edit_rate_other_timesheet';
|
||||
|
||||
Reference in New Issue
Block a user