Browse Source

v1.1.0

"Convert Dust" tracking
tags/v1.1^0
Jaryl Chng 7 months ago
parent
commit
dab2eca10b
Signed by: jarylc GPG Key ID: A7174FB4C337FA37
2 changed files with 12 additions and 2 deletions
  1. +1
    -1
      package.json
  2. +11
    -1
      src/components/Import.vue

+ 1
- 1
package.json View File

@@ -1,6 +1,6 @@
{
"name": "js-vue-cdc-to-delta",
"version": "1.0.0",
"version": "1.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",


+ 11
- 1
src/components/Import.vue View File

@@ -9,7 +9,7 @@
</template>

<script>
const parse = require('csv-parse');
const parse = require('csv-parse');
import {Strings} from "../resources/strings";
import {Transaction} from "../models/transaction";

@@ -89,6 +89,16 @@ const parse = require('csv-parse');
} else if (type.includes("Reversal")) {
transaction.withdraw(date, quantity, currency);
transaction.notes = type;
} else if (type === "Convert Dust") {
transaction.notes = type;
if (currency !== "MCO" && currency !== "CRO") {
transaction.withdraw(date, quantity, currency);
transaction.notes += " (From)";
} else {
transaction.deposit(date, quantity, currency);
transaction.notes += " (To)";
}

}

if (transaction.type !== "")


Loading…
Cancel
Save