Skip to content

Commit

Permalink
EMBCESSMOD-4989: Enable shelter allowance support (bcgov#2009)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimaQT authored Apr 12, 2024
1 parent 8809e13 commit 280bfb5
Show file tree
Hide file tree
Showing 32 changed files with 1,002 additions and 535 deletions.
2 changes: 1 addition & 1 deletion ess/src/API/EMBC.Tests.Integration.ESS/DynamicsTestData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -453,4 +453,4 @@ private void AssignSupplierToTeam(EssContext essContext, era_supplier supplier,
essContext.SetLink(ts, nameof(era_essteamsupplier.era_ESSTeamID), team);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ public class ProcessPaperReferralsRequest
[KnownType(typeof(LodgingBilletingSupport))]
[KnownType(typeof(LodgingGroupSupport))]
[KnownType(typeof(LodgingHotelSupport))]
[KnownType(typeof(LodgingAllowanceSupport))]
[KnownType(typeof(TransportationOtherSupport))]
[KnownType(typeof(TransportationTaxiSupport))]
public abstract class Support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export { FoodRestaurantSupport } from './models/food-restaurant-support';
export { LodgingBilletingSupport } from './models/lodging-billeting-support';
export { LodgingGroupSupport } from './models/lodging-group-support';
export { LodgingHotelSupport } from './models/lodging-hotel-support';
export { LodgingAllowanceSupport } from './models/lodging-allowance-support';
export { TransportationOtherSupport } from './models/transportation-other-support';
export { TransportationTaxiSupport } from './models/transportation-taxi-support';
export { EvacuationFileStatus } from './models/evacuation-file-status';
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* tslint:disable */
/* eslint-disable */
import { Support } from './support';
import { SupportCategory } from './support-category';
import { SupportSubCategory } from './support-sub-category';
export type LodgingAllowanceSupport = Support & {
'category': SupportCategory;
'subCategory': SupportSubCategory;
'numberOfNights': number;
'contactEmail'?: string;
'contactPhone'?: string;
'totalAmount': number;
};
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export class SupportDetailsModel {
| GroupLodging
| HotelMotel
| Incidentals
| Clothing;
| Clothing
| ShelterAllowance;
}

export class SupportDeliveryModel {
Expand Down Expand Up @@ -81,6 +82,14 @@ export class GroupLodging {
noOfNights: number;
}

export class ShelterAllowance {
noOfNights: number;
totalAmount: number;
contactEmail: string;
contactPhone: string;
fullName: string;
}

export class Incidentals {
approvedItems: string;
totalAmount: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ export const billeting = {
child: 5
};

export const shelterAllowanceRate = {
rate: 30,
adult: 10,
child: 5
};

export const noOfRooms = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];

export const supportNoOfDays = [
Expand Down Expand Up @@ -142,6 +148,11 @@ export const hotelRateSheet: DialogContent = {
cancelButton: 'Close'
};

export const needsShelterAllowanceRateSheet: DialogContent = {
title: '<b>ESS Rate Sheet - <span class="dialog-title">Shelter Allowance</span></b>',
text: '<p>To be issued when evacuees want to source their own shelter whilst evacuated.</p></br><p> $30 per night (single occupancy)</p><p> + $10 for each additional adult</p><p> + $5 for each additional child</p></br>',
};

export const billetingRateSheet: DialogContent = {
title: '<b>ESS Rate Sheet - <span class="dialog-title">Lodging</span></b>',
text: `<p class="primary bold">Billeting in Private Homes</p><p>The referral form for billeting is issued to the billeting host (supplier). Billeting rate does not include meals.</p><p>\$${billeting.rate.toFixed(
Expand Down Expand Up @@ -180,6 +191,21 @@ export const duplicateSupportMessage: DialogContent = {
cancelButton: 'No, Cancel'
};

export const needsShelterAllowanceMessage: DialogContent = {
title: 'Shelter',
text: '<p>A shelter allowance of $30 per night based on single occupancy ($10 for each additional adult and youth, and $5 for each child).</p></br><p>The shelter allowance can be provided to eligible evacuees via e-Transfer.</p>',
};

export const needsShelterReferralMessage: DialogContent = {
title: 'Referral',
text: '<p>A paper form provided by an ESS responder, directing evacuated individuals to specific suppliers or facilities for essential needs like food, shelter, clothing, or other necessary items during the evacuation.</p>',
};

export const needsIncidentalMessage: DialogContent = {
title: 'Incidentals',
text: '<p>Incidentals could include miscellaneous items such as personal hygiene products such as toothpaste, laundry soap and/or pet food.</p>',
};

export const saveMessage: DialogContent = {
text: '<p>Support successfully saved.</p>',
cancelButton: 'Close'
Expand Down
Loading

0 comments on commit 280bfb5

Please sign in to comment.