PerspektivenEV/Invoicing/CustomPfkInvoiceCreation - Einfügen von % Abrechenbarkeit bei Qualifikationsabhängigen Sätzen
This commit is contained in:
@@ -87,18 +87,25 @@ namespace PerspektivenEV.Invoicing
|
||||
if (stundensatz != 0)
|
||||
{
|
||||
invoiceItem.AmountPerUnit = stundensatz;
|
||||
invoiceItem.AmountTotal = stundensatz * bd.UnitCount;
|
||||
invoiceItem.GrossAmountTotal = stundensatz * bd.UnitCount;
|
||||
var prozent = iServiceRecord.ServiceDescription.Category.Percentage;
|
||||
if (iServiceRecord.ServiceDescription.ProzentAbrechnung.HasValue)
|
||||
{
|
||||
prozent = iServiceRecord.ServiceDescription.ProzentAbrechnung.Value;
|
||||
}
|
||||
invoiceItem.UnitCount = bd.UnitCount * prozent / 100;
|
||||
invoiceItem.AmountTotal = stundensatz * invoiceItem.UnitCount;
|
||||
invoiceItem.GrossAmountTotal = stundensatz * invoiceItem.UnitCount;
|
||||
}
|
||||
else
|
||||
{
|
||||
invoiceItem.UnitCount = bd.UnitCount;
|
||||
invoiceItem.AmountPerUnit = bd.AmountPerUnit;
|
||||
invoiceItem.AmountTotal = bd.AmountTotal;
|
||||
invoiceItem.GrossAmountTotal = bd.GrossAmountTotal;
|
||||
invoiceItem.ItemDescription = iServiceRecord.ServiceDescription.Name;
|
||||
}
|
||||
|
||||
invoiceItem.UnitCount = bd.UnitCount;
|
||||
|
||||
invoiceItem.ItemPeriodStart = bd.BillingPeriodStart;
|
||||
invoiceItem.ItemPeriodEnd = bd.BillingPeriodEnd;
|
||||
invoiceItem.RateFactor = bd.RateFactor;
|
||||
|
||||
Reference in New Issue
Block a user