AwoDortmund/Invoicing/SoziotherapieFinanceROCreation Änderung der Preishinterlegung

This commit is contained in:
2023-12-14 13:53:01 +01:00
parent 1e73ba7f30
commit b67dd63076

View File

@@ -64,11 +64,13 @@ namespace AwoDortmund.Invoicing
{ {
var ii = base.CreateInvoiceItem(iServiceRecord, scap, calc); var ii = base.CreateInvoiceItem(iServiceRecord, scap, calc);
ii.ItemDescription = ii.ItemDescription = iServiceRecord.ServiceDescription.CategoryName; ii.ItemDescription = ii.ItemDescription = iServiceRecord.ServiceDescription.CategoryName;
if (ii.ItemDescription.Contains("Soziotherapie")) if (ii.ItemPeriodEnd < new DateTime(2023, 11, 01) && ii.ItemDescription.Contains("Soziotherapie"))
{
ii.AmountPerUnit = preisSoziotherapie60min; ii.AmountPerUnit = preisSoziotherapie60min;
ii.RateFactor = null; ii.RateFactor = null;
ii.AmountTotal = ii.AmountPerUnit * ii.UnitCount; ii.AmountTotal = ii.AmountPerUnit * ii.UnitCount;
ii.GrossAmountTotal = ii.AmountTotal; ii.GrossAmountTotal = ii.AmountTotal;
}
return ii; return ii;
} }
@@ -83,7 +85,7 @@ namespace AwoDortmund.Invoicing
var list = base.CreateInvoiceItems(serviceRecordsInPeriod, invoicePeriod, scap, calc); var list = base.CreateInvoiceItems(serviceRecordsInPeriod, invoicePeriod, scap, calc);
var ii = CreateHausbesuchspauschale(serviceRecordsInPeriod, invoicePeriod, scap); var ii = CreateHausbesuchspauschale(serviceRecordsInPeriod, invoicePeriod, scap, preise);
list.AddRange(ii); list.AddRange(ii);
return list; return list;
@@ -106,11 +108,12 @@ namespace AwoDortmund.Invoicing
return 0; return 0;
} }
public virtual IList<InvoiceItem> CreateHausbesuchspauschale(List<ServiceRecordDC> serviceRecordsInPeriod, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap) public virtual IList<InvoiceItem> CreateHausbesuchspauschale(List<ServiceRecordDC> serviceRecordsInPeriod, DateTimeSpan invoicePeriod, SupportConceptApprovalPeriod scap, IList<Preis> preise)
{ {
//Dictionary<String, int> differentDays = new Dictionary<string, int>(); //Dictionary<String, int> differentDays = new Dictionary<string, int>();
IList<InvoiceItem> items = new List<InvoiceItem>(); IList<InvoiceItem> items = new List<InvoiceItem>();
decimal hausbesuchspauschale = 7.8m; decimal hausbesuchspauschale = 7.8m;
hausbesuchspauschale = GetPreis(preise, "Hausbesuchspauschale", invoicePeriod.StartDate);
int countHausbesuch = 0; int countHausbesuch = 0;