Browse Source

v1.1.3.3

- Added 'Transaction Kind' to header
tags/v1.1.3.3^0
Jaryl Chng 4 months ago
parent
commit
20ea5c2ef8
Signed by: jarylc GPG Key ID: A7174FB4C337FA37
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/components/Import.vue

+ 5
- 5
src/components/Import.vue View File

@@ -57,7 +57,7 @@
return;
}

if (JSON.stringify(output[0]) === '["Timestamp (UTC)","Transaction Description","Currency","Amount","To Currency","To Amount","Native Currency","Native Amount","Native Amount (in USD)"]') {
if (JSON.stringify(output[0]) === '["Timestamp (UTC)","Transaction Description","Currency","Amount","To Currency","To Amount","Native Currency","Native Amount","Native Amount (in USD)","Transaction Kind"]') {
let data = [];

let sum = 0.0;
@@ -81,10 +81,10 @@
// dust transactions
if (type === "Convert Dust") {
if (currency !== "MCO" && currency !== "CRO") {
quantityNative = Transaction.nonZero(parseFloat(quantityNative))
sum += quantityNative
temp[currency] = {}
temp[currency].native = quantityNative
quantityNative = Transaction.nonZero(parseFloat(quantityNative));
sum += quantityNative;
temp[currency] = {};
temp[currency].native = quantityNative;
temp[currency].amount = parseFloat(quantity)
} else {
Object.keys(temp).forEach(function (dust) {


Loading…
Cancel
Save