Small fixes for ynab import

This commit is contained in:
2021-12-02 16:22:27 +00:00
parent e9173a3d37
commit 61c55dda3a
5 changed files with 48 additions and 11 deletions

View File

@ -39,3 +39,12 @@ func Connect(server string, user string, password string, database string) (*Que
return New(connPG), nil
}
func (tx Transaction) GetAmount() float64 {
var amount float64
err := tx.Amount.AssignTo(&amount)
if err != nil {
panic(err)
}
return amount
}