LyvieKupfer/Invoicing/CustomInvoiceCreation.cs - bei denen haben auch Fehlkontakte den Faktor
SupportOID=160250
This commit is contained in:
@@ -20,8 +20,7 @@ namespace LyvieKupfer.Invoicing
|
||||
if (!ii.RateFactor.HasValue)
|
||||
{
|
||||
var rateFactor = iServiceRecord.CostBearer.CostRatePeriods.GetCostRatePeriodForDate(CostRatePeriodType.RateFactor, iServiceRecord.Start.Value);
|
||||
if (rateFactor != null && rateFactor.CostRateValue.HasValue
|
||||
&& !(iServiceRecord.ServiceDescription.Name.ToLower().Contains("fehlkontakt") || (iServiceRecord.ServiceDescription.ProzentAbrechnung.HasValue && iServiceRecord.ServiceDescription.ProzentAbrechnung.Value < 100)))
|
||||
if (rateFactor != null && rateFactor.CostRateValue.HasValue)
|
||||
{
|
||||
ii.RateFactor = rateFactor.CostRateValue;
|
||||
//ii.UnitCount = ii.UnitCount.Value * ((100 + ii.RateFactor.Value) / 100);
|
||||
|
||||
Reference in New Issue
Block a user