ionutboangiu
8443af3a89
Relicense from GPLv3 to AGPLv3
2025-10-29 19:42:40 +01:00
armirveliaj
8ab27e69d2
Add new unit tests on engine
2024-10-30 22:14:31 +01:00
armirveliaj
a945fccad6
Add new unit tests on engine
2024-06-30 17:51:59 +02:00
ionutboangiu
9c004b069d
Ignore factors equal to 1 when creating EventCost
2024-04-01 20:48:57 +03:00
ionutboangiu
6db11e87bc
Rename Factor to BalanceFactor inside Accounting
2024-04-01 20:48:57 +03:00
ionutboangiu
50d0103c7b
Move BalanceFactor value from Increments to Accounting
...
Retrieve the Accounting BalanceCharge inside a new variable and reuse
that instead of repeatedly indexing the map. It is always assumed that
the BalanceCharge exists in the map and is non-nil. A comment was
added as a reminder.
TotalCost cannot be calculated anymore from ChargingIncrement alone.
The function is not used, so it will not be causing any issues for
now.
BalanceCharge clone function now handles the case where it is nil
to avoid any possible nil pointer dereference.
2024-04-01 20:48:57 +03:00
ionutboangiu
a7ca167039
Add BalanceFactor value to Increments
...
For both the Increment and ChargingIncrement types.
2024-04-01 20:48:57 +03:00
ionutboangiu
bd4aa99458
Refactor balance's Factor field name with its plural form
...
Stored balances previous to this commit, that had a non-nil Factors map, will
now have Factors nil due to field name mismatch.
2024-04-01 19:58:04 +03:00
ionutboangiu
45066b2d2f
Rename Factor field to Factors in BalanceSummaries
2024-04-01 19:58:04 +03:00
ionutboangiu
6d61fd479d
Add Factor map and Weight to BalanceSummaries
...
Added additional tests + updated old ones.
2024-04-01 19:58:04 +03:00
ionutboangiu
b4ef61d6f2
Update eventcost FieldAsInterface methods
...
Rating map is now accessible from Accounting.
ExtraCharges struct is accessible from Accounting.
RatingUnit fields that did not represent the id of another event cost struct
are now retrievable.
2023-12-13 20:32:27 +01:00
ionutboangiu
7eeab045a3
Trim fldPath Increments before retrieving one of its fields
2023-11-14 18:23:33 +01:00
gezimbll
9df5f2e02e
Added EventCost FieldAsString tests
2023-10-26 15:52:06 +02:00
ionutboangiu
6c16ff320f
Replace interface{} with any
2023-05-31 10:23:12 +02:00
DanB
258492fcf3
Updating EventCost tests using SecureMapStorage
2022-11-30 19:53:05 +01:00
Trial97
243242360f
Updated EventCost Rounding. Fixes #3018
2021-09-23 11:40:49 +02:00
Trial97
6f4e0775ef
Revert "Updated EventCost rounding increment handling.Fixes #3018 "
...
This reverts commit 4fabf8731b .
2021-08-26 16:45:37 +02:00
Trial97
307337b6bc
Updated EventCost rounding increment handling.Fixes #3018
2021-08-26 16:45:37 +02:00
Trial97
faf1fba125
Refactored EventRequest
2021-07-06 20:52:40 +02:00
ionutboangiu
b764714a61
Rename unit tests containing <fail> string
2021-05-05 10:41:57 +02:00
ionutboangiu
4dbfb82084
Cover funcs in engine/chargers.go
2021-04-20 17:15:04 +02:00
ionutboangiu
522e1020ca
Cover funcs in engine/eventcost.go
2021-04-16 21:04:05 +02:00
ionutboangiu
6c67c881b3
Change time.Local to time.UTC and cover funcs in engine
2021-04-16 12:02:15 +02:00
ionutboangiu
933d347390
Cover funcs in engine/eventcost.go
2021-04-16 11:12:42 +02:00
ionutboangiu
e74757e30e
Cover functions in engine/event_cost.go
2021-04-11 13:03:53 +02:00
Trial97
99526ddde2
Added nil check when creating EventCost DataProvider. Fixes #2764
2021-03-23 14:31:26 +01:00
Trial97
9047fab68c
Updated EventCost FieldAsInterface function. Fixes #2743
2021-03-19 18:30:48 +01:00
Trial97
f2c9ca3530
Fixed typo in license header
2021-03-10 16:22:37 +01:00
Trial97
e696d688aa
Cloned the charging interval added on EventCost merge
2021-01-27 15:03:01 +01:00
Trial97
34206fa765
Added extra condition to determine if the increment is considered the roundIncrement
2021-01-13 16:05:04 +01:00
andronache
1d0a814e42
Changed consts in utils
2021-01-11 10:57:44 +01:00
andronache
4ff3b9242d
Consts in utils
2021-01-07 18:15:35 +01:00
andronache
1470267727
Modified consts in utils
2021-01-07 18:15:35 +01:00
TeoV
5775d09c7b
Add infrastructure for AccountS in DataManager
2020-12-21 10:19:59 +01:00
Trial97
fbc2af6845
Updated EventCost FieldAsInterface. Fixes #2375
2020-12-02 17:05:01 +01:00
Trial97
c539800acd
Added more Clone functions for config sections
2020-11-27 08:41:56 +01:00
Trial97
5da4cf6d1c
Updated account action plans integration tests for cache
2020-10-31 20:52:09 +01:00
TeoV
e3c10dc6da
Rename from InitialValue to Initial
2020-10-27 16:46:08 +01:00
TeoV
4707e02091
Add IntialValue in Balances from AccountSummary
2020-10-27 16:46:08 +01:00
Trial97
db582797d3
Added RoundIncrement to EventCost
2020-10-07 18:23:06 +02:00
Trial97
4fe3b8e257
Removed TenantArg
2020-09-04 12:32:09 +02:00
TeoV
58817d6a41
Add support for *monthly_estimated in Timing
2020-07-17 17:17:15 +02:00
Trial97
1a6bfbc1ea
Updated RSRParser constant handling
2020-07-03 17:02:56 +03:00
TeoV
9c9e35857f
Rename from Rate to RGRate
2020-06-11 16:49:21 +02:00
Trial97
f10f570a27
Removed config.NavigableMap
2020-05-18 13:26:06 +02:00
Trial97
6f5417c85a
Updated *exists filter
2020-02-19 15:58:46 +01:00
adragusin
96fa9f7991
Added test for ResourceSv1GetResource
2020-02-18 11:44:12 +01:00
adragusin
f6a54e53c5
Updated tests in engine
2020-02-14 17:00:25 +01:00
adragusin
8bfb35e53a
Updated tests in engine
2020-02-14 10:54:46 +01:00
adragusin
8acc2e4738
Updated tests in engine
2020-02-12 17:58:42 +01:00