@zeniai/client-epic-state 4.13.71 → 4.13.72
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.
|
@@ -224,6 +224,17 @@ const expenseAutomationTransactionsView = (0, toolkit_1.createSlice)({
|
|
|
224
224
|
transactionReviewLocalData: newTransactionLocalData,
|
|
225
225
|
transactionId,
|
|
226
226
|
};
|
|
227
|
+
const selectedTransaction = transactions.find((transaction) => transaction.id === transactionId);
|
|
228
|
+
const selectedCheckBoxTransactionIds = draft[selectedTab].selectedCheckBoxTransactionIds;
|
|
229
|
+
if (selectedTransaction != null &&
|
|
230
|
+
(0, transactionCategorizationLocalDataHelper_1.checkIfAllLineItemsAreCategoryClassFilled)(selectedTransaction, newTransactionLocalData) === true && // check if all line items are filled
|
|
231
|
+
selectedCheckBoxTransactionIds.length < transactionCategorizationLocalDataHelper_1.MAX_SELECTION_LIMIT &&
|
|
232
|
+
selectedCheckBoxTransactionIds.includes(transactionId) === false) {
|
|
233
|
+
draft[selectedTab].selectedCheckBoxTransactionIds = [
|
|
234
|
+
...draft[selectedTab].selectedCheckBoxTransactionIds,
|
|
235
|
+
transactionId,
|
|
236
|
+
];
|
|
237
|
+
}
|
|
227
238
|
}
|
|
228
239
|
if (vendorId != null) {
|
|
229
240
|
transactions.forEach((transaction) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.72",
|
|
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",
|