From 0bbcdfa250fc969a2436e9fe1fa225f6dab810c2 Mon Sep 17 00:00:00 2001 From: DanB Date: Tue, 24 Nov 2020 13:58:50 +0100 Subject: [PATCH] RateS - Apply FixedFee also for the second increment in Rate --- rates/librates.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rates/librates.go b/rates/librates.go index 016ce70a2..1889d2061 100644 --- a/rates/librates.go +++ b/rates/librates.go @@ -226,7 +226,7 @@ func computeRateSIntervals(rts []*orderedRate, intervalStart, usage time.Duratio if iRt.Increment == time.Duration(0) { return nil, fmt.Errorf("zero increment to be charged within rate: <%s>", rt.UID()) } - if j == 0 && rt.IntervalRates[j].FixedFee != 0 { // Add FixedFee + if rt.IntervalRates[j].FixedFee != 0 { // Add FixedFee rIcmts = append(rIcmts, &engine.RateSIncrement{ UsageStart: iRtUsageSIdx, Rate: rt.Rate,