Fehlkontakt-Erkennung für Spitzabrechung funktioniert jetzt auch richtig, wenn KT keinen pauschalen Faktor hat
This commit is contained in:
@@ -908,10 +908,10 @@ namespace BeWo.Service.Invoicing
|
||||
|
||||
maxApprovedFls -= unitCountBudget;
|
||||
|
||||
if (unitCountBudget < ii.UnitCount)
|
||||
{
|
||||
ii.UnitCount = unitCountBudget;
|
||||
}
|
||||
//if (unitCountBudget < ii.UnitCount)
|
||||
//{
|
||||
// ii.UnitCount = unitCountBudget;
|
||||
//}
|
||||
if (ii.AmountPerUnit.HasValue)
|
||||
{
|
||||
if (!String.IsNullOrEmpty(ii.ItemDescription) && ii.ItemDescription == "Fehlkontakte" && ii.ProzentAbrechenbar.HasValue)
|
||||
|
||||
@@ -55,7 +55,8 @@ namespace BS.Shared.Services
|
||||
ap.PeriodEnd == this.PeriodEnd &&
|
||||
ap.Amount == this.Amount &&
|
||||
ap.RateFactor == this.RateFactor &&
|
||||
ap.AccountingInterval == this.AccountingInterval)
|
||||
ap.AccountingInterval == this.AccountingInterval &&
|
||||
ap.Notice == this.Notice)
|
||||
{
|
||||
if (ap.ServiceCategory == null && this.ServiceCategory == null)
|
||||
return true;
|
||||
|
||||
@@ -1787,7 +1787,7 @@ namespace BS.Shared.Services
|
||||
}
|
||||
CalculateApprovedAmounts(ap, scap);
|
||||
|
||||
if (sr.ServiceDescription.Name.ToLower().Contains("fehlkontakt") || (sr.ServiceDescription.ProzentAbrechnung.HasValue && sr.ServiceDescription.ProzentAbrechnung.Value < 100))
|
||||
if (sr.ServiceDescription.Category.Name.ToLower().Contains("fehlkontakt") || sr.ServiceDescription.Name.ToLower().Contains("fehlkontakt") || (sr.ServiceDescription.ProzentAbrechnung.HasValue && sr.ServiceDescription.ProzentAbrechnung.Value < 100))
|
||||
{
|
||||
ap.Notice = "Fehlkontakte";
|
||||
ap.RateFactor = 0;
|
||||
|
||||
Reference in New Issue
Block a user