diff --git a/src/actions.js b/src/actions.js index 8afad07..c59301a 100644 --- a/src/actions.js +++ b/src/actions.js @@ -204,7 +204,7 @@ const formatPaymentInvoiceGQL = (payment, subjectId, subjectType) => ` ${!!payment.id ? `id: "${payment.id}"` : ""} ${!!subjectId ? `subjectId: "${subjectId}"` : ""} - ${!!subjectType ? `subjectType: "${subjectType}"` : ""} + ${!!subjectType ? `subjectTypeName "${subjectType}"` : ""} ${!!payment.status ? `status: ${payment.status}` : ""} ${!!payment.reconciliationStatus ? `reconciliationStatus: ${payment.reconciliationStatus}` : ""} ${!!payment.codeExt ? `codeExt: "${payment.codeExt}"` : ""} @@ -326,7 +326,11 @@ export function createInvoiceEventMessage(invoiceEvent, clientMutationLabel) { //bill export function fetchBills(params) { - const payload = formatPageQueryWithCount("bill", params, BILL_FULL_PROJECTION); + let updatedArr = params + .map(str => str.includes('subjectType:') ? str.replace('subjectType', 'subjectTypeFilter') : str) + .map(str => str.includes('thirdpartyType:') ? str.replace('thirdpartyType', 'thirdpartyTypeFilter') : str); + + const payload = formatPageQueryWithCount("bill", updatedArr, BILL_FULL_PROJECTION); return graphql(payload, ACTION_TYPE.SEARCH_BILLS); } diff --git a/src/components/BillSearcher.js b/src/components/BillSearcher.js index deadfce..ab9069d 100644 --- a/src/components/BillSearcher.js +++ b/src/components/BillSearcher.js @@ -5,6 +5,7 @@ import { injectIntl } from "react-intl"; import { IconButton, Tooltip, Button, Dialog, DialogActions, DialogTitle, DialogContent } from "@material-ui/core"; import EditIcon from "@material-ui/icons/Edit"; +import VisibilityIcon from '@material-ui/icons/Visibility'; import DeleteIcon from "@material-ui/icons/Delete"; import { @@ -170,13 +171,13 @@ const BillSearcher = ({ (bill) => (