@zeniai/client-epic-state 4.19.76 → 4.19.77-betaAK1
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/esm/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +2 -4
- package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +1 -2
- package/lib/esm/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +2 -3
- package/lib/esm/view/transactionDetail/epics/transactionDetailEpic.js +12 -0
- package/lib/tsconfig.typecheck.tsbuildinfo +1 -1
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/billPaySetupApproverViewReducer.js +2 -4
- package/lib/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js +1 -2
- package/lib/view/spendManagement/reimbursement/remiSetupApproverView/remiSetupApproverViewReducer.js +2 -3
- package/lib/view/transactionDetail/epics/transactionDetailEpic.js +12 -0
- package/package.json +1 -1
|
@@ -157,10 +157,8 @@ const billPaySetupApproverView = createSlice({
|
|
|
157
157
|
reducer(draft, action) {
|
|
158
158
|
const { approvalRuleIds, affectedEntityIds, newApprovalRuleId } = action.payload;
|
|
159
159
|
if (draft.billPaySetupApproverViewUpdateData != null) {
|
|
160
|
-
if (draft.billPaySetupApproverViewUpdateData.
|
|
161
|
-
|
|
162
|
-
draft.billPaySetupApproverViewUpdateData.data
|
|
163
|
-
?.isApplicableOnPendingApprovalEntity === true) {
|
|
160
|
+
if (draft.billPaySetupApproverViewUpdateData.data
|
|
161
|
+
?.isApplicableOnPendingApprovalEntity === true) {
|
|
164
162
|
draft.listeningToPusherEvent = true;
|
|
165
163
|
}
|
|
166
164
|
draft.billPaySetupApproverViewUpdateData.updateStatus = {
|
package/lib/esm/view/spendManagement/billPay/billPaySetupApproverView/types/commonPayload.js
CHANGED
|
@@ -37,11 +37,10 @@ export const toApprovalChangableInfoPayload = (approverViewUpdateData) => {
|
|
|
37
37
|
const payload = {
|
|
38
38
|
criteria: criteriaPayload,
|
|
39
39
|
steps,
|
|
40
|
+
is_applicable_on_pending_approval_entity: approverViewUpdateData.isApplicableOnPendingApprovalEntity ?? true,
|
|
40
41
|
};
|
|
41
42
|
if (isUpdate) {
|
|
42
43
|
payload.approval_rule_id = approverViewUpdateData.approvalRuleId;
|
|
43
|
-
payload.is_applicable_on_pending_approval_entity =
|
|
44
|
-
approverViewUpdateData.isApplicableOnPendingApprovalEntity ?? false;
|
|
45
44
|
}
|
|
46
45
|
return payload;
|
|
47
46
|
};
|
|
@@ -179,9 +179,8 @@ const remiSetupApproverView = createSlice({
|
|
|
179
179
|
reducer(draft, action) {
|
|
180
180
|
const { approvalRuleIds, affectedEntityIds, newApprovalRuleId } = action.payload;
|
|
181
181
|
if (draft.remiSetupApproverViewUpdateData != null) {
|
|
182
|
-
if (draft.remiSetupApproverViewUpdateData.
|
|
183
|
-
|
|
184
|
-
?.isApplicableOnPendingApprovalEntity === true) {
|
|
182
|
+
if (draft.remiSetupApproverViewUpdateData.data
|
|
183
|
+
?.isApplicableOnPendingApprovalEntity === true) {
|
|
185
184
|
draft.listeningToPusherEvent = true;
|
|
186
185
|
}
|
|
187
186
|
draft.remiSetupApproverViewUpdateData.updateStatus = {
|
|
@@ -40,6 +40,18 @@ export const fetchTransactionDetailEpic = (actions$, state$, zeniAPI) => actions
|
|
|
40
40
|
transactionActions.push(fetchClassList());
|
|
41
41
|
}
|
|
42
42
|
transactionActions.push(updateTransactionDetailFetchState(transactionId, 'In-Progress'));
|
|
43
|
+
// If the transaction already exists in the entity store (e.g. fetched by the
|
|
44
|
+
// list page), initialize local data immediately so the UI can render whatever
|
|
45
|
+
// data is available while the full detail fetch completes in parallel.
|
|
46
|
+
if (cacheOverride !== true) {
|
|
47
|
+
const existingTransaction = getSupportedTransactionById(state$.value.transactionState, detailKey);
|
|
48
|
+
if (existingTransaction != null) {
|
|
49
|
+
transactionActions.push(initializeTransactionDetailLocalData({
|
|
50
|
+
transactionId,
|
|
51
|
+
vendorId: existingTransaction.vendorId,
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
43
55
|
const query = { transaction_type: transactionId.type };
|
|
44
56
|
const getTransactionDetail$ = zeniAPI
|
|
45
57
|
.getJSON(`${zeniAPI.apiEndPoints.accountMicroServiceBaseUrl}/1.0/transactions/${transactionId.id}?query=${encodeURIComponent(JSON.stringify(query))}`)
|