more GetValue for balances

This commit is contained in:
Radu Ioan Fericean
2015-07-28 14:21:41 +03:00
parent 23593d585c
commit 03f43dee37

View File

@@ -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) {