diff --git a/cllc-public-app/ClientApp/src/app/components/applications/application/application.component.html b/cllc-public-app/ClientApp/src/app/components/applications/application/application.component.html index 23bf56f73a..f4e4ce3d2e 100644 --- a/cllc-public-app/ClientApp/src/app/components/applications/application/application.component.html +++ b/cllc-public-app/ClientApp/src/app/components/applications/application/application.component.html @@ -1846,10 +1846,13 @@

ESTABLISHMENT TYPE


-

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.

-
+
+

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.

+ +
+
@@ -1865,17 +1868,20 @@

SERVICE -
-
-

The sum of occupant loads across all service areas does not match the total occupant load entered in the total occupant load field.

- -
-
- * - I affirm that the combined service area capacity exceeds the total occupant load. - -
+
+
+
+

The sum of occupant loads across all service areas does not match the total occupant load entered in the total occupant load field.

+ +
+ +
+ * + I affirm that the combined service area capacity exceeds the total occupant load. + +
+
diff --git a/cllc-public-app/ClientApp/src/app/components/applications/application/application.component.ts b/cllc-public-app/ClientApp/src/app/components/applications/application/application.component.ts index c4ba22b560..a15010042a 100644 --- a/cllc-public-app/ClientApp/src/app/components/applications/application/application.component.ts +++ b/cllc-public-app/ClientApp/src/app/components/applications/application/application.component.ts @@ -1126,6 +1126,7 @@ export class ApplicationComponent extends FormBase implements OnInit { valid = false; 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.'); @@ -1790,18 +1791,27 @@ 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 if(isExceeded){ - this.form.controls['totalOccupantLoadExceed'].enabled; + this.form.get('totalOccupantLoadExceed').enable(); this.showOccupantLoadCheckBox = true; }else{ - this.form.controls['totalOccupantLoadExceed'].disabled; + this.form.get('totalOccupantLoadExceed').disable(); this.showOccupantLoadCheckBox = false; - } return this.form.get('totalOccupantLoadExceed').value === true || isExceeded; } + +//Check if applicant is waiting for LG approcval or has been approved by LG. + //In this case do not block user to pay and submit if the fields are empty + hideOcupantLoadFields(): Boolean{ + return this.isOpenedByLGForApproval || this.lGHasApproved(); + } } diff --git a/cllc-public-app/ClientApp/src/app/components/sep/sep-application/summary/summary.component.html b/cllc-public-app/ClientApp/src/app/components/sep/sep-application/summary/summary.component.html index bf4b6c3e43..b3c9b31dd5 100644 --- a/cllc-public-app/ClientApp/src/app/components/sep/sep-application/summary/summary.component.html +++ b/cllc-public-app/ClientApp/src/app/components/sep/sep-application/summary/summary.component.html @@ -465,7 +465,7 @@

LIQUOR QUANTITIES

The LCRB investigates all credit card chargeback requests for fees and will dispute chargeback requests. A note will also be made on your LCRB account and there may be consequences for fraudulent requests.

@@ -553,7 +553,7 @@

Declaration

Application Approved!

You must pay these fees to get a special event permit. If you do not pay these fees, your application will not be valid and a licence will not be issued for your event.

-

In the event that the information on this application is no longer correct or if you wish to make additional changes, you may contact the LCRB or withdraw your application up to 24 hours before the event begins.

+

If the information on this application is no longer correct or if you wish to make additional changes, you may contact the LCRB or withdraw your application up to 24 hours before the event begins.