mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 12:49:54 +05:00
more GetValue for balances
This commit is contained in:
@@ -285,11 +285,11 @@ func (b *Balance) GetValue() float64 {
|
||||
}
|
||||
|
||||
func (b *Balance) AddValue(amount float64) {
|
||||
b.SetValue(b.Value + amount)
|
||||
b.SetValue(b.GetValue() + amount)
|
||||
}
|
||||
|
||||
func (b *Balance) SubstractValue(amount float64) {
|
||||
b.SetValue(b.Value - amount)
|
||||
b.SetValue(b.GetValue() - amount)
|
||||
}
|
||||
|
||||
func (b *Balance) SetValue(amount float64) {
|
||||
|
||||
Reference in New Issue
Block a user