Commit Graph

96 Commits

Author SHA1 Message Date
ionutboangiu
8443af3a89 Relicense from GPLv3 to AGPLv3 2025-10-29 19:42:40 +01: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
58c1d639f3 Update handling of ees event after processing attributes 2024-03-11 16:41:09 +01:00
ionutboangiu
41b9b719d5 Ensure AccountSummary is of *AccountSummary type when parsing ddp 2024-03-07 17:20:23 +01: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
5a85c119c8 Replacing IsSliceMember ,CloneStringSlice and SliceStringEqual with slices package equivalent functions 2023-11-01 21:52:50 +01:00
ionutboangiu
62b27b569f Make EventCost type vars satisfy the DataStorage interface 2023-10-26 15:55:54 +02:00
ionutboangiu
6c16ff320f Replace interface{} with any 2023-05-31 10:23:12 +02:00
DanB
751bcc7b2f SecureMapStorage as cache for EventCost 2022-11-30 19:41:38 +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
610bc998e7 Fix typo in engine/eventcost.go 2021-04-16 12:02:15 +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
6bd9039c04 Updated integration tests for sessions with pause 2021-02-15 20:26:30 +01:00
Trial97
d2e04360bd Added *sessionChargeable session option. Fixes #1702 2021-02-15 20:26:30 +01:00
porosnicuadrian
93c35dd105 Cover tests in sessions 2021-02-04 19:35:02 +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
andronache
88a87ffeb8 Modified consts in utils 2021-01-05 17:42:44 +01:00
TeoV
5775d09c7b Add infrastructure for AccountS in DataManager 2020-12-21 10:19:59 +01:00
Trial97
63345c3c85 Updated integration tests 2020-12-11 16:08:43 +01:00
Trial97
fbc2af6845 Updated EventCost FieldAsInterface. Fixes #2375 2020-12-02 17:05:01 +01:00
Trial97
db582797d3 Added RoundIncrement to EventCost 2020-10-07 18:23:06 +02:00
TeoV
58817d6a41 Add support for *monthly_estimated in Timing 2020-07-17 17:17:15 +02:00
Trial97
f10f570a27 Removed config.NavigableMap 2020-05-18 13:26:06 +02:00
Trial97
13e813f848 Fixed agents unit tests 2020-05-07 11:17:41 +02:00
adragusin
8acc2e4738 Updated tests in engine 2020-02-12 17:58:42 +01:00
adragusin
fd1c0c2223 Added unit tests in utils/engine 2020-02-11 18:32:41 +01:00
Trial97
ffef415e8c Added cache for EventCost.FieldAsInterface 2020-02-05 18:05:53 +01:00
Trial97
1ee5fa0720 Added EventCost to DataProvider for filters.Fixes #1910 2020-02-05 16:00:32 +01:00
Trial97
ff5f5f2d21 Added FieldAsInterface for EventCost 2020-02-05 16:00:32 +01:00
Trial97
d8333b5b68 Started adding FieldAsInterface for EventCost 2020-02-05 16:00:32 +01:00
Trial97
f18525a1db Updated path for cdre 2020-01-30 10:21:48 +01:00
DanB
a4d11fe776 SessionS.refundSession to add TOR for proper refunds 2020-01-06 19:31:02 +01:00
Trial97
b1fdfea009 Updated config_default 2019-12-12 08:29:05 +02:00
adragusin
e85825bf28 Updated Clone functions 2019-12-10 17:53:17 +02:00
DanB
360a9cc00b SessionS - processEvent function with sync actions 2019-11-22 19:54:16 +01:00
DanB
8aeeda4885 EventCost AsRefundIncrements properly handling extra charges 2019-11-22 19:54:16 +01:00
DanB
4bf4560ef1 EventCost AsRefundIncrements method 2019-11-22 19:54:16 +01:00