Skip to content

Commit

Permalink
fix(condo): DOMA-8333 fix payments sum filtering by createdAt on Mark…
Browse files Browse the repository at this point in the history
…etplacePaymentsContent (#4337)
  • Loading branch information
VKislov authored Feb 8, 2024
1 parent 677a964 commit adc95e8
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,21 @@ const MarketplacePaymentsTableContent = () => {
fetchPolicy: 'network-only',
})

const { data: allPaymentsSum, loading: allPaymentsSumLoading } = usePaymentsSum({ ...invoiceOrganizationQuery, status_in: [PAYMENT_WITHDRAWN_STATUS, PAYMENT_DONE_STATUS] })
const { data: donePaymentsSum, loading: donePaymentsSumLoading } = usePaymentsSum({ ...invoiceOrganizationQuery, status_in: [PAYMENT_DONE_STATUS] })
const { data: withdrawnPaymentsSum, loading: withdrawnPaymentsSumLoading } = usePaymentsSum({ ...invoiceOrganizationQuery, status_in: [PAYMENT_WITHDRAWN_STATUS] })
const { data: allPaymentsSum, loading: allPaymentsSumLoading } = usePaymentsSum({
...filtersToWhere(filters),
...invoiceOrganizationQuery,
status_in: [PAYMENT_WITHDRAWN_STATUS, PAYMENT_DONE_STATUS],
})
const { data: donePaymentsSum, loading: donePaymentsSumLoading } = usePaymentsSum({
...filtersToWhere(filters),
...invoiceOrganizationQuery,
status_in: [PAYMENT_DONE_STATUS],
})
const { data: withdrawnPaymentsSum, loading: withdrawnPaymentsSumLoading } = usePaymentsSum({
...filtersToWhere(filters),
...invoiceOrganizationQuery,
status_in: [PAYMENT_WITHDRAWN_STATUS],
})

const [selectedRows, setSelectedRows] = useState([])

Expand Down

0 comments on commit adc95e8

Please sign in to comment.