Skip to content

Commit

Permalink
ofmcc-6327 - code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
vietle-cgi committed Oct 21, 2024
1 parent ebff312 commit f518740
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion backend/src/components/fundingAgreements.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function getFundingAgreements(req, res) {
let operation = 'ofm_fundings?$select=ofm_fundingid,ofm_funding_number,ofm_declaration,ofm_start_date,ofm_end_date,_ofm_application_value,_ofm_facility_value,statuscode,statecode'
if (req.query?.includeFundingEnvelopes) {
operation +=
',ofm_envelope_hr_total_base,ofm_envelope_hr_wages_paidtimeoff,ofm_envelope_hr_benefits,ofm_envelope_hr_employerhealthtax,ofm_envelope_hr_prodevhours,ofm_envelope_hr_prodevexpenses,ofm_envelope_programming,ofm_envelope_administrative,ofm_envelope_operational,ofm_envelope_facility'
',ofm_envelope_hr_total,ofm_envelope_hr_wages_paidtimeoff,ofm_envelope_hr_benefits,ofm_envelope_hr_employerhealthtax,ofm_envelope_hr_prodevhours,ofm_envelope_hr_prodevexpenses,ofm_envelope_programming,ofm_envelope_administrative,ofm_envelope_operational,ofm_envelope_facility'
}
if (req.query?.includeEA) {
operation += '&$expand=ofm_application($select=_ofm_expense_authority_value;$expand=ofm_expense_authority($select=ofm_first_name,ofm_last_name))'
Expand Down
2 changes: 1 addition & 1 deletion backend/src/util/mapping/Mappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ const FundingAgreementMappings = [
{ back: '_ofm_facility_value@OData.Community.Display.V1.FormattedValue', front: 'facilityName' },

// Annual Base Funding
{ back: 'ofm_envelope_hr_total_base', front: 'envelopeHRTotal' },
{ back: 'ofm_envelope_hr_total', front: 'envelopeHRTotal' },
{ back: 'ofm_envelope_hr_wages_paidtimeoff', front: 'envelopeHRWagePaidTimeOff' },
{ back: 'ofm_envelope_hr_benefits', front: 'envelopeHRBenefits' },
{ back: 'ofm_envelope_hr_employerhealthtax', front: 'envelopeHREmployerHealthTax' },
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/funding/BaseFundingCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
import format from '@/utils/format'

export default {
name: 'BaseFundingPaidCard',
name: 'BaseFundingCard',
props: {
loading: {
type: Boolean,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/services/fundingAgreementService.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default {
)
return response?.data[0]
} catch (error) {
console.log(`Failed to get the active funding agreement by facility id and status - ${error}`)
console.log(`Failed to get funding envelopes of the last funding agreement by facility id and status - ${error}`)
throw error
}
},
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/funding/FundingOverviewView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<v-icon size="large">mdi-history</v-icon>
<strong>Payment Records</strong>
</v-tab>
<v-tab v-if="hasPermission(PERMISSIONS.VIEW_FUNDING_AMOUNTS)" value="funding-allocation">
<v-tab v-if="hasPermission(PERMISSIONS.VIEW_FUNDING_AGREEMENT)" value="funding-allocation">
<v-icon size="large">mdi-call-split</v-icon>
<strong>Funding Allocation</strong>
</v-tab>
Expand All @@ -25,7 +25,7 @@
<v-window-item v-if="hasPermission(PERMISSIONS.VIEW_FUNDING_AMOUNTS)" value="payment-records">
<PaymentRecordsTab />
</v-window-item>
<v-window-item v-if="hasPermission(PERMISSIONS.VIEW_FUNDING_AMOUNTS)" value="funding-allocation">
<v-window-item v-if="hasPermission(PERMISSIONS.VIEW_FUNDING_AGREEMENT)" value="funding-allocation">
<FundingAllocationTab />
</v-window-item>
</v-window>
Expand Down

0 comments on commit f518740

Please sign in to comment.