MH: AssistenzaReports neue Fehlermeldung

This commit is contained in:
2026-07-09 10:58:39 +02:00
parent 9b1512b5ad
commit ed8694f3e3

View File

@@ -15,9 +15,9 @@ namespace AssistenzaReports.Service
{
var list = base.ValidateServiceRecord(newServiceRecord, statisticsXX, maxDaysEditServiceRecordsAllowed, employeeOids, cb2scOids);
if (newServiceRecord.Start == null && newServiceRecord.End == null ||
if (newServiceRecord.ServiceDescription.Category.IsBillable && (newServiceRecord.Start == null && newServiceRecord.End == null ||
newServiceRecord.Start.HasValue && newServiceRecord.Start.Value.Second == 1 &&
newServiceRecord.End.HasValue && newServiceRecord.End.Value.Second == 1)
newServiceRecord.End.HasValue && newServiceRecord.End.Value.Second == 1))
{
list.Add(new ServiceRecordValidationResultDC()
{