using time.Duration for rateincrements and groupinterval

This commit is contained in:
Radu Ioan Fericean
2013-08-07 13:29:27 +03:00
parent 0785874357
commit c209dbfb9f
14 changed files with 99 additions and 83 deletions

View File

@@ -42,8 +42,8 @@ CREATE TABLE `tp_rates` (
`connect_fee` decimal(5,4) NOT NULL,
`rate` decimal(5,4) NOT NULL,
`rated_units` int(11) NOT NULL,
`rate_increments` int(11) NOT NULL,
`group_interval` int(11) NOT NULL,
`rate_increments` varchar(24) NOT NULL,
`group_interval` varchar(24) NOT NULL,
`rounding_method` varchar(255) NOT NULL,
`rounding_decimals` tinyint(4) NOT NULL,
`weight` decimal(5,2) NOT NULL,

View File

@@ -1,7 +1,7 @@
#Tag,ConnectFee,Rate,RatedUnits,RateIncrements,GroupInterval,RoundingMethod,RoundingDecimals,Weight
LANDLINE_PEAK,0.02,0.02,60,60,0,*up,4,10
LANDLINE_PEAK,0.02,0.01,1,1,60,*up,4,10
MOBILE_PEAK,0.02,0.14,60,60,0,*up,4,10
LANDLINE_OFFPEAK,1,0,60,60,0,*up,4,10
MOBILE_OFFPEAK,0.02,0.1,60,60,0,*up,4,10
RT_FS_USERS,0,0,60,60,0,*up,0,10
LANDLINE_PEAK,0.02,0.02,60,60s,0,*up,4,10
LANDLINE_PEAK,0.02,0.01,1,1s,60s,*up,4,10
MOBILE_PEAK,0.02,0.14,60,60s,0,*up,4,10
LANDLINE_OFFPEAK,1,0,60,60s,0,*up,4,10
MOBILE_OFFPEAK,0.02,0.1,60,60s,0,*up,4,10
RT_FS_USERS,0,0,60,60s,0,*up,0,10
1 #Tag ConnectFee Rate RatedUnits RateIncrements GroupInterval RoundingMethod RoundingDecimals Weight
2 LANDLINE_PEAK 0.02 0.02 60 60 60s 0 *up 4 10
3 LANDLINE_PEAK 0.02 0.01 1 1 1s 60 60s *up 4 10
4 MOBILE_PEAK 0.02 0.14 60 60 60s 0 *up 4 10
5 LANDLINE_OFFPEAK 1 0 60 60 60s 0 *up 4 10
6 MOBILE_OFFPEAK 0.02 0.1 60 60 60s 0 *up 4 10
7 RT_FS_USERS 0 0 60 60 60s 0 *up 0 10