Also display account & payee

This commit is contained in:
2021-12-02 20:56:49 +00:00
parent a4659c7133
commit 276fdb4ade
5 changed files with 45 additions and 10 deletions

View File

@ -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
}