@zeniai/client-epic-state 4.10.54 → 4.10.56
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.
|
@@ -139,7 +139,8 @@ const getYTDSpend = (months, firstMonthOfFY) => {
|
|
|
139
139
|
startYear = -1;
|
|
140
140
|
}
|
|
141
141
|
const startDate = (0, zeniDayJS_1.dateFromYearMonthDate)(startYear, firstMonthOfFY - 1, 1);
|
|
142
|
-
const YTDMonths = months.filter((month) => month.endDate.isAfter(startDate) &&
|
|
142
|
+
const YTDMonths = months.filter((month) => month.endDate.isAfter(startDate) &&
|
|
143
|
+
month.endDate.isSameOrBefore(currentDate));
|
|
143
144
|
return YTDMonths;
|
|
144
145
|
};
|
|
145
146
|
exports.getYTDSpend = getYTDSpend;
|
|
@@ -13,7 +13,7 @@ exports.initialVendorDetailLocalData = {
|
|
|
13
13
|
exports.initialState = {
|
|
14
14
|
vendorStateById: {},
|
|
15
15
|
selectedTabType: 'spend_transactions',
|
|
16
|
-
vendorSpendTrendFilterTabValue: '
|
|
16
|
+
vendorSpendTrendFilterTabValue: 'YTD_spend',
|
|
17
17
|
};
|
|
18
18
|
const vendorsTabVendorView = (0, toolkit_1.createSlice)({
|
|
19
19
|
name: 'vendorsTabVendorView',
|
|
@@ -28,7 +28,7 @@ const vendorsTabVendorView = (0, toolkit_1.createSlice)({
|
|
|
28
28
|
fetchState: 'Not-Started',
|
|
29
29
|
error: undefined,
|
|
30
30
|
} });
|
|
31
|
-
draft.vendorSpendTrendFilterTabValue = '
|
|
31
|
+
draft.vendorSpendTrendFilterTabValue = 'YTD_spend';
|
|
32
32
|
},
|
|
33
33
|
prepare(vendorId, cacheOverride = false) {
|
|
34
34
|
return { payload: { cacheOverride, vendorId } };
|
|
@@ -18,11 +18,11 @@ exports.initialState = {
|
|
|
18
18
|
},
|
|
19
19
|
lastRefreshSuccessTime: undefined,
|
|
20
20
|
uiState: {
|
|
21
|
-
sortKey: '
|
|
21
|
+
sortKey: 'year_to_date_spend',
|
|
22
22
|
sortOrder: 'descending',
|
|
23
23
|
pageToken: null,
|
|
24
24
|
scrollYOffset: 0,
|
|
25
|
-
ytdSpendSelection: '
|
|
25
|
+
ytdSpendSelection: 'year_to_date_spend',
|
|
26
26
|
},
|
|
27
27
|
fetchStateBillsTab: { fetchState: 'Not-Started', error: undefined },
|
|
28
28
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.56",
|
|
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",
|