Remove RoundingMethod and RoundingDecimals from RateProfile

This commit is contained in:
TeoV
2021-01-12 17:43:26 +02:00
committed by Dan Christian Bogos
parent d71eb21713
commit 66e2b4cd01
25 changed files with 323 additions and 494 deletions

View File

@@ -483,8 +483,6 @@ CREATE TABLE tp_rate_profiles (
`filter_ids` varchar(64) NOT NULL,
`activation_interval` varchar(64) NOT NULL,
`weight` decimal(8,2) NOT NULL,
`rounding_method` varchar(64) NOT NULL,
`rounding_decimals` tinyint(4) NOT NULL,
`min_cost` decimal(8,4) NOT NULL,
`max_cost` decimal(8,4) NOT NULL,
`max_cost_strategy` varchar(64) NOT NULL,

View File

@@ -469,8 +469,6 @@ CREATE INDEX tp_routes_unique ON tp_routes ("tpid", "tenant", "id",
"filter_ids" varchar(64) NOT NULL,
"activation_interval" varchar(64) NOT NULL,
"weight" decimal(8,2) NOT NULL,
"rounding_method" varchar(64) NOT NULL,
"rounding_decimals" SMALLINT NOT NULL,
"min_cost" decimal(8,4) NOT NULL,
"max_cost" decimal(8,4) NOT NULL,
"max_cost_strategy" VARCHAR(64) NOT NULL,

View File

@@ -1,8 +1,8 @@
#Tenant,ID,FilterIDs,ActivationInterval,Weight,RoundingMethod,RoundingDecimals,MinCost,MaxCost,MaxCostStrategy,RateID,RateFilterIDs,RateActivationStart,RateWeight,RateBlocker,RateIntervalStart,RateFixedFee,RateRecurrentFee,RateUnit,RateIncrement
cgrates.org,RT_SPECIAL_1002,,,0,*up,4,0,0,*free,RT_ALWAYS,,"* * * * *",0,false,0s,,0.01,1m,1s
cgrates.org,RT_RETAIL1,,,0,*up,4,0,0,*free,RT_ALWAYS,,"* * * * *",0,false,0s,,0.4,1m,30s
cgrates.org,RT_RETAIL1,,,,,,,,,RT_ALWAYS,,"* * * * *",0,false,1m,,0.2,1m,10s
cgrates.org,RT_ANY2CNT_SEC,,,0,*up,4,0,0,*free,RT_ALWAYS,,"* * * * *",0,false,0s,,0.02,1s,1s
cgrates.org,RT_ANY1CNT_SEC,,,0,*up,4,0,0,*free,RT_ALWAYS,,"* * * * *",0,false,0s,,0.01,1s,1s
cgrates.org,RT_DEFAULT,,,20,*up,4,0,0,*free,RT_ALWAYS,,"* * * * *",0,false,0s,,0.10,1m,10s
#Tenant,ID,FilterIDs,ActivationInterval,Weight,MinCost,MaxCost,MaxCostStrategy,RateID,RateFilterIDs,RateActivationStart,RateWeight,RateBlocker,RateIntervalStart,RateFixedFee,RateRecurrentFee,RateUnit,RateIncrement
cgrates.org,RT_SPECIAL_1002,,,0,0,0,*free,RT_ALWAYS,,"* * * * *",0,false,0s,,0.01,1m,1s
cgrates.org,RT_RETAIL1,,,0,0,0,*free,RT_ALWAYS,,"* * * * *",0,false,0s,,0.4,1m,30s
cgrates.org,RT_RETAIL1,,,,,,,RT_ALWAYS,,"* * * * *",0,false,1m,,0.2,1m,10s
cgrates.org,RT_ANY2CNT_SEC,,,0,0,0,*free,RT_ALWAYS,,"* * * * *",0,false,0s,,0.02,1s,1s
cgrates.org,RT_ANY1CNT_SEC,,,0,0,0,*free,RT_ALWAYS,,"* * * * *",0,false,0s,,0.01,1s,1s
cgrates.org,RT_DEFAULT,,,20,0,0,*free,RT_ALWAYS,,"* * * * *",0,false,0s,,0.10,1m,10s
1 #Tenant ID FilterIDs ActivationInterval Weight RoundingMethod MinCost RoundingDecimals MaxCost MaxCostStrategy RateID RateFilterIDs RateActivationStart RateWeight RateBlocker RateIntervalStart RateFixedFee RateRecurrentFee RateUnit RateIncrement
2 cgrates.org RT_SPECIAL_1002 0 *up 0 4 0 *free RT_ALWAYS * * * * * 0 false 0s 0.01 1m 1s
3 cgrates.org RT_RETAIL1 0 *up 0 4 0 *free RT_ALWAYS * * * * * 0 false 0s 0.4 1m 30s
4 cgrates.org RT_RETAIL1 RT_ALWAYS * * * * * 0 false 1m 0.2 1m 10s
5 cgrates.org RT_ANY2CNT_SEC 0 *up 0 4 0 *free RT_ALWAYS * * * * * 0 false 0s 0.02 1s 1s
6 cgrates.org RT_ANY1CNT_SEC 0 *up 0 4 0 *free RT_ALWAYS * * * * * 0 false 0s 0.01 1s 1s
7 cgrates.org RT_DEFAULT 20 *up 0 4 0 *free RT_ALWAYS * * * * * 0 false 0s 0.10 1m 10s
8

View File

@@ -1,5 +1,5 @@
#Tenant,ID,FilterIDs,ActivationInterval,Weight,RoundingMethod,RoundingDecimals,MinCost,MaxCost,MaxCostStrategy,RateID,RateFilterIDs,RateActivationStart,RateWeight,RateBlocker,RateIntervalStart,RateFixedFee,RateRecurrentFee,RateUnit,RateIncrement
cgrates.org,RT_SPECIAL_1002,*string:~*req.Account:1002,,10,*up,4,0,0,*free,RT_ALWAYS,,"* * * * *",0,false,0s,,0.01,1m,1s
cgrates.org,RT_RETAIL1,,,0,*up,4,0,0,*free,RT_ALWAYS,,"* * * * *",0,false,0s,,0.4,1m,30s
cgrates.org,RT_RETAIL1,,,,,,,,,RT_ALWAYS,,"* * * * *",0,false,1m,,0.2,1m,10s
#Tenant,ID,FilterIDs,ActivationInterval,Weight,MinCost,MaxCost,MaxCostStrategy,RateID,RateFilterIDs,RateActivationStart,RateWeight,RateBlocker,RateIntervalStart,RateFixedFee,RateRecurrentFee,RateUnit,RateIncrement
cgrates.org,RT_SPECIAL_1002,*string:~*req.Account:1002,,10,0,0,*free,RT_ALWAYS,,"* * * * *",0,false,0s,,0.01,1m,1s
cgrates.org,RT_RETAIL1,,,0,0,0,*free,RT_ALWAYS,,"* * * * *",0,false,0s,,0.4,1m,30s
cgrates.org,RT_RETAIL1,,,,,,,RT_ALWAYS,,"* * * * *",0,false,1m,,0.2,1m,10s
1 #Tenant ID FilterIDs ActivationInterval Weight RoundingMethod MinCost RoundingDecimals MaxCost MaxCostStrategy RateID RateFilterIDs RateActivationStart RateWeight RateBlocker RateIntervalStart RateFixedFee RateRecurrentFee RateUnit RateIncrement
2 cgrates.org RT_SPECIAL_1002 *string:~*req.Account:1002 10 *up 0 4 0 *free RT_ALWAYS * * * * * 0 false 0s 0.01 1m 1s
3 cgrates.org RT_RETAIL1 0 *up 0 4 0 *free RT_ALWAYS * * * * * 0 false 0s 0.4 1m 30s
4 cgrates.org RT_RETAIL1 RT_ALWAYS * * * * * 0 false 1m 0.2 1m 10s
5

View File

@@ -1,5 +1,5 @@
#Tenant,ID,FilterIDs,ActivationInterval,Weight,RoundingMethod,RoundingDecimals,MinCost,MaxCost,MaxCostStrategy,RateID,RateFilterIDs,RateActivationStart,RateWeight,RateBlocker,RateIntervalStart,RateFixedFee,RateRecurrentFee,RateUnit,RateIncrement
cgrates.org,RP1,*string:~*req.Subject:1001,,0,*up,4,0.1,0.6,*free,RT_WEEK,,"* * * * 1-5",0,false,0s,,0.12,1m,1m
cgrates.org,RP1,,,,,,,,,RT_WEEK,,,,,1m,,0.6,1m,1s
cgrates.org,RP1,,,,,,,,,RT_WEEKEND,,"* * * * 0,6",10,false,0s,,0.06,1m,1s
cgrates.org,RP1,,,,,,,,,RT_CHRISTMAS,,* * 24 12 *,30,false,0s,,0.06,1m,1s
#Tenant,ID,FilterIDs,ActivationInterval,Weight,MinCost,MaxCost,MaxCostStrategy,RateID,RateFilterIDs,RateActivationStart,RateWeight,RateBlocker,RateIntervalStart,RateFixedFee,RateRecurrentFee,RateUnit,RateIncrement
cgrates.org,RP1,*string:~*req.Subject:1001,,0,0.1,0.6,*free,RT_WEEK,,"* * * * 1-5",0,false,0s,,0.12,1m,1m
cgrates.org,RP1,,,,,,,RT_WEEK,,,,,1m,,0.6,1m,1s
cgrates.org,RP1,,,,,,,RT_WEEKEND,,"* * * * 0,6",10,false,0s,,0.06,1m,1s
cgrates.org,RP1,,,,,,,RT_CHRISTMAS,,* * 24 12 *,30,false,0s,,0.06,1m,1s
1 #Tenant ID FilterIDs ActivationInterval Weight RoundingMethod MinCost RoundingDecimals MaxCost MaxCostStrategy RateID RateFilterIDs RateActivationStart RateWeight RateBlocker RateIntervalStart RateFixedFee RateRecurrentFee RateUnit RateIncrement
2 cgrates.org RP1 *string:~*req.Subject:1001 0 *up 0.1 4 0.6 *free RT_WEEK * * * * 1-5 0 false 0s 0.12 1m 1m
3 cgrates.org RP1 RT_WEEK 1m 0.6 1m 1s
4 cgrates.org RP1 RT_WEEKEND * * * * 0,6 10 false 0s 0.06 1m 1s
5 cgrates.org RP1 RT_CHRISTMAS * * 24 12 * 30 false 0s 0.06 1m 1s