@zeniai/client-epic-state 4.14.40 → 4.14.42
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.
|
@@ -96,8 +96,8 @@ const getJECreditAccountId = ({ isMarkAsComplete, jeScheduleTransactionState, })
|
|
|
96
96
|
return (_b = (_a = jeCredit.account) === null || _a === void 0 ? void 0 : _a.accountId) !== null && _b !== void 0 ? _b : baseTransaction.account.accountId;
|
|
97
97
|
};
|
|
98
98
|
const mapJEScheduleTransactionToPayload = (jeScheduleTransactionState, vendorState, scheduleDetailsLocalData, jeScheduleType, isDelete, isMarkAsComplete, isUpdatingVendorCategoryOrClass) => {
|
|
99
|
-
var _a, _b
|
|
100
|
-
const { vendor, currencyCode, currencySymbol, baseTransaction, status,
|
|
99
|
+
var _a, _b;
|
|
100
|
+
const { vendor, currencyCode, currencySymbol, baseTransaction, status, balanceAsOfToday, jeScheduleId, } = jeScheduleTransactionState;
|
|
101
101
|
const { selectedMonths, selectedAccount, selectedClass, selectedDayOfMonth, lastDayOfMonth, selectedVendor, } = scheduleDetailsLocalData;
|
|
102
102
|
let updatedStatus = Object.assign({}, status);
|
|
103
103
|
// if the current status is marked as completed, we need to send the status as new when creating a new schedule.
|
|
@@ -133,7 +133,7 @@ const mapJEScheduleTransactionToPayload = (jeScheduleTransactionState, vendorSta
|
|
|
133
133
|
isMarkAsComplete,
|
|
134
134
|
balanceAsOfToday,
|
|
135
135
|
baseTransaction,
|
|
136
|
-
}), start_date:
|
|
136
|
+
}), start_date: firstJEScheduleDate, end_date: lastJEScheduleDate, je_credit_accounting_class_id: getJECreditAccountingClassId({
|
|
137
137
|
isMarkAsComplete,
|
|
138
138
|
jeScheduleTransactionState,
|
|
139
139
|
}), je_credit_account_id: getJECreditAccountId({
|
|
@@ -146,8 +146,8 @@ const mapJEScheduleTransactionToPayload = (jeScheduleTransactionState, vendorSta
|
|
|
146
146
|
? Object.assign(Object.assign({}, payload), { is_deleted: true }) : payload;
|
|
147
147
|
};
|
|
148
148
|
const mapFixedAssetJEScheduleTransactionToPayload = (jeScheduleTransactionState, vendorState, scheduleDetailsLocalData, isDelete, isMarkAsComplete, isUpdatingVendorCategoryOrClass) => {
|
|
149
|
-
var _a, _b
|
|
150
|
-
const { vendor, currencyCode, currencySymbol, baseTransaction, status,
|
|
149
|
+
var _a, _b;
|
|
150
|
+
const { vendor, currencyCode, currencySymbol, baseTransaction, status, balanceAsOfToday, jeScheduleId, } = jeScheduleTransactionState;
|
|
151
151
|
const { selectedMonths, selectedAccount, selectedClass, selectedDayOfMonth, lastDayOfMonth, selectedAccumulatedDepreciationCategory, assetId, selectedVendor, } = scheduleDetailsLocalData;
|
|
152
152
|
let updatedStatus = Object.assign({}, status);
|
|
153
153
|
// if the current status is marked as completed, we need to send the status as new when creating a new schedule.
|
|
@@ -183,7 +183,7 @@ const mapFixedAssetJEScheduleTransactionToPayload = (jeScheduleTransactionState,
|
|
|
183
183
|
isMarkAsComplete,
|
|
184
184
|
balanceAsOfToday,
|
|
185
185
|
baseTransaction,
|
|
186
|
-
}), start_date:
|
|
186
|
+
}), start_date: firstJEScheduleDate, end_date: lastJEScheduleDate, je_credit_accounting_class_id: getJECreditAccountingClassId({
|
|
187
187
|
isMarkAsComplete,
|
|
188
188
|
jeScheduleTransactionState,
|
|
189
189
|
}) }, (isUpdatingVendorCategoryOrClass === true
|
|
@@ -199,8 +199,7 @@ const mapFixedAssetJEScheduleTransactionToPayload = (jeScheduleTransactionState,
|
|
|
199
199
|
? Object.assign(Object.assign({}, payload), { is_deleted: true }) : payload;
|
|
200
200
|
};
|
|
201
201
|
const mapAccruedExpenseJEScheduleTransactionToPayload = (jeScheduleTransactionState, vendorState, scheduleDetailsLocalData, isDelete, isMarkAsComplete) => {
|
|
202
|
-
|
|
203
|
-
const { vendor, currencyCode, currencySymbol, baseTransaction, status, startDate, endDate, balanceAsOfToday, jeScheduleId, } = jeScheduleTransactionState;
|
|
202
|
+
const { vendor, currencyCode, currencySymbol, baseTransaction, status, balanceAsOfToday, jeScheduleId, } = jeScheduleTransactionState;
|
|
204
203
|
const { selectedMonths, selectedAccount, selectedClass, selectedDayOfMonth, lastDayOfMonth, selectedAccumulatedDepreciationCategory, assetId, } = scheduleDetailsLocalData;
|
|
205
204
|
let updatedStatus = Object.assign({}, status);
|
|
206
205
|
// if the current status is marked as completed, we need to send the status as new when creating a new schedule.
|
|
@@ -240,8 +239,8 @@ const mapAccruedExpenseJEScheduleTransactionToPayload = (jeScheduleTransactionSt
|
|
|
240
239
|
balanceAsOfToday,
|
|
241
240
|
baseTransaction,
|
|
242
241
|
}),
|
|
243
|
-
start_date:
|
|
244
|
-
end_date:
|
|
242
|
+
start_date: firstJEScheduleDate,
|
|
243
|
+
end_date: lastJEScheduleDate,
|
|
245
244
|
je_credit_accounting_class_id: getJECreditAccountingClassId({
|
|
246
245
|
isMarkAsComplete,
|
|
247
246
|
jeScheduleTransactionState,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.14.
|
|
3
|
+
"version": "4.14.42",
|
|
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",
|