@@ -125,7 +134,7 @@ const getCompPartyName = computed(() => {
>
{
return
}
if (propertyTypeFeeTriggers.value.isEntireHomeAndPrincipalResidence) {
+ hostFee3.value.quantity = 1
removeFee(StrrFeeCode.STR_HOST_2)
addReplaceFee(hostFee1.value)
} else if (propertyTypeFeeTriggers.value.isEntireHomeAndNotPrincipalResidence) {
@@ -62,15 +63,15 @@ const setFeeBasedOnProperty = () => {
removeFee(StrrFeeCode.STR_HOST_1)
removeFee(StrrFeeCode.STR_HOST_2)
hostFee3.value.quantity = unitDetails.value.numberOfRoomsForRent || 1
- hostFee3.value.quantityDesc = hostFee3.value.quantity > 1
- ? t('strr.word.room', hostFee3.value.quantity)
- : undefined
addReplaceFee(hostFee3.value)
} else {
// set placeholder
removeFee(StrrFeeCode.STR_HOST_1)
removeFee(StrrFeeCode.STR_HOST_2)
}
+ hostFee3.value.quantityDesc = hostFee3.value.quantity !== undefined && hostFee3.value.quantity > 1
+ ? t('strr.word.room', hostFee3.value.quantity)
+ : undefined
}
// manage fees only when typeofspace and rentalUnitSetupType change
diff --git a/strr-host-pm-web/app/stores/document.ts b/strr-host-pm-web/app/stores/document.ts
index 466e55b6..4caf6b37 100644
--- a/strr-host-pm-web/app/stores/document.ts
+++ b/strr-host-pm-web/app/stores/document.ts
@@ -65,7 +65,7 @@ export const useDocumentStore = defineStore('host/document', () => {
})
}
- if (propStore.unitDetails.ownershipType === OwnershipType.RENT) {
+ if (propStore.unitDetails.ownershipType === OwnershipType.RENT && reqs.isPrincipalResidenceRequired && exemptionReason === undefined) {
const isRentValid = apiDocuments.value.some(
item => [DocumentUploadType.TENANCY_AGREEMENT, DocumentUploadType.RENT_RECEIPT_OR_BANK_STATEMENT]
.includes(item.documentType)
@@ -255,11 +255,15 @@ export const useDocumentStore = defineStore('host/document', () => {
}
function validatePrincipalResidenceDocuments (): boolean {
- // either 2 unique docs from this list are required
- const uniqueColumnADocs = [
+ // bc id cards only count as 1 document
+ const bcIdDocs = [
DocumentUploadType.BC_DRIVERS_LICENSE,
DocumentUploadType.BCSC,
- DocumentUploadType.COMBINED_BCSC_LICENSE,
+ DocumentUploadType.COMBINED_BCSC_LICENSE
+ ]
+
+ // either 2 unique docs from this list are required
+ const uniqueColumnADocs = [
DocumentUploadType.PROPERTY_ASSESSMENT_NOTICE,
DocumentUploadType.SPEC_TAX_CONFIRMATION,
DocumentUploadType.HOG_DECLARATION
@@ -299,8 +303,14 @@ export const useDocumentStore = defineStore('host/document', () => {
// get non-unique column b docs
const columnBFilteredNonUnique = apiDocuments.value.filter(item => nonUniqueColumnBDocs.includes(item.documentType))
+
+ // get bc id docs
+ const bcIdDocsExist = apiDocuments.value.some((doc) => bcIdDocs.includes(doc.documentType))
+ // only count bcid docs as 1 document
+ const bcIdDocCount = bcIdDocsExist ? 1 : 0
+
// get doc count
- const columnACount = columnAFilteredUnique.length
+ const columnACount = columnAFilteredUnique.length + bcIdDocCount
const columnBCount = columnBFilteredUnique.length + columnBFilteredNonUnique.length
// validate at least 2 of column a docs OR validate at least 1 of column a and 2 of column b
diff --git a/strr-host-pm-web/app/stores/hostOwner.ts b/strr-host-pm-web/app/stores/hostOwner.ts
index 461ae5e6..d55bde81 100644
--- a/strr-host-pm-web/app/stores/hostOwner.ts
+++ b/strr-host-pm-web/app/stores/hostOwner.ts
@@ -32,7 +32,9 @@ export const useHostOwnerStore = defineStore('host/owner', () => {
dateOfBirth: type === OwnerType.INDIVIDUAL && role === OwnerRole.HOST
? getRequiredNonEmptyString(t('validation.dateOfBirth'))
: optionalOrEmptyString,
- taxNumber: getOptionalSin(t('validation.sin'))
+ taxNumber: type === OwnerType.INDIVIDUAL && role === OwnerRole.HOST
+ ? getRequiredSin(t('validation.sin'))
+ : optionalOrEmptyString
})
}
diff --git a/strr-host-pm-web/package.json b/strr-host-pm-web/package.json
index 5a85896e..d1ec5f46 100644
--- a/strr-host-pm-web/package.json
+++ b/strr-host-pm-web/package.json
@@ -2,7 +2,7 @@
"name": "strr-host-pm-web",
"private": true,
"type": "module",
- "version": "0.0.21",
+ "version": "0.0.22",
"scripts": {
"build-check": "nuxt build",
"build": "nuxt generate",
diff --git a/strr-platform-web/package.json b/strr-platform-web/package.json
index 0bfb5cd7..dd263446 100644
--- a/strr-platform-web/package.json
+++ b/strr-platform-web/package.json
@@ -2,7 +2,7 @@
"name": "strr-platform-web",
"private": true,
"type": "module",
- "version": "0.0.31",
+ "version": "0.0.32",
"scripts": {
"build-check": "nuxt build",
"build": "nuxt generate",
diff --git a/strr-strata-web/package.json b/strr-strata-web/package.json
index 01603862..666f3e83 100644
--- a/strr-strata-web/package.json
+++ b/strr-strata-web/package.json
@@ -2,7 +2,7 @@
"name": "strr-strata-web",
"private": true,
"type": "module",
- "version": "0.0.31",
+ "version": "0.0.32",
"scripts": {
"build-check": "nuxt build",
"build": "nuxt generate",