diff --git a/prime-angular-frontend/src/app/modules/site-registration/pages/business-licence-renewal-page/business-licence-renewal-page.component.html b/prime-angular-frontend/src/app/modules/site-registration/pages/business-licence-renewal-page/business-licence-renewal-page.component.html index ecd2a77aaf..cf39508e5c 100644 --- a/prime-angular-frontend/src/app/modules/site-registration/pages/business-licence-renewal-page/business-licence-renewal-page.component.html +++ b/prime-angular-frontend/src/app/modules/site-registration/pages/business-licence-renewal-page/business-licence-renewal-page.component.html @@ -30,7 +30,8 @@ - + diff --git a/prime-angular-frontend/src/app/modules/site-registration/pages/business-licence-renewal-page/business-licence-renewal-page.component.ts b/prime-angular-frontend/src/app/modules/site-registration/pages/business-licence-renewal-page/business-licence-renewal-page.component.ts index 18e0894a62..64e990d45a 100644 --- a/prime-angular-frontend/src/app/modules/site-registration/pages/business-licence-renewal-page/business-licence-renewal-page.component.ts +++ b/prime-angular-frontend/src/app/modules/site-registration/pages/business-licence-renewal-page/business-licence-renewal-page.component.ts @@ -124,10 +124,11 @@ export class BusinessLicenceRenewalPageComponent extends AbstractCommunitySiteRe protected performSubmission(): Observable { // Transfer business licence renewal updates // to the form state service for submission - const { businessLicenceGuid, businessLicenceExpiry, filename } = this.siteFormStateService.businessLicenceFormState; + const { businessLicenceGuid, businessLicenceExpiry, filename, deferredLicenceReason } = this.siteFormStateService.businessLicenceFormState; businessLicenceGuid.patchValue(this.formState.businessLicenceGuid.value); businessLicenceExpiry.patchValue(this.formState.businessLicenceExpiry.value); filename.patchValue(this.formState.filename.value); + deferredLicenceReason.patchValue(""); this.siteFormStateService.businessLicenceFormState.flagBusinessLicenceUpdated(); diff --git a/prime-angular-frontend/src/app/modules/site-registration/pages/overview-page/overview-page.component.html b/prime-angular-frontend/src/app/modules/site-registration/pages/overview-page/overview-page.component.html index 1aa2d4adb4..8abe45c3c1 100644 --- a/prime-angular-frontend/src/app/modules/site-registration/pages/overview-page/overview-page.component.html +++ b/prime-angular-frontend/src/app/modules/site-registration/pages/overview-page/overview-page.component.html @@ -3,7 +3,8 @@ - + diff --git a/prime-angular-frontend/src/app/shared/components/site/overview-container/overview-container.component.html b/prime-angular-frontend/src/app/shared/components/site/overview-container/overview-container.component.html index 6329cd30af..d96c71f548 100644 --- a/prime-angular-frontend/src/app/shared/components/site/overview-container/overview-container.component.html +++ b/prime-angular-frontend/src/app/shared/components/site/overview-container/overview-container.component.html @@ -97,7 +97,8 @@ - + @@ -232,4 +233,4 @@ (route)="onRouteRelative($event)"> - + \ No newline at end of file diff --git a/prime-dotnet-webapi/Controllers/SitesController.cs b/prime-dotnet-webapi/Controllers/SitesController.cs index 8be3fe2c74..d49c6544e3 100755 --- a/prime-dotnet-webapi/Controllers/SitesController.cs +++ b/prime-dotnet-webapi/Controllers/SitesController.cs @@ -422,6 +422,7 @@ private async Task HandleBusinessLicenseUpdateAsync(CommunitySite site, Si var licenceDto = _mapper.Map(existingLicence); licenceDto.Id = 0; licenceDto.ExpiryDate = newLicence.ExpiryDate; + licenceDto.DeferredLicenceReason = newLicence.DeferredLicenceReason; var licence = await _communitySiteService.AddBusinessLicenceAsync(site.Id, licenceDto, newLicence.DocumentGuid.Value); return licence != null;