Im Mobilklienten kann man ServiceRecords bearbeiten, wenn AnzTageZeiterfassErfolgt 0 ist.
This commit is contained in:
@@ -170,8 +170,8 @@ namespace BeWoPlanerMobil.Controllers
|
||||
Model.SelectedEmployee = MobileSessionFacade.LoggedInCompactEmployee;
|
||||
}
|
||||
|
||||
var IsServiceRecordNoticeMandatorySetting = GetSettingValue("IsServiceRecordNoticeMandatory");
|
||||
if (IsServiceRecordNoticeMandatorySetting != null && IsServiceRecordNoticeMandatorySetting == "0")
|
||||
var isServiceRecordNoticeMandatorySetting = GetSettingValue("IsServiceRecordNoticeMandatory");
|
||||
if (isServiceRecordNoticeMandatorySetting != null && isServiceRecordNoticeMandatorySetting == "0")
|
||||
{
|
||||
Model.IsServiceRecordNoticeMandatory = false;
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ namespace BeWoPlanerMobil.Models
|
||||
}
|
||||
}
|
||||
|
||||
if (allowed && MobileSessionFacade.CheckForUserRight(UserRightType.ServiceRecordAllowEditAfterMindays))
|
||||
if (allowed && MobileSessionFacade.CheckForUserRight(UserRightType.ServiceRecordAllowEditAfterMindays) && ApplicationSettings.AnzTageZeiterfassErfolgt > 0)
|
||||
{
|
||||
if (serviceRecord.Start.HasValue)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user