@zeniai/client-epic-state 5.1.50-betaRD1 → 5.1.50-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/jeSchedule/fetchJeSchedulesEpic.js +3 -3
- package/lib/esm/view/expenseAutomationView/types/jeSchedulesViewState.js +1 -1
- package/lib/view/expenseAutomationView/epics/jeSchedule/fetchJeSchedulesEpic.js +3 -3
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.d.ts +1 -1
- package/lib/view/expenseAutomationView/types/jeSchedulesViewState.js +1 -1
- package/package.json +1 -1
|
@@ -15,15 +15,15 @@ export const fetchJeSchedulesEpic = (actions$, state$, zeniAPI) => actions$.pipe
|
|
|
15
15
|
const selectedPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
|
|
16
16
|
const isClosePeriodTab = state.expenseAutomationJESchedulesViewState.uiState.selectedPageTab ===
|
|
17
17
|
'schedules';
|
|
18
|
-
const
|
|
18
|
+
const existingEndDate = toAbsoluteDay(date(toString(period.start))
|
|
19
19
|
.subtract(1, 'month')
|
|
20
20
|
.endOf('month')
|
|
21
21
|
.format(DEFAULT_DATE_FORMAT));
|
|
22
22
|
const queryParam = {
|
|
23
23
|
start_date: toString(period.start),
|
|
24
|
-
end_date: isClosePeriodTab ||
|
|
24
|
+
end_date: isClosePeriodTab || existingEndDate == null
|
|
25
25
|
? toString(period.end)
|
|
26
|
-
: toString(
|
|
26
|
+
: toString(existingEndDate),
|
|
27
27
|
...(isClosePeriodTab
|
|
28
28
|
? { close_period_start_date: toString(period.start) }
|
|
29
29
|
: {}),
|
|
@@ -16,5 +16,5 @@ const JE_SCHEDULE_SORT_KEYS = [
|
|
|
16
16
|
'memo',
|
|
17
17
|
];
|
|
18
18
|
export const toJEScheduleSortKey = (v) => stringToUnion(v, JE_SCHEDULE_SORT_KEYS);
|
|
19
|
-
const JE_PAGE_TABS = ['schedules', '
|
|
19
|
+
const JE_PAGE_TABS = ['schedules', 'existing_schedules'];
|
|
20
20
|
export const toJEPageTab = (v) => stringToUnion(v, JE_PAGE_TABS);
|
|
@@ -18,15 +18,15 @@ const fetchJeSchedulesEpic = (actions$, state$, zeniAPI) => actions$.pipe((0, op
|
|
|
18
18
|
const selectedPeriod = selectedPeriodByTenantId[currentTenant.tenantId];
|
|
19
19
|
const isClosePeriodTab = state.expenseAutomationJESchedulesViewState.uiState.selectedPageTab ===
|
|
20
20
|
'schedules';
|
|
21
|
-
const
|
|
21
|
+
const existingEndDate = (0, timePeriod_1.toAbsoluteDay)((0, zeniDayJS_1.date)((0, timePeriod_1.toString)(period.start))
|
|
22
22
|
.subtract(1, 'month')
|
|
23
23
|
.endOf('month')
|
|
24
24
|
.format(formatZeniDateFY_1.DEFAULT_DATE_FORMAT));
|
|
25
25
|
const queryParam = {
|
|
26
26
|
start_date: (0, timePeriod_1.toString)(period.start),
|
|
27
|
-
end_date: isClosePeriodTab ||
|
|
27
|
+
end_date: isClosePeriodTab || existingEndDate == null
|
|
28
28
|
? (0, timePeriod_1.toString)(period.end)
|
|
29
|
-
: (0, timePeriod_1.toString)(
|
|
29
|
+
: (0, timePeriod_1.toString)(existingEndDate),
|
|
30
30
|
...(isClosePeriodTab
|
|
31
31
|
? { close_period_start_date: (0, timePeriod_1.toString)(period.start) }
|
|
32
32
|
: {}),
|
|
@@ -8,7 +8,7 @@ import { JEScheduleTransactionKey, ScheduleTypes } from '../../../entity/jeSched
|
|
|
8
8
|
import { VendorBase } from '../../../entity/vendor/vendorState';
|
|
9
9
|
export declare const toJEScheduleSortKey: (v: string) => "vendor" | "type" | "category" | "class" | "memo" | "transactionDate" | "totalAmount" | "runningBalance" | "depCategory" | "scheduleCategory" | "startMonth" | "amortizationPeriod" | "jePostingDate" | "remainingMonths";
|
|
10
10
|
export type JEScheduleSortKey = ReturnType<typeof toJEScheduleSortKey>;
|
|
11
|
-
export declare const toJEPageTab: (v: string) => "schedules" | "
|
|
11
|
+
export declare const toJEPageTab: (v: string) => "schedules" | "existing_schedules";
|
|
12
12
|
export type JEPageTab = ReturnType<typeof toJEPageTab>;
|
|
13
13
|
export interface JESchedulesViewUIState {
|
|
14
14
|
createdGroupCollapsed: boolean;
|
|
@@ -20,6 +20,6 @@ const JE_SCHEDULE_SORT_KEYS = [
|
|
|
20
20
|
];
|
|
21
21
|
const toJEScheduleSortKey = (v) => (0, stringToUnion_1.stringToUnion)(v, JE_SCHEDULE_SORT_KEYS);
|
|
22
22
|
exports.toJEScheduleSortKey = toJEScheduleSortKey;
|
|
23
|
-
const JE_PAGE_TABS = ['schedules', '
|
|
23
|
+
const JE_PAGE_TABS = ['schedules', 'existing_schedules'];
|
|
24
24
|
const toJEPageTab = (v) => (0, stringToUnion_1.stringToUnion)(v, JE_PAGE_TABS);
|
|
25
25
|
exports.toJEPageTab = toJEPageTab;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.1.50-
|
|
3
|
+
"version": "5.1.50-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",
|