From faf3af3d47d267520d398eef5e48f23b9f846236 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Fri, 24 Dec 2021 17:48:36 +0100 Subject: [PATCH] Make the csv import more flexible --- apps/client/src/app/services/import-transactions.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/app/services/import-transactions.service.ts b/apps/client/src/app/services/import-transactions.service.ts index ac1b88f9d..7090a13cc 100644 --- a/apps/client/src/app/services/import-transactions.service.ts +++ b/apps/client/src/app/services/import-transactions.service.ts @@ -15,8 +15,8 @@ export class ImportTransactionsService { private static CURRENCY_KEYS = ['ccy', 'currency']; private static DATE_KEYS = ['date']; private static FEE_KEYS = ['commission', 'fee']; - private static QUANTITY_KEYS = ['qty', 'quantity', 'shares']; - private static SYMBOL_KEYS = ['code', 'symbol']; + private static QUANTITY_KEYS = ['qty', 'quantity', 'shares', 'units']; + private static SYMBOL_KEYS = ['code', 'symbol', 'ticker']; private static TYPE_KEYS = ['action', 'type']; private static UNIT_PRICE_KEYS = ['price', 'unitprice', 'value'];