@zeniai/client-epic-state 5.1.21-betaRD1 → 5.1.21-betaRD2
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/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.js +1 -1
- package/lib/esm/view/opExByVendor/opExByVendorReducer.js +3 -4
- package/lib/view/expenseAutomationView/epics/fluxAnalysis/fetchFluxAnalysisViewEpic.js +1 -1
- package/lib/view/expenseAutomationView/payload/fluxAnalysisPayload.d.ts +5 -5
- package/lib/view/opExByVendor/opExByVendorReducer.js +3 -4
- package/package.json +1 -1
|
@@ -59,7 +59,7 @@ export const fetchFluxAnalysisViewEpic = (actions$, state$, zeniAPI) => actions$
|
|
|
59
59
|
selectedPeriod: monthAndYear,
|
|
60
60
|
fetchReimbursement,
|
|
61
61
|
keepExistingListItems,
|
|
62
|
-
status: response.
|
|
62
|
+
status: response.status,
|
|
63
63
|
}));
|
|
64
64
|
}
|
|
65
65
|
return from(updateActions);
|
|
@@ -341,10 +341,9 @@ const doUpdateOpexByVendorReportSummary = (draft, reportPayload) => {
|
|
|
341
341
|
const report = mapReportPayloadToReport(reportPayload);
|
|
342
342
|
draft.firstMonthOfFY = report.firstMonthOfFY;
|
|
343
343
|
draft.bookCloseDate = report.bookCloseDate;
|
|
344
|
-
|
|
345
|
-
reportPayload.status.last_refresh_success_time
|
|
346
|
-
|
|
347
|
-
: undefined;
|
|
344
|
+
if (reportPayload.status.last_refresh_success_time != null) {
|
|
345
|
+
draft.lastRefreshSuccessTime = date(reportPayload.status.last_refresh_success_time);
|
|
346
|
+
}
|
|
348
347
|
draft.totalOpexByVendor = combineCOABalanceGrouped(mapCOABalanceGroupedPayloadV2ToCOABalanceGrouped(reportPayload.operating_expenses, reportPayload.currency, 'month'), mapCOABalanceGroupedPayloadV2ToCOABalanceGrouped(reportPayload.operating_expenses, reportPayload.currency, 'quarter'));
|
|
349
348
|
draft.summaryOpexByVendorKey = mapVendorSummaryBalances(reportPayload.operating_expenses, reportPayload.currency);
|
|
350
349
|
}
|
|
@@ -62,7 +62,7 @@ const fetchFluxAnalysisViewEpic = (actions$, state$, zeniAPI) => actions$.pipe((
|
|
|
62
62
|
selectedPeriod: monthAndYear,
|
|
63
63
|
fetchReimbursement,
|
|
64
64
|
keepExistingListItems,
|
|
65
|
-
status: response.
|
|
65
|
+
status: response.status,
|
|
66
66
|
}));
|
|
67
67
|
}
|
|
68
68
|
return (0, rxjs_1.from)(updateActions);
|
|
@@ -59,11 +59,11 @@ export interface FluxAnalysisTotalPayload {
|
|
|
59
59
|
total: MonthBalanceAndVariancePayload;
|
|
60
60
|
}
|
|
61
61
|
export interface FluxAnalysisReportStatusPayload {
|
|
62
|
-
code
|
|
63
|
-
description
|
|
64
|
-
last_refresh_attempt_time
|
|
65
|
-
last_refresh_success_time
|
|
66
|
-
message
|
|
62
|
+
code?: number;
|
|
63
|
+
description?: string;
|
|
64
|
+
last_refresh_attempt_time?: string | null;
|
|
65
|
+
last_refresh_success_time?: string | null;
|
|
66
|
+
message?: string;
|
|
67
67
|
}
|
|
68
68
|
export interface FluxAnalysisReportPayload {
|
|
69
69
|
accounting_class: ClassBasePayload[];
|
|
@@ -345,10 +345,9 @@ const doUpdateOpexByVendorReportSummary = (draft, reportPayload) => {
|
|
|
345
345
|
const report = (0, viewAndReportPayload_1.mapReportPayloadToReport)(reportPayload);
|
|
346
346
|
draft.firstMonthOfFY = report.firstMonthOfFY;
|
|
347
347
|
draft.bookCloseDate = report.bookCloseDate;
|
|
348
|
-
|
|
349
|
-
reportPayload.status.last_refresh_success_time
|
|
350
|
-
|
|
351
|
-
: undefined;
|
|
348
|
+
if (reportPayload.status.last_refresh_success_time != null) {
|
|
349
|
+
draft.lastRefreshSuccessTime = (0, zeniDayJS_1.date)(reportPayload.status.last_refresh_success_time);
|
|
350
|
+
}
|
|
352
351
|
draft.totalOpexByVendor = (0, coaBalancePayload_1.combineCOABalanceGrouped)((0, coaBalancePayload_1.mapCOABalanceGroupedPayloadV2ToCOABalanceGrouped)(reportPayload.operating_expenses, reportPayload.currency, 'month'), (0, coaBalancePayload_1.mapCOABalanceGroupedPayloadV2ToCOABalanceGrouped)(reportPayload.operating_expenses, reportPayload.currency, 'quarter'));
|
|
353
352
|
draft.summaryOpexByVendorKey = mapVendorSummaryBalances(reportPayload.operating_expenses, reportPayload.currency);
|
|
354
353
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.1.21-
|
|
3
|
+
"version": "5.1.21-betaRD2",
|
|
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",
|