Commit Graph

62 Commits

Author SHA1 Message Date
Radu Ioan Fericean
b784edf5aa Merge branch 'master' into shared_balances
Conflicts:
	engine/balances.go
	utils/consts.go
2014-02-07 22:32:03 +02:00
Radu Ioan Fericean
914fe77117 rating subject can have multiple predefined values
Valid values can start with *zero + any duration 1m, 15m, 1h10m
2014-02-07 22:26:39 +02:00
Radu Ioan Fericean
3a3b92e9d6 little cleanup 2014-02-07 11:13:39 +02:00
Radu Ioan Fericean
a9d698e029 Merge branch 'master' into shared_balances
Conflicts:
	engine/balances.go
	engine/userbalance.go
2014-02-07 10:57:29 +02:00
Radu Ioan Fericean
aa99a1e526 make sure connect fee is deducted only on LoopIndex = 0 2014-02-06 19:36:42 +02:00
Radu Ioan Fericean
f154dac933 connect fee changes
The connect fee is take from the first timespan after balance debit.
So if the balance has ratingsubject than that connect fee will be applied.
2014-02-06 18:56:21 +02:00
Radu Ioan Fericean
3bf3f04cc6 removed connect fee as a separte field in call cost 2014-02-06 01:34:38 +02:00
Radu Ioan Fericean
727337e617 start shared groups cvs loading
modified shared group structure
2014-02-03 18:50:26 +02:00
Radu Ioan Fericean
c7ea2cd263 miminmum match length is now parametrized and can be moved in the confs
Note that it affects the general speed
2014-02-03 10:53:32 +02:00
Radu Ioan Fericean
30a842a6b9 miminmum match length is now parametrized and can be moved in the confs
Note that it affects the general speed
2014-02-01 14:04:12 +02:00
Radu Ioan Fericean
0490eaef8c split shared debiting methods minutes/money 2014-01-29 21:54:17 +02:00
Radu Ioan Fericean
31eebb7e81 Merge branch 'master' into shared_balances 2014-01-28 13:00:40 +02:00
Radu Ioan Fericean
a5fad89574 added disabling facility for user accounts 2014-01-28 12:22:50 +02:00
Radu Ioan Fericean
99e269b894 Merge branch 'master' into shared_balances 2014-01-14 18:20:29 +02:00
Radu Ioan Fericean
4b0ccb7564 protection against recursive action execution from triggers 2014-01-14 17:26:16 +02:00
Radu Ioan Fericean
d28815bf0a execute action triggers on debit action 2014-01-14 13:24:06 +02:00
Radu Ioan Fericean
d776219013 added user info to balance for shared balances finding 2014-01-13 22:11:51 +02:00
Radu Ioan Fericean
1471c47bda started adding test for shared group and created utility methods for
getting shared balances
2014-01-09 20:06:32 +02:00
Radu Ioan Fericean
1c2d2116fd little improvement 2014-01-09 16:57:44 +02:00
Radu Ioan Fericean
3f16c1c12d debit minutes logic 2014-01-08 22:15:11 +02:00
Radu Ioan Fericean
58ddae9b70 Started shared balances logic 2014-01-07 22:34:40 +02:00
Radu Ioan Fericean
e03bbc9b96 started accounting storage 2013-12-17 21:19:38 +02:00
Radu Ioan Fericean
cd9eaecb83 changed the way the destinations are cached 2013-12-17 19:33:04 +02:00
Radu Ioan Fericean
022c426a20 further caching and optimizations 2013-12-14 16:51:28 +02:00
Radu Ioan Fericean
950a357127 more fixes and test for credit refounding 2013-12-13 17:26:14 +02:00
Radu Ioan Fericean
c68660367b improved max session duration (used to check initial connect) 2013-12-12 15:45:49 +02:00
Radu Ioan Fericean
d5f4417005 better rate subject monet debit 2013-12-11 14:48:16 +02:00
Radu Ioan Fericean
6ff0d17d5f refactored debit credit method, now modular and better tested 2013-12-10 20:24:06 +02:00
Radu Ioan Fericean
3611494936 before rewrite 2013-12-10 20:24:06 +02:00
Radu Ioan Fericean
10dea0c55d show error on not enough credit when debiting 2013-12-04 21:26:17 +02:00
Radu Ioan Fericean
95b6cbbdc8 refactored unit counters 2013-12-04 11:44:48 +02:00
Radu Ioan Fericean
66c6efab96 fixed debit bug 2013-12-03 17:03:20 +02:00
Radu Ioan Fericean
b669d1d326 Added bool parameter for searching datadb for cached values or not 2013-11-28 18:09:24 +02:00
Radu Ioan Fericean
fb80c6c2a8 destinations using string and compression 2013-10-29 16:57:55 +02:00
Radu Ioan Fericean
a4559a68ea rating plan optimization 2013-10-24 19:22:55 +03:00
Radu Ioan Fericean
d03ff0a5cd newsubject tests and fixes 2013-10-15 14:56:39 +03:00
Radu Ioan Fericean
54ab6074a6 more loading fixes and more tests 2013-10-09 20:02:13 +03:00
Radu Ioan Fericean
56b4a3f0a4 fix for bad timespan 2013-10-08 15:27:04 +03:00
Radu Ioan Fericean
4428c09748 ore tests and small fixes 2013-10-07 18:44:20 +03:00
Radu Ioan Fericean
617c3f9591 more tests 2013-10-07 17:03:00 +03:00
Radu Ioan Fericean
f5059e55fa started minute new subject 2013-10-06 11:21:16 +03:00
Radu Ioan Fericean
85027f0764 new subject for monetary balances 2013-10-04 22:13:37 +03:00
Radu Ioan Fericean
7632a8f14e tests passing on get max session time 2013-10-04 16:18:28 +03:00
Radu Ioan Fericean
c889eafb20 removed special price 2013-10-03 20:14:45 +03:00
Radu Ioan Fericean
6cd7edd8a2 refound money 2013-10-02 20:09:42 +03:00
Radu Ioan Fericean
09238f7355 spliting for money/minutes separation 2013-10-02 17:30:10 +03:00
Radu Ioan Fericean
552aa0904f using DestinationContainsPrefix method 2013-09-30 22:07:39 +03:00
Radu Ioan Fericean
6c35f6e340 improved csv loading 2013-09-25 21:52:06 +03:00
Radu Ioan Fericean
17b982bdeb new debit shaping up 2013-09-24 18:50:44 +03:00
Radu Ioan Fericean
cd98141fbb still working on balance subject debit 2013-09-23 19:26:40 +03:00