MH: Input Fahrtkosten in InvoiceCreation
This commit is contained in:
@@ -101,9 +101,11 @@ namespace InputFamilienhilfe.Invoicing
|
||||
{
|
||||
var list = base.CreateInvoiceItems(serviceRecordsInPeriod, invoicePeriod, scap, calc);
|
||||
|
||||
var fitems = CreateFahrtkostenItems(serviceRecordsInPeriod);
|
||||
|
||||
list.AddRange(fitems);
|
||||
if (list.Count > 0)
|
||||
{
|
||||
var items = CreateFahrtkostenItems(serviceRecordsInPeriod);
|
||||
list.AddRange(items);
|
||||
}
|
||||
|
||||
var iilist = CreateSonstigeKosten(scap, calc, serviceRecordsInPeriod, invoicePeriod);
|
||||
list.AddRange(iilist);
|
||||
@@ -195,7 +197,7 @@ namespace InputFamilienhilfe.Invoicing
|
||||
|
||||
foreach (var sr in serviceRecords)
|
||||
{
|
||||
if (sr.DistanceInMeter.HasValue && sr.DistanceInMeter > 0)
|
||||
if (sr.DistanceInMeter.HasValue && sr.DistanceInMeter > 0/* && !sr.AlreadyAccounted*/)
|
||||
{
|
||||
decimal fahrtkosten = 0;
|
||||
|
||||
@@ -229,6 +231,7 @@ namespace InputFamilienhilfe.Invoicing
|
||||
}
|
||||
|
||||
ii.UnitCount += sr.DistanceInMeter;
|
||||
sr.AlreadyAccounted = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user