1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-02 20:28:38 -04:00

testing: Add another brokerage account OFX import test

This commit is contained in:
2017-12-01 21:21:55 -05:00
parent 05fdaaeb42
commit ffc8602336
3 changed files with 96 additions and 4 deletions

View File

@ -705,10 +705,10 @@ func (i *OFXImport) GetInvSellTran(sell *ofxgo.InvSell, curdef *Security, accoun
load.Neg(&load)
tradingTotal.Neg(&total)
tradingTotal.Sub(&tradingTotal, &commission)
tradingTotal.Sub(&tradingTotal, &taxes)
tradingTotal.Sub(&tradingTotal, &fees)
tradingTotal.Sub(&tradingTotal, &load)
tradingTotal.Add(&tradingTotal, &commission)
tradingTotal.Add(&tradingTotal, &taxes)
tradingTotal.Add(&tradingTotal, &fees)
tradingTotal.Add(&tradingTotal, &load)
// Convert amounts to account's currency if Currency is set
if ok, _ := sell.Currency.Valid(); ok {