diff --git a/Service/Invoicing/SettlementInvoiceCreation.cs b/Service/Invoicing/SettlementInvoiceCreation.cs index b6a7ad04f..32927cc23 100644 --- a/Service/Invoicing/SettlementInvoiceCreation.cs +++ b/Service/Invoicing/SettlementInvoiceCreation.cs @@ -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) diff --git a/Shared/Services/AccountingPeriod.cs b/Shared/Services/AccountingPeriod.cs index c9c0d2713..4c2a0a1c2 100644 --- a/Shared/Services/AccountingPeriod.cs +++ b/Shared/Services/AccountingPeriod.cs @@ -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; diff --git a/Shared/Services/Calculations.cs b/Shared/Services/Calculations.cs index 1947ba851..fd4c6e238 100644 --- a/Shared/Services/Calculations.cs +++ b/Shared/Services/Calculations.cs @@ -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;