Im Mobilklienten kann man ServiceRecords bearbeiten, wenn AnzTageZeiterfassErfolgt 0 ist.

This commit is contained in:
Lyndon Jetten
2019-11-25 21:19:07 +01:00
parent 81b37f304e
commit e62a202613
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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)
{