Small fixes for ynab import
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user