Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge to Master #4320

Merged
merged 27 commits into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
428c337
Revert "LCSD-7312: Add proof of valid interest back to Dormancy Reins…
gary-jipp Sep 26, 2024
ae65a6d
LCSD-7367 (#4294)
simranjeetgit Nov 9, 2024
e469319
LCSD-7483: Add banner for dynamics upgrade (#4296)
vijaivir Nov 12, 2024
2784689
LCSD-6147 (#4298)
JSuiBCGov Nov 13, 2024
08a2edb
Update banner text (#4297)
vijaivir Nov 12, 2024
532c577
LCSD-6857 LCSD-7322 (#4300)
simranjeetgit Nov 13, 2024
cecd80e
LCSD-7413 SEP refund policy (#4302)
JSuiBCGov Nov 14, 2024
a9a7fb7
LCSD-7414: Added refund policy for renewal applications (#4301)
vijaivir Nov 14, 2024
e9a0e4b
LCSD-7235: Fixed typo, rearrange refund policy section, add declarati…
vijaivir Nov 14, 2024
e75f68f
LCSD-7312: Add proof of valid interest back to dormancy reinstatement…
sam-warren Nov 14, 2024
09f4eb3
LCSD-7322 (#4304)
simranjeetgit Nov 18, 2024
8c21151
Revert System Maintenance Banner (#4305)
vijaivir Nov 18, 2024
c3ad739
LCSD-6465 remove "aircraft" from LP application (#4307)
JSuiBCGov Nov 18, 2024
6283b60
Merge branch 'master' into develop
vijaivir Nov 18, 2024
9ed8a8d
Add closing section (#4309)
vijaivir Nov 18, 2024
b3d0791
Fixed merge issues
simranjeetgit Nov 18, 2024
1634c3d
Merge branch 'develop' of https://github.com/bcgov/jag-lcrb-carla-pub…
simranjeetgit Nov 18, 2024
897ac5e
Merge branch 'master' of https://github.com/bcgov/jag-lcrb-carla-publ…
simranjeetgit Nov 18, 2024
f519c20
LCSD-7322 Dev test (#4312)
simranjeetgit Nov 19, 2024
7ae6d45
LCSD-7498 (#4313)
simranjeetgit Nov 19, 2024
6d22178
LCSD-7382: Reverted logic for Establishment Hours of Sale (#4315)
vijaivir Nov 20, 2024
e6dd1a6
LCSD-7382: Adding the Unit Test and Styling for the Hours of Sale Rev…
vijaivir Nov 21, 2024
3a4be5e
LCSD-7322 (#4318)
simranjeetgit Nov 21, 2024
e42014e
LCSD-7322
simranjeetgit Nov 21, 2024
5b5c541
Squashed commit of the following:
simranjeetgit Nov 21, 2024
a170a03
Resolved merge conflicts removed duplicate hours of sale section
simranjeetgit Nov 21, 2024
9305701
Removed duplicate code for hours of sale from precious merge
simranjeetgit Nov 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,13 @@ <h3 class="blue-header" *ngIf="this.isLP()">ESTABLISHMENT TYPE</h3>
style="width: 250px;" type="number" min="1" placeholder="Total occupant load" (input)="validateInput($event)" /></app-field>
</section>
</div>

<div>
<section *ngIf="application.applicationType.serviceAreas" > <p>Enter the total occupant load as indicated by your local government. This number can be either the total stamped on the floor plan or the sum of occupant loads across all service areas, as listed in the occupant load stamp. </p>
<app-field [required]="true" label="Total occupant load" [valid]="!showValidationMessages || form.get('totalOccupantLoad').valid" errorMessage="Total occupant load is required."> <input class="form-control" formControlName="totalOccupantLoad" id="totalOccupantLoad"
style="width: 250px;" type="number" min="1" placeholder="Total occupant load" (input)="validateInput($event)" /></app-field>
</section>
</div>
</div>

</section>
Expand All @@ -1868,20 +1875,21 @@ <h3 class="blue-header" *ngIf="application.applicationType.serviceAreas">SERVICE
<app-capacity-table formControlName="serviceAreas" [areaCategory]="getAreaCategoryNumber('Service')"
[enabled]="!isOpenedByLGForApproval && !lGHasApproved()">
</app-capacity-table>
<!-- Occupant load cheackbox -->
<div *ngIf="!hideOcupantLoadFields()" >
<div *ngIf="!isOccupantLoadCorrect()">
<br>
<p class="error-text">The sum of occupant loads across all service areas does not match the total occupant load entered in the total occupant load field.</p>

</div>

<div *ngIf="!hideOcupantLoadFields()" >
<div *ngIf="!isOccupantLoadCorrect()">
<br>
<p class="error-text">The sum of occupant loads across all service areas does not match the total occupant load entered in the total occupant load field.</p>

</div>

<div *ngIf="!showOccupantLoadCheckBox">
<mat-checkbox formControlName="totalOccupantLoadExceed" > <span class="error-states">*</span>
I affirm that the combined service area capacity exceeds the total occupant load.
</mat-checkbox>
</div>
</div>
<div *ngIf="showOccupantLoadCheckBox">
<br>
<mat-checkbox formControlName="totalOccupantLoadExceed" > <span class="error-states">*</span>
I affirm that the combined service area capacity exceeds the total occupant load.
</mat-checkbox>
</div>
</div>
</app-field>

<mat-card class="mat-elevation-z0 mb-3" *ngIf="showHoldsOtherManufactureLicence()">
Expand Down Expand Up @@ -1944,6 +1952,7 @@ <h3 class="blue-header" *ngIf="application.applicationType.outsideAreas">OUTSIDE
</div>
</section>


<!-- Capacity Area -->
<h3 class="blue-header" *ngIf="application.applicationType.capacityArea
&& application?.applicationType?.name != ApplicationTypeNames.TemporaryExtensionOfLicensedAreaLP">
Expand Down Expand Up @@ -2270,7 +2279,7 @@ <h3 class="blue-header">HOURS OF SALE</h3>
</p>
</div>
</section>

<!-- Licensed Producer -->
<div *ngIf="application?.applicationType?.name === ApplicationTypeNames.Marketer">
<h3 class="blue-header">INFORMATION ABOUT THE LICENSED PRODUCER</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ export class ApplicationComponent extends FormBase implements OnInit {
this.form.get('serviceHoursSaturdayClose').disable();
}


if (this.application.applicationType.name !== ApplicationTypeNames.Marketer) {
this.form.get('federalProducerNames').disable();
}
Expand Down Expand Up @@ -848,6 +849,7 @@ export class ApplicationComponent extends FormBase implements OnInit {
return true;
}


lgHasReviewedZoning(): boolean {
let hasReviewed = false;
if (this.application && this.application.lGDecisionSubmissionDate && this.application.lgZoning) {
Expand Down Expand Up @@ -1328,6 +1330,7 @@ export class ApplicationComponent extends FormBase implements OnInit {
this.validationMessages.push('At least one service area is required.');
}else{


if(!this.isOccupantLoadCorrect()){
valid = false;
this.validationMessages.push('The sum of occupant loads across all service areas does not match the total occupant load entered in the total occupant load field.');
Expand Down Expand Up @@ -1424,6 +1427,7 @@ export class ApplicationComponent extends FormBase implements OnInit {
this.validationMessages.push('Hours of sale are required');
}


if (this.application.applicationType.showOwnershipDeclaration) {

if (!this.form.get('isOwner').value && !(this.form.get('isOwnerBusiness') && this.form.get('isOwnerBusiness').value)) {
Expand Down Expand Up @@ -1997,22 +2001,26 @@ export class ApplicationComponent extends FormBase implements OnInit {
}

isOccupantLoadCorrect(): Boolean{

if(this.hideOcupantLoadFields()){
this.form.get('totalOccupantLoadExceed').disable();
return true;
}

const serviceArea = ('areas' in this.form.get('serviceAreas').value) ? this.form.get('serviceAreas').value['areas'] : this.form.get('serviceAreas').value;
let totalCapacity = serviceArea.reduce((sum,item)=> Number(sum+(+item.capacity)),0);
let totalOccupantLoad = this.form.get('totalOccupantLoad').value | 0;
const isExceeded:boolean = totalOccupantLoad>=totalCapacity
const isExceeded:boolean = totalCapacity > totalOccupantLoad
if(isExceeded){
this.form.get('totalOccupantLoadExceed').enable();
this.form.get('totalOccupantLoadExceed').enable();
this.showOccupantLoadCheckBox = true;
}else{
this.form.get('totalOccupantLoadExceed').disable();
this.form.get('totalOccupantLoadExceed').disable();
this.showOccupantLoadCheckBox = false;
}
return this.form.get('totalOccupantLoadExceed').value === true || isExceeded;
return this.form.get('totalOccupantLoadExceed').value === true || !isExceeded;
}

//Check if applicant is waiting for LG approcval or has been approved by LG.
Expand Down