This commit is contained in:
DanB
2015-03-23 17:40:35 +01:00
32 changed files with 242 additions and 176 deletions

View File

@@ -1085,7 +1085,7 @@ func (self *SQLStorage) GetTpRates(tpid, tag string) (map[string]*utils.TPRate,
}
for _, tr := range tpRates {
rs, err := utils.NewRateSlot(tr.ConnectFee, tr.MaxCost, tr.MaxCostStrategy, tr.Rate, tr.RateUnit, tr.RateIncrement, tr.GroupIntervalStart)
rs, err := utils.NewRateSlot(tr.ConnectFee, tr.Rate, tr.RateUnit, tr.RateIncrement, tr.GroupIntervalStart)
if err != nil {
return nil, err
}
@@ -1138,6 +1138,8 @@ func (self *SQLStorage) GetTpDestinationRates(tpid, tag string, pagination *util
RateId: tpDr.RatesTag,
RoundingMethod: tpDr.RoundingMethod,
RoundingDecimals: tpDr.RoundingDecimals,
MaxCost: tpDr.MaxCost,
MaxCostStrategy: tpDr.MaxCostStrategy,
},
},
}