Skip to content

Commit

Permalink
Finish bugfix/OP-2270
Browse files Browse the repository at this point in the history
OP-2270: Fixed issue with bills search
  • Loading branch information
dragos-dobre authored Oct 10, 2024
2 parents 159abdd + 5bb4745 commit 8f121fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}"` : ""}
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 8f121fe

Please sign in to comment.