Also display account & payee
This commit is contained in:
@ -48,3 +48,17 @@ func (tx Transaction) GetPositive() bool {
|
||||
amount := tx.GetAmount()
|
||||
return amount >= 0
|
||||
}
|
||||
|
||||
func (tx GetTransactionsForBudgetRow) GetAmount() float64 {
|
||||
var amount float64
|
||||
err := tx.Amount.AssignTo(&amount)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return amount
|
||||
}
|
||||
|
||||
func (tx GetTransactionsForBudgetRow) GetPositive() bool {
|
||||
amount := tx.GetAmount()
|
||||
return amount >= 0
|
||||
}
|
||||
|
Reference in New Issue
Block a user