MH: Autismus Köln Bonn Rechnungsentwicklung

This commit is contained in:
2023-06-22 15:14:31 +02:00
parent 637fe11452
commit 30ab2d5fc1
4 changed files with 26 additions and 26 deletions

View File

@@ -172,12 +172,12 @@ namespace AutismusKoelnBonn.Invoicing
var invoiceItem = new InvoiceItem();
BillingData bd = calc.GetBillingData(iServiceRecord);
if (iServiceRecord.ServiceDescription.Name.ToLower() == "wegezeit")
{
bd.AmountPerUnit = AbrechenbarkeitenHelper.GetWegezeitBetrag(scap.CostBearer2SupportConcept.CostBearer.Organisation.VarFieldValueList);
bd.AmountTotal = bd.UnitCount * bd.AmountPerUnit;
bd.GrossAmountTotal = bd.AmountTotal;
}
//if (iServiceRecord.ServiceDescription.Name.ToLower() == "wegezeit")
//{
// bd.AmountPerUnit = AbrechenbarkeitenHelper.GetWegezeitBetrag(scap.CostBearer2SupportConcept.CostBearer.Organisation.VarFieldValueList);
// bd.AmountTotal = bd.UnitCount * bd.AmountPerUnit;
// bd.GrossAmountTotal = bd.AmountTotal;
//}
invoiceItem.AmountPerUnit = bd.AmountPerUnit;
invoiceItem.UnitCount = bd.UnitCount;

View File

@@ -153,12 +153,12 @@ namespace AutismusKoelnBonn.Invoicing
var invoiceItem = new InvoiceItem();
BillingData bd = calc.GetBillingData(iServiceRecord);
if (iServiceRecord.ServiceDescription.Name.ToLower() == "wegezeit")
{
bd.AmountPerUnit = AbrechenbarkeitenHelper.GetWegezeitBetrag(scap.CostBearer2SupportConcept.CostBearer.Organisation.VarFieldValueList);
bd.AmountTotal = bd.UnitCount * bd.AmountPerUnit;
bd.GrossAmountTotal = bd.AmountTotal;
}
//if (iServiceRecord.ServiceDescription.Name.ToLower() == "wegezeit")
//{
// bd.AmountPerUnit = AbrechenbarkeitenHelper.GetWegezeitBetrag(scap.CostBearer2SupportConcept.CostBearer.Organisation.VarFieldValueList);
// bd.AmountTotal = bd.UnitCount * bd.AmountPerUnit;
// bd.GrossAmountTotal = bd.AmountTotal;
//}
invoiceItem.ItemDescription = iServiceRecord.ServiceDescription.Name; //iServiceRecord.Employee + " - " + iServiceRecord.ServiceDescription.Name;
invoiceItem.AmountPerUnit = bd.AmountPerUnit;

View File

@@ -189,12 +189,12 @@ namespace AutismusKoelnBonn.Invoicing
var invoiceItem = new InvoiceItem();
BillingData bd = calc.GetBillingData(iServiceRecord);
if (iServiceRecord.ServiceDescription.Name.ToLower() == "wegezeit")
{
bd.AmountPerUnit = AbrechenbarkeitenHelper.GetWegezeitBetrag(scap.CostBearer2SupportConcept.CostBearer.Organisation.VarFieldValueList);
bd.AmountTotal = bd.UnitCount * bd.AmountPerUnit;
bd.GrossAmountTotal = bd.AmountTotal;
}
//if (iServiceRecord.ServiceDescription.Name.ToLower() == "wegezeit")
//{
// bd.AmountPerUnit = AbrechenbarkeitenHelper.GetWegezeitBetrag(scap.CostBearer2SupportConcept.CostBearer.Organisation.VarFieldValueList);
// bd.AmountTotal = bd.UnitCount * bd.AmountPerUnit;
// bd.GrossAmountTotal = bd.AmountTotal;
//}
invoiceItem.AmountPerUnit = bd.AmountPerUnit;
invoiceItem.UnitCount = bd.UnitCount;

View File

@@ -45,14 +45,14 @@ namespace AutismusKoelnBonn.Service
return abrechenbarkeitenDict;
}
public static decimal? GetWegezeitBetrag(IList<VarFieldValue> varFieldValueList)
{
var betragVarField = varFieldValueList.FirstOrDefault(vv => vv.VarFieldDefOid == 4);
//public static decimal? GetWegezeitBetrag(IList<VarFieldValue> varFieldValueList)
//{
// var betragVarField = varFieldValueList.FirstOrDefault(vv => vv.VarFieldDefOid == 4);
if (betragVarField != null)
return Convert.ToDecimal(Utils.XMLDeserializeFromString(betragVarField.SerializedValue, Type.GetType(betragVarField.TypeName)));
else
return 0m;
}
// if (betragVarField != null)
// return Convert.ToDecimal(Utils.XMLDeserializeFromString(betragVarField.SerializedValue, Type.GetType(betragVarField.TypeName)));
// else
// return 0m;
//}
}
}