Bugfix Team Pfeil im ServiceRecordValidator
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user