Skip to content

Commit

Permalink
Fix cointracking Depoit & Withdraw csv file. #64
Browse files Browse the repository at this point in the history
  • Loading branch information
DeltaBalances committed Jan 22, 2019
1 parent 33c6a49 commit 970da6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions history.js
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ var isAddressPage = true;
else if (exportFormat == 2) {
// Cointracking.info Funds export
filePrefix = 'Cointracking_';
const headers = ['Type', 'Buy', 'Cur.', 'Sell', 'Cur.', 'Fee', 'Cur.', 'Exchange', 'Group', 'Comment', 'Trade ID', 'Date'];
const headers = ['Type', 'Buy', 'Cur.', 'Sell', 'Cur.', 'Fee', 'Cur.', 'Exchange', 'Group', 'Comment', 'Date', 'Trade ID'];
tableData = [headers];
for (var i = 0; i < allFunds.length; ++i) {
var row = [];
Expand All @@ -1831,14 +1831,14 @@ var isAddressPage = true;
row = [
'Deposit', allFunds[i]['Amount'], allFunds[i]['Token'].name, "", "", "", "",
exchange, '', 'Hash: ' + allFunds[i]['Hash'] + " -- " + allFunds[i]['Token'].name + " token contract " + allFunds[i]['Token'].addr,
allFunds[i]['Hash'], _util.formatDateOffset(allFunds[i]['Date'])
_util.formatDateOffset(allFunds[i]['Date']), allFunds[i]['Hash']
];
}
else { //withdraw is 'sell'
row = [
'Withdrawal', "", "", allFunds[i]['Amount'], allFunds[i]['Token'].name, "", "",
exchange, '', 'Hash: ' + allFunds[i]['Hash'] + " -- " + allFunds[i]['Token'].name + " token contract " + allFunds[i]['Token'].addr,
allFunds[i]['Hash'], _util.formatDateOffset(allFunds[i]['Date'])
_util.formatDateOffset(allFunds[i]['Date']), allFunds[i]['Hash']
];
}

Expand Down

0 comments on commit 970da6e

Please sign in to comment.