mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
RateS - Apply FixedFee also for the second increment in Rate
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user