diff --git a/backend/src/components/fundingAgreements.js b/backend/src/components/fundingAgreements.js index 4e1d0fd2..4d262200 100644 --- a/backend/src/components/fundingAgreements.js +++ b/backend/src/components/fundingAgreements.js @@ -15,7 +15,7 @@ async function getFundingAgreements(req, res) { operation += '&$expand=ofm_application($select=_ofm_expense_authority_value;$expand=ofm_expense_authority($select=ofm_first_name,ofm_last_name))' } const filter = `${buildDateFilterQuery(req?.query, 'ofm_start_date')}${buildFilterQuery(req?.query, FundingAgreementMappings)}` - operation += `&$filter=(${filter})&$orderby=ofm_version_number desc` + operation += `&$filter=(${filter})&pageSize=500&$orderby=ofm_version_number desc` const response = await getOperation(operation) response?.value?.forEach((funding) => { const fa = new MappableObjectForFront(funding, FundingAgreementMappings).toJSON() diff --git a/backend/src/components/payments.js b/backend/src/components/payments.js index 9c1c54c8..f7f02ee1 100644 --- a/backend/src/components/payments.js +++ b/backend/src/components/payments.js @@ -11,7 +11,7 @@ async function getPayments(req, res) { const payments = [] let operation = 'ofm_payments?$select=ofm_paymentid,ofm_name,_ofm_facility_value,_ofm_funding_value,ofm_payment_type,ofm_amount,ofm_invoice_date,statuscode,statecode' const filter = `${buildDateFilterQuery(req?.query, 'ofm_invoice_date')}${buildFilterQuery(req?.query, PaymentMappings)}` - operation += `&$filter=(${filter})` + operation += `&$filter=(${filter})&pageSize=500` const response = await getOperation(operation) response?.value?.forEach((item) => payments.push(new MappableObjectForFront(item, PaymentMappings).toJSON())) return res.status(HttpStatus.OK).json(payments) diff --git a/backend/src/components/reports.js b/backend/src/components/reports.js index 67e7f9d3..c5629038 100644 --- a/backend/src/components/reports.js +++ b/backend/src/components/reports.js @@ -107,7 +107,7 @@ async function getSurveyResponses(req, res) { if (req.query?.isSubmitted != null) { filter += req.query?.isSubmitted === 'true' ? ' and _ofm_contact_value ne null' : ' and _ofm_contact_value eq null' } - const operation = `ofm_survey_responses?$filter=(${filter})` + const operation = `ofm_survey_responses?$filter=(${filter})&pageSize=500` const response = await getOperation(operation) response?.value?.forEach((surveyResponse) => surveyResponses.push(new MappableObjectForFront(surveyResponse, SurveyResponseMappings).toJSON())) if (isEmpty(surveyResponses)) { diff --git a/frontend/src/components/funding/FundingAgreementsTab.vue b/frontend/src/components/funding/FundingAgreementsTab.vue index cbeb59a0..563f308a 100644 --- a/frontend/src/components/funding/FundingAgreementsTab.vue +++ b/frontend/src/components/funding/FundingAgreementsTab.vue @@ -123,7 +123,7 @@ export default { this.fundingAgreements = [] await Promise.all( searchQueries?.facilities?.map(async (facility) => { - const facilityFas = await FundingAgreementService.getFAsByFacilityIdAndStartDate(facility.facilityId, searchQueries?.dateFrom, searchQueries?.dateTo) + const facilityFas = await FundingAgreementService.getFAsByFacilityId(facility.facilityId, searchQueries?.dateFrom, searchQueries?.dateTo) if (facilityFas) { facilityFas.forEach((fa) => { fa.fundingAgreementType = APPLICATION_TYPES.OFM diff --git a/frontend/src/components/funding/FundingSearchCard.vue b/frontend/src/components/funding/FundingSearchCard.vue index 9306c26e..1606425b 100644 --- a/frontend/src/components/funding/FundingSearchCard.vue +++ b/frontend/src/components/funding/FundingSearchCard.vue @@ -131,7 +131,7 @@ export default { }, defaultDateFilter: { type: String, - default: DATE_FILTER_TYPES.THREE_MONTHS, + default: null, }, }, diff --git a/frontend/src/components/funding/PaymentRecordsTab.vue b/frontend/src/components/funding/PaymentRecordsTab.vue index 1da957e7..035c01ce 100644 --- a/frontend/src/components/funding/PaymentRecordsTab.vue +++ b/frontend/src/components/funding/PaymentRecordsTab.vue @@ -1,7 +1,7 @@