LwlPrueflisteRO - Erweiterung um Monatsunterschrift Klient
This commit is contained in:
@@ -57,7 +57,8 @@ sr.ServiceDescriptionOid,
|
||||
(select name from ServiceDescription sd where sd.Oid = sr.ServiceDescriptionOid),
|
||||
(select distinct zeitstempel from signature sig where sig.ServiceRecordOid = sr.Oid AND sig.IsActive = 1 order by zeitstempel desc limit 1),
|
||||
(select emp2p.Abbreviation from employee emp2 join `person` emp2p on emp2p.`Oid` = emp2.`PersonOid` where emp2.`Oid` = sr.EmployeeOid),
|
||||
(select cs.InsTs from confirmationreceiptsignature2servicerecord cs2s join confirmationreceiptsignature cs where cs.Oid = cs2s.ConfirmationReceiptSignatureOid and cs.IsActive = 1 and cs2s.ServiceRecordOid = sr.oid LIMIT 1)
|
||||
(select cs.InsTs from confirmationreceiptsignature2servicerecord cs2s join confirmationreceiptsignature cs where cs.Oid = cs2s.ConfirmationReceiptSignatureOid and cs.IsActive = 1 and cs.EmployeeOid Is not null and cs2s.ServiceRecordOid = sr.oid LIMIT 1),
|
||||
(select cs.InsTs from confirmationreceiptsignature2servicerecord cs2s join confirmationreceiptsignature cs where cs.Oid = cs2s.ConfirmationReceiptSignatureOid and cs.IsActive = 1 and cs.CustomerOid = c.Oid and cs2s.ServiceRecordOid = sr.oid LIMIT 1)
|
||||
FROM servicerecord sr
|
||||
JOIN costbearer2supportconcept c2s on c2s.oid = sr.CostBearer2SupportConceptOid
|
||||
JOIN supportconcept sc on sc.Oid = c2s.SupportConceptOid
|
||||
@@ -115,6 +116,10 @@ order by p.lastname, p.Firstname, sr.startdate
|
||||
{
|
||||
e.CustomerSignatureDate = dt1;
|
||||
}
|
||||
else if (sqlRow[21] != null && DateTime.TryParse(sqlRow[21].ToString(), out var dtb))
|
||||
{
|
||||
e.CustomerSignatureDate = dtb;
|
||||
}
|
||||
e.EmployeeAbbr = (String)sqlRow[19];
|
||||
|
||||
if (sqlRow[20] != null && DateTime.TryParse(sqlRow[20].ToString(), out var dt2))
|
||||
|
||||
Reference in New Issue
Block a user