MH: DiakonischesWerkMuelheimTwg PflegeInvoiceCreation Bugfix (wegen Bug Finanzauswertung)
This commit is contained in:
@@ -22,7 +22,7 @@ namespace DiakonischesWerkMuelheimTwg.Invoicing
|
||||
var c2s = DAOFactory.GenericDAO.LoadByID<CostBearer2SupportConcept>(sc.CostBearerRelOids[0]);
|
||||
|
||||
// Wenn es nur die Bewilligung für Barbetragsabrechnung gibt, einfach die entsprechende Erstellung starten
|
||||
if (c2s.ApprovalPeriodList.Any(a => a.ServiceCategory.Name.Contains("Bar")) && c2s.ApprovalPeriodList.Count == 1)
|
||||
if (c2s.ApprovalPeriodList.Any(a => a.ServiceCategory != null && a.ServiceCategory.Name.Contains("Bar")) && c2s.ApprovalPeriodList.Count == 1)
|
||||
{
|
||||
return new BarbetragInvoiceCreation();
|
||||
}
|
||||
|
||||
@@ -56,8 +56,11 @@ namespace DiakonischesWerkMuelheimTwg.Invoicing
|
||||
{
|
||||
var barInvoiceCreation = new BarbetragInvoiceCreation();
|
||||
var inv = barInvoiceCreation.CreateSingleInvoice(invoiceCounter, costBearer, invoicePeriod, sc.Key, sc.Value);
|
||||
invoiceList.Add(inv);
|
||||
invoiceCounter++;
|
||||
if (inv != null)
|
||||
{
|
||||
invoiceList.Add(inv);
|
||||
invoiceCounter++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user