1
0
mirror of https://github.com/aclindsa/ofxgo.git synced 2025-06-13 21:48:38 -04:00

Switch Amount to contain big.Rat instead of being a typedef

This commit is contained in:
2017-04-03 21:15:08 -04:00
parent 9b03829645
commit 7f5ef5751d
6 changed files with 80 additions and 90 deletions

View File

@ -4,7 +4,6 @@ import (
"flag"
"fmt"
"github.com/aclindsa/ofxgo"
"math/big"
"os"
)
@ -65,7 +64,7 @@ func invTransactions() {
}
if stmt, ok := response.InvStmt[0].(*ofxgo.InvStatementResponse); ok {
availCash := big.Rat(stmt.InvBal.AvailCash)
availCash := stmt.InvBal.AvailCash
if availCash.IsInt() && availCash.Num().Int64() != 0 {
fmt.Printf("Balance: %s %s (as of %s)\n", stmt.InvBal.AvailCash, stmt.CurDef, stmt.DtAsOf)
}