-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #389 from bcgov/ofmcc-6327-funding-reallocation-view
OFMCC-6327 - Funding Reallocation View
- Loading branch information
Showing
12 changed files
with
267 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -332,6 +332,18 @@ const FundingAgreementMappings = [ | |
{ back: 'statecode', front: 'stateCode' }, | ||
{ back: 'ofm_declaration', front: 'agreeConsentCertify' }, | ||
{ back: '[email protected]', front: 'facilityName' }, | ||
|
||
// Annual Base Funding | ||
{ 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' }, | ||
{ back: 'ofm_envelope_hr_prodevhours', front: 'envelopeHRProDevHours' }, | ||
{ back: 'ofm_envelope_hr_prodevexpenses', front: 'envelopeHRProDevExpenses' }, | ||
{ back: 'ofm_envelope_programming', front: 'envelopeProgramming' }, | ||
{ back: 'ofm_envelope_administrative', front: 'envelopeAdministrative' }, | ||
{ back: 'ofm_envelope_operational', front: 'envelopeOperational' }, | ||
{ back: 'ofm_envelope_facility', front: 'envelopeFacility' }, | ||
] | ||
|
||
const PaymentMappings = [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
<template> | ||
<v-card elevation="2" class="ma-2"> | ||
<v-card-title class="card-title"><strong>Base Funding Paid</strong></v-card-title> | ||
<v-skeleton-loader :loading="loading" type="table-tbody" class="pa-6"> | ||
<v-container fluid class="pa-0"> | ||
<div>The base funding shown is only from the current fiscal year and does not include changes from funding re-allocation requests.</div> | ||
<v-row no-gutters class="my-4"> | ||
<v-col cols="12" lg="6"> | ||
<v-card class="pa-4 mb-2 mb-sm-0 mr-lg-4"> | ||
<div> | ||
<h5 class="mb-4">Instructional Human Resources</h5> | ||
<h3>$ {{ format.formatDecimalNumber(fundingDetails?.envelopeHRTotal) }}</h3> | ||
<v-row no-gutters class="my-1"> | ||
<v-col cols="12" sm="8">> Wages and paid time off</v-col> | ||
<v-col cols="12" sm="4"> | ||
<strong>${{ format.formatDecimalNumber(fundingDetails?.envelopeHRWagePaidTimeOff) }}</strong> | ||
</v-col> | ||
</v-row> | ||
<v-row no-gutters class="my-1"> | ||
<v-col cols="12" sm="8">> Benefits</v-col> | ||
<v-col cols="12" sm="4"> | ||
<strong>${{ format.formatDecimalNumber(fundingDetails?.envelopeHRBenefits) }}</strong> | ||
</v-col> | ||
</v-row> | ||
<v-row no-gutters class="my-1"> | ||
<v-col cols="12" sm="8">> Employer Health Tax</v-col> | ||
<v-col cols="12" sm="4"> | ||
<strong>${{ format.formatDecimalNumber(fundingDetails?.envelopeHREmployerHealthTax) }}</strong> | ||
</v-col> | ||
</v-row> | ||
<v-row no-gutters class="my-1"> | ||
<v-col cols="12" sm="8">> Professional Development Hours</v-col> | ||
<v-col cols="12" sm="4"> | ||
<strong>${{ format.formatDecimalNumber(fundingDetails?.envelopeHRProDevHours) }}</strong> | ||
</v-col> | ||
</v-row> | ||
<v-row no-gutters class="my-1"> | ||
<v-col cols="12" sm="8">> Professional Development Expenses</v-col> | ||
<v-col cols="12" sm="4"> | ||
<strong>${{ format.formatDecimalNumber(fundingDetails?.envelopeHRProDevExpenses) }}</strong> | ||
</v-col> | ||
</v-row> | ||
</div> | ||
</v-card> | ||
</v-col> | ||
|
||
<v-col cols="12" lg="6" class="mb-sm-4 mb-lg-0"> | ||
<v-row no-gutters> | ||
<v-col cols="12" sm="6"> | ||
<v-card class="pa-4 mt-2 mt-sm-4 mt-lg-0 mr-sm-2 ml-lg-2"> | ||
<h5 class="mb-4">Programming</h5> | ||
<h3>$ {{ format.formatDecimalNumber(fundingDetails?.envelopeProgramming) }}</h3> | ||
</v-card> | ||
</v-col> | ||
<v-col cols="12" sm="6"> | ||
<v-card class="pa-4 mt-4 mt-lg-0 ml-sm-2 ml-lg-4"> | ||
<h5 class="mb-4">Administrative</h5> | ||
<h3>$ {{ format.formatDecimalNumber(fundingDetails?.envelopeAdministrative) }}</h3> | ||
</v-card> | ||
</v-col> | ||
<v-col cols="12" sm="6"> | ||
<v-card class="pa-4 mt-4 mt-lg-6 ml-lg-2 mr-sm-2"> | ||
<h5 class="mb-4">Facility</h5> | ||
<h3>$ {{ format.formatDecimalNumber(fundingDetails?.envelopeFacility) }}</h3> | ||
</v-card> | ||
</v-col> | ||
<v-col cols="12" sm="6"> | ||
<v-card class="pa-4 mt-4 mt-lg-6 ml-sm-2 ml-lg-4"> | ||
<h5 class="mb-4">Operational</h5> | ||
<h3>$ {{ format.formatDecimalNumber(fundingDetails?.envelopeOperational) }}</h3> | ||
</v-card> | ||
</v-col> | ||
</v-row> | ||
</v-col> | ||
</v-row> | ||
</v-container> | ||
</v-skeleton-loader> | ||
</v-card> | ||
</template> | ||
|
||
<script> | ||
import format from '@/utils/format' | ||
export default { | ||
name: 'BaseFundingCard', | ||
props: { | ||
loading: { | ||
type: Boolean, | ||
default: true, | ||
}, | ||
fundingDetails: { | ||
type: Object, | ||
required: true, | ||
default: () => { | ||
return {} | ||
}, | ||
}, | ||
}, | ||
created() { | ||
this.format = format | ||
}, | ||
} | ||
</script> | ||
<style scoped> | ||
.card-title { | ||
background-color: lightgray; | ||
} | ||
</style> |
93 changes: 93 additions & 0 deletions
93
frontend/src/components/funding/FundingAllocationInfoTable.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<template> | ||
<v-container fluid class="pa-0"> | ||
<div class="funding-info-table"> | ||
<template v-if="$vuetify.display.mdAndUp"> | ||
<v-row no-gutters> | ||
<v-col cols="2" class="funding-info-table-header"><strong>Funding Envelopes</strong></v-col> | ||
<v-col cols="2" class="funding-envelope-types"><strong>Facility</strong></v-col> | ||
<v-col cols="2" class="funding-envelope-types"><strong>Operational</strong></v-col> | ||
<v-col cols="2" class="funding-envelope-types"><strong>Administration</strong></v-col> | ||
<v-col cols="2" class="funding-envelope-types"><strong>Programming</strong></v-col> | ||
<v-col cols="2" class="funding-envelope-types"><strong>Human Resources</strong></v-col> | ||
</v-row> | ||
<v-row no-gutters> | ||
<v-col cols="2" class="funding-info-table-header"><strong>Receive Funds</strong></v-col> | ||
<v-col cols="2" class="funding-info-table-cell">Does Not Need Ministry Approval</v-col> | ||
<v-col cols="2" class="funding-info-table-cell">Does Not Need Ministry Approval</v-col> | ||
<v-col cols="2" class="funding-info-table-cell">Need Ministry Approval</v-col> | ||
<v-col cols="2" class="funding-info-table-cell">Does Not Need Ministry Approval</v-col> | ||
<v-col cols="2" class="funding-info-table-cell">Need Ministry Approval</v-col> | ||
</v-row> | ||
<v-row no-gutters> | ||
<v-col cols="2" class="funding-info-table-header"><strong>Sending Funds</strong></v-col> | ||
<v-col cols="2" class="funding-info-table-cell">Need Ministry Approval</v-col> | ||
<v-col cols="2" class="funding-info-table-cell">Does Not Need Ministry Approval</v-col> | ||
<v-col cols="2" class="funding-info-table-cell">Does Not Need Ministry Approval</v-col> | ||
<v-col cols="2" class="funding-info-table-cell">Does Not Need Ministry Approval</v-col> | ||
<v-col cols="2" class="funding-info-table-cell">Need Ministry Approval</v-col> | ||
</v-row> | ||
</template> | ||
<template v-else> | ||
<v-row no-gutters> | ||
<v-col cols="4" class="funding-info-table-header"><strong>Funding Envelopes</strong></v-col> | ||
<v-col cols="4" class="funding-info-table-header"><strong>Receive Funds</strong></v-col> | ||
<v-col cols="4" class="funding-info-table-header"><strong>Sending Funds</strong></v-col> | ||
</v-row> | ||
<v-row no-gutters> | ||
<v-col cols="4" class="funding-envelope-types"><strong>Facility</strong></v-col> | ||
<v-col cols="4" class="funding-info-table-cell">Does Not Need Ministry Approval</v-col> | ||
<v-col cols="4" class="funding-info-table-cell">Need Ministry Approval</v-col> | ||
</v-row> | ||
<v-row no-gutters> | ||
<v-col cols="4" class="funding-envelope-types"><strong>Operational</strong></v-col> | ||
<v-col cols="4" class="funding-info-table-cell">Does Not Need Ministry Approval</v-col> | ||
<v-col cols="4" class="funding-info-table-cell">Does Not Need Ministry Approval</v-col> | ||
</v-row> | ||
<v-row no-gutters> | ||
<v-col cols="4" class="funding-envelope-types"><strong>Administration</strong></v-col> | ||
<v-col cols="4" class="funding-info-table-cell">Need Ministry Approval</v-col> | ||
<v-col cols="4" class="funding-info-table-cell">Does Not Need Ministry Approval</v-col> | ||
</v-row> | ||
<v-row no-gutters> | ||
<v-col cols="4" class="funding-envelope-types"><strong>Programming</strong></v-col> | ||
<v-col cols="4" class="funding-info-table-cell">Does Not Need Ministry Approval</v-col> | ||
<v-col cols="4" class="funding-info-table-cell">Does Not Need Ministry Approval</v-col> | ||
</v-row> | ||
<v-row no-gutters> | ||
<v-col cols="4" class="funding-envelope-types"><strong>Human Resources</strong></v-col> | ||
<v-col cols="4" class="funding-info-table-cell">Need Ministry Approval</v-col> | ||
<v-col cols="4" class="funding-info-table-cell">Need Ministry Approval</v-col> | ||
</v-row> | ||
</template> | ||
</div> | ||
</v-container> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'FundingAllocationInfoTable', | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.funding-info-table { | ||
border: 1px solid; | ||
} | ||
.funding-info-table-header { | ||
border: 1px solid; | ||
padding: 10px !important; | ||
background-color: lightgray; | ||
} | ||
.funding-envelope-types { | ||
border: 1px solid; | ||
padding: 10px !important; | ||
background-color: #f0f0f0; | ||
} | ||
.funding-info-table-cell { | ||
border: 1px solid; | ||
padding: 10px !important; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.