Monatsunterschriften werden im Muster-Quittierungsbeleg angezeigt.

MoK:
Die Prüfung, ob für einen ServiceRecord eine Monatsunterschrift existiert wurde gefixt.
This commit is contained in:
2023-06-19 16:03:55 +02:00
parent 3c6c7b578c
commit bf57aa891c
7 changed files with 119 additions and 23 deletions

View File

@@ -2026,12 +2026,12 @@ namespace BeWoPlanerMobil.Controllers
var serviceRecord = Model.ServiceRecords.FirstOrDefault(f => f.ServiceRecordOid.HasValue && f.ServiceRecordOid.Value.Equals(oid)) ?? OperationsService.GetServiceRecordById(oid);
if(!serviceRecord?.ServiceRecordOid.HasValue ?? false)
if(serviceRecord?.ServiceRecordOid is null)
{
return null;
}
var hasMonatsunterschrift = OperationsService.HasConfirmationReceiptSignature(new List<long> { serviceRecord.ServiceRecordOid.Value }, SignatureType.Customer);
var hasMonatsunterschrift = OperationsService.CheckForConfirmationReceiptSignatureForServiceRecord(serviceRecord.ServiceRecordOid.Value, SignatureType.Customer);
var serviceRecord2Monatsunterschrift = new ServiceRecord2Monatsunterschrift(serviceRecord, hasMonatsunterschrift);