Add Factor map and Weight to BalanceSummaries

Added additional tests + updated old ones.
This commit is contained in:
ionutboangiu
2024-03-22 14:38:40 -04:00
committed by Dan Christian Bogos
parent 699989a336
commit 6d61fd479d
5 changed files with 88 additions and 4 deletions

View File

@@ -1261,7 +1261,9 @@ func resetAccountCDR(ub *Account, action *Action, acts Actions, fltrS *FilterS,
ID: &bsum.ID,
Type: &bsum.Type,
Value: &utils.ValueFormula{Static: bsum.Value},
Weight: &bsum.Weight,
Disabled: &bsum.Disabled,
Factor: &bsum.Factor,
},
}, fltrS); err != nil {
utils.Logger.Warning(fmt.Sprintf("<%s> Error %s setting balance %s for account: %s", utils.Actions, err, bsum.UUID, account))