@zeniai/client-epic-state 5.0.31-betaAR6 → 5.0.31-betaAR7
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.
|
@@ -339,33 +339,22 @@ const getCategoryValueForTransaction = (key, transaction) => {
|
|
|
339
339
|
return undefined;
|
|
340
340
|
}
|
|
341
341
|
case 'payment_account_name': {
|
|
342
|
-
//
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
const firstLine = transaction.transaction.lines?.[0];
|
|
348
|
-
if (firstLine?.type === 'transaction_with_account_and_class_line' ||
|
|
349
|
-
firstLine?.type === 'transaction_with_product_or_service_line' ||
|
|
350
|
-
firstLine?.type === 'journal_entry_transaction_line') {
|
|
351
|
-
const accountLine = firstLine;
|
|
352
|
-
return accountLine.account?.accountName;
|
|
353
|
-
}
|
|
354
|
-
return undefined;
|
|
342
|
+
// Match the value the row renders: TransactionCategorizationListRow reads
|
|
343
|
+
// `currentTransaction?.account?.accountName` for the Payment Account Name
|
|
344
|
+
// column. Returning the same field here keeps filter-match parity with the
|
|
345
|
+
// visible cell, so any row a user can see is also a row the filter can match.
|
|
346
|
+
return transaction.transaction.account?.accountName;
|
|
355
347
|
}
|
|
356
348
|
case 'payment_account_type': {
|
|
357
|
-
//
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
return accountLineForType.account?.accountType;
|
|
367
|
-
}
|
|
368
|
-
return undefined;
|
|
349
|
+
// Match the value the row renders: TransactionCategorizationListRow reads
|
|
350
|
+
// `currentTransaction?.paymentTypeName` for the Payment Type column
|
|
351
|
+
// (e.g. "Credit Card", "Check"). NOTE: the Payment Account Type filter
|
|
352
|
+
// dropdown options are currently derived from raw `account.accountType`
|
|
353
|
+
// values (e.g. "credit_card", "bank") in
|
|
354
|
+
// `ExpenseAutomationPage.filterOptions`. With this matcher change, the
|
|
355
|
+
// dropdown options must be aligned to also emit `paymentTypeName` values,
|
|
356
|
+
// otherwise the filter will silently match nothing.
|
|
357
|
+
return transaction.transaction.paymentTypeName;
|
|
369
358
|
}
|
|
370
359
|
case 'category': {
|
|
371
360
|
// Get from transactionLocalData (preferred) or from transaction lines
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "5.0.31-
|
|
3
|
+
"version": "5.0.31-betaAR7",
|
|
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",
|