@zeniai/client-epic-state 5.2.37 → 5.2.38

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.
@@ -8,7 +8,7 @@ import { isAwaitingMarkAsPaid, isBulkProcessing, isSodAdminFallbackEligibleForSt
8
8
  import { applyAdvancedFiltersOnList } from '../../spendManagementFilterHelpers';
9
9
  import { getSelectedWithdrawFromAccount } from '../billDetailView/billDetailViewSelector';
10
10
  import { getBillPayConfigBotEmail } from '../billPayConfig/billPayConfigSelector';
11
- import { getCategoryValueForBill } from './billListFilterHelpers';
11
+ import { getActualPaymentDate, getCategoryValueForBill, } from './billListFilterHelpers';
12
12
  import { ALL_BILL_TABS, getBillListKey, } from './billListState';
13
13
  export const getBillList = (state, currentTimePeriod, isBulkActionFeatureEnabled, loggedInUserId) => {
14
14
  const { billListState, billTransactionState, billPayConfigState, entityApprovalStatusState, userState, recurringBillState, billsBulkActionViewState, } = state;
@@ -432,7 +432,7 @@ export const getBillListOnSort = (sortKey, sortOrder, currentTab, transactions)
432
432
  }
433
433
  }
434
434
  else {
435
- if (Boolean(transaction.billPayInfo.paymentDate) === true) {
435
+ if (Boolean(getActualPaymentDate(transaction.billPayInfo)) === true) {
436
436
  transactionsWithSortKeyValue.push(transaction);
437
437
  }
438
438
  else {
@@ -517,7 +517,7 @@ export const getBillListOnSort = (sortKey, sortOrder, currentTab, transactions)
517
517
  case 'dueDate':
518
518
  return currentTab === 'draft'
519
519
  ? transaction.dueDate
520
- : transaction.billPayInfo.paymentDate;
520
+ : getActualPaymentDate(transaction.billPayInfo);
521
521
  case 'status':
522
522
  return getStatusPerTab(transaction);
523
523
  case 'amount':
@@ -440,7 +440,7 @@ const getBillListOnSort = (sortKey, sortOrder, currentTab, transactions) => {
440
440
  }
441
441
  }
442
442
  else {
443
- if (Boolean(transaction.billPayInfo.paymentDate) === true) {
443
+ if (Boolean((0, billListFilterHelpers_1.getActualPaymentDate)(transaction.billPayInfo)) === true) {
444
444
  transactionsWithSortKeyValue.push(transaction);
445
445
  }
446
446
  else {
@@ -525,7 +525,7 @@ const getBillListOnSort = (sortKey, sortOrder, currentTab, transactions) => {
525
525
  case 'dueDate':
526
526
  return currentTab === 'draft'
527
527
  ? transaction.dueDate
528
- : transaction.billPayInfo.paymentDate;
528
+ : (0, billListFilterHelpers_1.getActualPaymentDate)(transaction.billPayInfo);
529
529
  case 'status':
530
530
  return getStatusPerTab(transaction);
531
531
  case 'amount':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.2.37",
3
+ "version": "5.2.38",
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",