@zeniai/client-epic-state 4.15.78 → 4.15.80
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/lib/entity/accountRecon/accountReconPayload.js +1 -3
- package/lib/view/expenseAutomationView/epics/accountRecon/fetchReconciliationViewEpic.js +6 -6
- package/lib/view/expenseAutomationView/epics/accountRecon/initialiseLocalDataForSelectedAccountIdEpic.js +6 -6
- package/lib/view/expenseAutomationView/epics/accountRecon/saveReconciliationReviewEpic.js +2 -1
- package/package.json +1 -1
|
@@ -96,9 +96,7 @@ const toAccountReconciliationData = (payload) => {
|
|
|
96
96
|
accountUpdatedAt: payload.payment_account_updated_at != null
|
|
97
97
|
? (0, zeniDayJS_1.date)(payload.payment_account_updated_at)
|
|
98
98
|
: undefined,
|
|
99
|
-
reconUpdatedAt: payload.update_time != null
|
|
100
|
-
? (0, zeniDayJS_1.date)(payload.update_time)
|
|
101
|
-
: undefined,
|
|
99
|
+
reconUpdatedAt: payload.update_time != null ? (0, zeniDayJS_1.date)(payload.update_time) : undefined,
|
|
102
100
|
};
|
|
103
101
|
};
|
|
104
102
|
exports.toAccountReconciliationData = toAccountReconciliationData;
|
|
@@ -101,13 +101,13 @@ const fetchReconciliationViewEpic = (actions$, state$, zeniAPI) => actions$.pipe
|
|
|
101
101
|
exports.fetchReconciliationViewEpic = fetchReconciliationViewEpic;
|
|
102
102
|
const prepareReviewTabLocalData = (transactionsToReview) => {
|
|
103
103
|
return transactionsToReview.reduce((prev, currentTransaction) => {
|
|
104
|
-
var _a, _b, _c, _d, _e, _f;
|
|
104
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
105
105
|
const localData = {
|
|
106
|
-
memo: currentTransaction.transaction_memo,
|
|
107
|
-
categoryId: (
|
|
108
|
-
classId: (
|
|
109
|
-
vendor: ((
|
|
110
|
-
((
|
|
106
|
+
memo: (_b = (_a = currentTransaction.recommended_action.recommended_transactions[0]) === null || _a === void 0 ? void 0 : _a.transaction_memo) !== null && _b !== void 0 ? _b : '',
|
|
107
|
+
categoryId: (_d = (_c = currentTransaction.recommended_action.recommended_transactions[0]) === null || _c === void 0 ? void 0 : _c.account_id) !== null && _d !== void 0 ? _d : undefined,
|
|
108
|
+
classId: (_f = (_e = currentTransaction.recommended_action.recommended_transactions[0]) === null || _e === void 0 ? void 0 : _e.class_id) !== null && _f !== void 0 ? _f : undefined,
|
|
109
|
+
vendor: ((_g = currentTransaction.recommended_action.recommended_transactions[0]) === null || _g === void 0 ? void 0 : _g.merchant_id) != null &&
|
|
110
|
+
((_h = currentTransaction.recommended_action.recommended_transactions[0]) === null || _h === void 0 ? void 0 : _h.merchant_name) != null
|
|
111
111
|
? {
|
|
112
112
|
id: currentTransaction.recommended_action
|
|
113
113
|
.recommended_transactions[0].merchant_id,
|
|
@@ -28,13 +28,13 @@ const initialiseDataForSelectedAccountIdEpic = (actions$, state$) => actions$.pi
|
|
|
28
28
|
exports.initialiseDataForSelectedAccountIdEpic = initialiseDataForSelectedAccountIdEpic;
|
|
29
29
|
const prepareReviewTabLocalData = (transactionsToReview) => {
|
|
30
30
|
return transactionsToReview.reduce((prev, currentTransaction) => {
|
|
31
|
-
var _a, _b, _c, _d, _e, _f;
|
|
31
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
32
32
|
const localData = {
|
|
33
|
-
memo: currentTransaction.memo,
|
|
34
|
-
categoryId: (
|
|
35
|
-
classId: (
|
|
36
|
-
vendor: ((
|
|
37
|
-
((
|
|
33
|
+
memo: (_b = (_a = currentTransaction.recommendedAction.recommendedTransactions[0]) === null || _a === void 0 ? void 0 : _a.memo) !== null && _b !== void 0 ? _b : '',
|
|
34
|
+
categoryId: (_d = (_c = currentTransaction.recommendedAction.recommendedTransactions[0]) === null || _c === void 0 ? void 0 : _c.accountId) !== null && _d !== void 0 ? _d : undefined,
|
|
35
|
+
classId: (_f = (_e = currentTransaction.recommendedAction.recommendedTransactions[0]) === null || _e === void 0 ? void 0 : _e.classId) !== null && _f !== void 0 ? _f : undefined,
|
|
36
|
+
vendor: ((_g = currentTransaction.recommendedAction.recommendedTransactions[0]) === null || _g === void 0 ? void 0 : _g.merchantId) != null &&
|
|
37
|
+
((_h = currentTransaction.recommendedAction.recommendedTransactions[0]) === null || _h === void 0 ? void 0 : _h.merchantName) != null
|
|
38
38
|
? {
|
|
39
39
|
id: currentTransaction.recommendedAction
|
|
40
40
|
.recommendedTransactions[0].merchantId,
|
|
@@ -131,7 +131,8 @@ function getPayloadForExpenseRecord(updatedTransaction, localData) {
|
|
|
131
131
|
var _a, _b;
|
|
132
132
|
return {
|
|
133
133
|
amount: updatedTransaction.amount.amount,
|
|
134
|
-
transaction_memo:
|
|
134
|
+
transaction_memo: updatedTransaction.memo,
|
|
135
|
+
line_description: localData.memo,
|
|
135
136
|
transaction_date: updatedTransaction.transactionDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT),
|
|
136
137
|
transaction_direction: updatedTransaction.transactionDirection,
|
|
137
138
|
transaction_id: updatedTransaction.transactionId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.80",
|
|
4
4
|
"description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|