@zeniai/client-epic-state 4.19.8-betaJK2 → 4.19.8-betaJK4
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.
|
@@ -59,15 +59,13 @@ exports.defaultMonthYearPeriod = {
|
|
|
59
59
|
const getDefaultSelectedPeriodsForTenants = (tenantsData) => {
|
|
60
60
|
const defaultSelectedPeriodsForTenants = tenantsData.tenants.reduce((prev, currentTenant) => {
|
|
61
61
|
// if book close date is of current month then show current month, else show book close date month + 1
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
const book_close_date = '2026-01-12';
|
|
63
|
+
const currentMonthYearPeriod = book_close_date != null &&
|
|
64
|
+
((0, zeniDayJS_1.dateNow)().month() !== (0, zeniDayJS_1.date)(book_close_date).month() ||
|
|
65
|
+
(0, zeniDayJS_1.dateNow)().year() !== (0, zeniDayJS_1.date)(book_close_date).year())
|
|
65
66
|
? {
|
|
66
|
-
month: (0, timePeriod_1.toMonth)((0, zeniDayJS_1.date)(
|
|
67
|
-
|
|
68
|
-
.add(1, 'month')
|
|
69
|
-
.month()),
|
|
70
|
-
year: (0, zeniDayJS_1.date)(currentTenant.book_close_date)
|
|
67
|
+
month: (0, timePeriod_1.toMonth)((0, zeniDayJS_1.date)(book_close_date).startOf('month').add(1, 'month').month()),
|
|
68
|
+
year: (0, zeniDayJS_1.date)(book_close_date)
|
|
71
69
|
.startOf('month')
|
|
72
70
|
.add(1, 'month')
|
|
73
71
|
.year(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.19.8-
|
|
3
|
+
"version": "4.19.8-betaJK4",
|
|
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",
|