@zeniai/client-epic-state 4.19.95-betaJK1 → 4.19.95
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.
|
@@ -7,7 +7,6 @@ const formatZeniDateFY_1 = require("../../../../commonStateTypes/fiscalYearHelpe
|
|
|
7
7
|
const accountReconReducer_1 = require("../../../../entity/accountRecon/accountReconReducer");
|
|
8
8
|
const accountReconSelector_1 = require("../../../../entity/accountRecon/accountReconSelector");
|
|
9
9
|
const accountReconState_1 = require("../../../../entity/accountRecon/accountReconState");
|
|
10
|
-
const entitySelector_1 = require("../../../../entity/genericEntity/entitySelector");
|
|
11
10
|
const snackbarReducer_1 = require("../../../../entity/snackbar/snackbarReducer");
|
|
12
11
|
const tenantSelector_1 = require("../../../../entity/tenant/tenantSelector");
|
|
13
12
|
const transactionReducer_1 = require("../../../../entity/transaction/transactionReducer");
|
|
@@ -16,7 +15,6 @@ const responsePayload_1 = require("../../../../responsePayload");
|
|
|
16
15
|
const reconciliationViewReducer_1 = require("../../reducers/reconciliationViewReducer");
|
|
17
16
|
const saveReconciliationReviewEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, operators_1.filter)(reconciliationViewReducer_1.saveReconciliationReview.match), (0, operators_1.mergeMap)((action) => {
|
|
18
17
|
const state = state$.value;
|
|
19
|
-
const entityState = state.entityState;
|
|
20
18
|
const { transactionId } = action.payload;
|
|
21
19
|
const localData = state.expenseAutomationReconciliationViewState.reconTabsState.review
|
|
22
20
|
.localData[transactionId];
|
|
@@ -64,7 +62,7 @@ const saveReconciliationReviewEpic = (actions$, state$, zeniAPI) => actions$.pip
|
|
|
64
62
|
payload = getPayloadForCCPayment(updatedTransaction, localData, reconciliationData?.account.accountType);
|
|
65
63
|
break;
|
|
66
64
|
case 'record_deposit':
|
|
67
|
-
payload = getPayloadForDeposit(updatedTransaction, localData
|
|
65
|
+
payload = getPayloadForDeposit(updatedTransaction, localData);
|
|
68
66
|
break;
|
|
69
67
|
}
|
|
70
68
|
}
|
|
@@ -165,10 +163,7 @@ function getPayloadForExpenseRecord(updatedTransaction, localData) {
|
|
|
165
163
|
currency_code: updatedTransaction.amount.currencyCode,
|
|
166
164
|
};
|
|
167
165
|
}
|
|
168
|
-
function getPayloadForDeposit(updatedTransaction, localData
|
|
169
|
-
const customerZeniId = localData.customer?.id != null
|
|
170
|
-
? (0, entitySelector_1.getEntityByEntityIDs)(entityState, [localData.customer?.id])[0]?.zeniId
|
|
171
|
-
: undefined;
|
|
166
|
+
function getPayloadForDeposit(updatedTransaction, localData) {
|
|
172
167
|
return {
|
|
173
168
|
amount: updatedTransaction.amount.amount,
|
|
174
169
|
transaction_memo: updatedTransaction.memo,
|
|
@@ -176,7 +171,7 @@ function getPayloadForDeposit(updatedTransaction, localData, entityState) {
|
|
|
176
171
|
transaction_date: updatedTransaction.transactionDate.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT),
|
|
177
172
|
transaction_direction: updatedTransaction.transactionDirection,
|
|
178
173
|
transaction_id: updatedTransaction.transactionId,
|
|
179
|
-
customer_id:
|
|
174
|
+
customer_id: localData.customer?.id,
|
|
180
175
|
customer_name: localData.customer?.name,
|
|
181
176
|
account_id: localData.categoryId,
|
|
182
177
|
accounting_class_id: localData.classId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.19.95
|
|
3
|
+
"version": "4.19.95",
|
|
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
|
"module": "lib/esm/index.js",
|