Browse Source

Refactoring

pull/547/head
Thomas 4 years ago
parent
commit
60a9716a64
  1. 11
      apps/client/src/app/services/import-transactions.service.ts

11
apps/client/src/app/services/import-transactions.service.ts

@ -214,12 +214,15 @@ export class ImportTransactionsService {
for (const key of ImportTransactionsService.TYPE_KEYS) { for (const key of ImportTransactionsService.TYPE_KEYS) {
if (item[key]) { if (item[key]) {
if (item[key].toLowerCase() === 'buy') { switch (item[key].toLowerCase()) {
case 'buy':
return Type.BUY; return Type.BUY;
} else if (item[key].toLowerCase() === 'sell') { case 'dividend':
return Type.SELL;
} else if (item[key].toLowerCase() === 'dividend') {
return Type.DIVIDEND; return Type.DIVIDEND;
case 'sell':
return Type.SELL;
default:
break;
} }
} }
} }

Loading…
Cancel
Save