@ashray.mehta/statement-converter 1.1.3 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/adapters/ABNAdapter.js
CHANGED
|
@@ -34,12 +34,13 @@ class ABNAdapter extends TransactionAdapter_1.TransactionAdapter {
|
|
|
34
34
|
const amount = XLSXUtil_1.XLSXUtil.getNumberInCell(sheet, row, addressForAmount.c);
|
|
35
35
|
const outflow = amount < 0 ? Math.abs(amount) : 0;
|
|
36
36
|
const inflow = amount >= 0 ? amount : 0;
|
|
37
|
+
const memo = XLSXUtil_1.XLSXUtil.getCellValue(sheet, row, addressForDescription.c);
|
|
37
38
|
return {
|
|
38
|
-
Payee:
|
|
39
|
+
Payee: memo,
|
|
39
40
|
Outflow: outflow,
|
|
40
41
|
Inflow: inflow,
|
|
41
42
|
Date: date,
|
|
42
|
-
Memo:
|
|
43
|
+
Memo: memo,
|
|
43
44
|
Category: null
|
|
44
45
|
};
|
|
45
46
|
}).filter(row => !!row);
|
package/adapters/AxisAdapter.js
CHANGED
|
@@ -32,12 +32,13 @@ class AxisAdapter extends TransactionAdapter_1.TransactionAdapter {
|
|
|
32
32
|
if (!parsedDate.isValid())
|
|
33
33
|
return undefined;
|
|
34
34
|
const date = parsedDate.toDate();
|
|
35
|
+
const payee = XLSXUtil_1.XLSXUtil.getCellValue(sheet, row, addressForDetails.c);
|
|
35
36
|
return {
|
|
36
|
-
Payee:
|
|
37
|
+
Payee: payee,
|
|
37
38
|
Outflow: XLSXUtil_1.XLSXUtil.getNumberInCell(sheet, row, addressForWithdrawalAmount.c),
|
|
38
39
|
Inflow: XLSXUtil_1.XLSXUtil.getNumberInCell(sheet, row, addressForDepositAmount.c),
|
|
39
40
|
Date: date,
|
|
40
|
-
Memo:
|
|
41
|
+
Memo: payee,
|
|
41
42
|
Category: null
|
|
42
43
|
};
|
|
43
44
|
}).filter(row => !!row);
|
package/adapters/ICICIAdapter.js
CHANGED
|
@@ -30,12 +30,13 @@ class ICICIAdapter extends TransactionAdapter_1.TransactionAdapter {
|
|
|
30
30
|
const isOutflow = this.isOutflow(sheet, row, addressForCreditOrDebit.c);
|
|
31
31
|
const amount = XLSXUtil_1.XLSXUtil.getNumberInCell(sheet, row, addressForAmount.c);
|
|
32
32
|
const date = moment(XLSXUtil_1.XLSXUtil.getCellValue(sheet, row, addressForTransactionDate.c), 'DD/MM/YYYY').toDate();
|
|
33
|
+
const payee = XLSXUtil_1.XLSXUtil.getCellValue(sheet, row, addressForDetails.c);
|
|
33
34
|
return {
|
|
34
|
-
Payee:
|
|
35
|
+
Payee: payee,
|
|
35
36
|
Outflow: isOutflow ? amount : 0,
|
|
36
37
|
Inflow: !isOutflow ? amount : 0,
|
|
37
38
|
Date: date,
|
|
38
|
-
Memo:
|
|
39
|
+
Memo: payee,
|
|
39
40
|
Category: null
|
|
40
41
|
};
|
|
41
42
|
});
|
package/adapters/N26Adapter.js
CHANGED
|
@@ -22,7 +22,7 @@ class N26Adapter extends TransactionAdapter_1.TransactionAdapter {
|
|
|
22
22
|
const addressForDescription = XLSXUtil_1.XLSXUtil.findText(sheet, "Payment reference");
|
|
23
23
|
const addressForAmount = XLSXUtil_1.XLSXUtil.findText(sheet, "Amount (EUR)");
|
|
24
24
|
const addressForPayee = XLSXUtil_1.XLSXUtil.findText(sheet, "Payee");
|
|
25
|
-
const addressForCategory = XLSXUtil_1.XLSXUtil.findText(sheet, "
|
|
25
|
+
const addressForCategory = XLSXUtil_1.XLSXUtil.findText(sheet, "Transaction type");
|
|
26
26
|
const startingRow = addressForTransactionDate.r + 1;
|
|
27
27
|
const range = XLSX.utils.decode_range(sheet['!ref']);
|
|
28
28
|
const rangeEnd = range.e;
|
|
@@ -31,12 +31,13 @@ class StandardCharteredAdapter extends TransactionAdapter_1.TransactionAdapter {
|
|
|
31
31
|
const date = moment(XLSXUtil_1.XLSXUtil.getCellValue(sheet, row, addressForTransactionDate.c), 'DD/MM/YYYY').toDate();
|
|
32
32
|
const outflow = XLSXUtil_1.XLSXUtil.getNumberInCell(sheet, row, addressForWithdrawalAmount.c);
|
|
33
33
|
const inflow = XLSXUtil_1.XLSXUtil.getNumberInCell(sheet, row, addressForDepositAmount.c);
|
|
34
|
+
const payee = XLSXUtil_1.XLSXUtil.getCellValue(sheet, row, addressForDetails.c);
|
|
34
35
|
return {
|
|
35
|
-
Payee:
|
|
36
|
+
Payee: payee,
|
|
36
37
|
Outflow: outflow,
|
|
37
38
|
Inflow: inflow,
|
|
38
39
|
Date: date,
|
|
39
|
-
Memo:
|
|
40
|
+
Memo: payee,
|
|
40
41
|
Category: null
|
|
41
42
|
};
|
|
42
43
|
}).filter(datum => moment(datum.Date).isValid());
|