Bugfix Team Pfeil im ServiceRecordValidator

This commit is contained in:
2026-05-11 10:48:38 +02:00
parent 12e4e7761f
commit e00d6ec8a2
3 changed files with 29 additions and 22 deletions

View File

@@ -1532,7 +1532,11 @@ namespace BeWoPlanerMobil.Controllers
{
//if(Model.NewServiceRecord.CostBearer != null && Model.ShowSignature && (Model.NewServiceRecord.ServiceDescription.Category.IsBillable || Model.NewServiceRecord.ServiceDescription.Category.BillableAmount > 0m || Model.NewServiceRecord.ServiceDescription.BillableAmount > 0m))
//{
var valRes = OperationsService.ValidateServiceRecord(Model.NewServiceRecord, null, 0, null, null);
var dummystats = new SupportConceptStatisticsDC();
dummystats.PeriodStatistics = new List<SupportConceptPeriodStatisticsDC>();
var valRes = OperationsService.ValidateServiceRecord(Model.NewServiceRecord, dummystats, 0, null, null);
var doppelt = valRes.Count > 0 && valRes.FirstOrDefault(v => v.ResultType == DoppelterEintrag) != null;
if(!doppelt)