Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion ppr-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ppr-ui",
"version": "6.0.7",
"version": "6.0.8",
"private": true,
"appName": "Assets UI",
"connectLayerName": "Core UI",
Expand Down
4 changes: 2 additions & 2 deletions ppr-ui/src/components/mhrTransfers/TransferType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ export default defineComponent({
: StaffTransferTypesOrg
case isRoleQualifiedSupplierLawyersNotaries.value:
return isMiscTransfersEnabled
? QualifiedSupplierTransferTypes.filter(item =>
? QualifiedSupplierTransferTypes().filter(item =>
localState.displayGroup[item.group] || item.class === 'transfer-type-list-header')
: QualifiedSupplierTransferTypes
: QualifiedSupplierTransferTypes()
default:
return ClientTransferTypes
}
Expand Down
2 changes: 1 addition & 1 deletion ppr-ui/src/composables/mhrInformation/useMhrInformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export const useMhrInformation = () => {
case isRoleStaffReg.value:
return StaffTransferTypes
case isRoleQualifiedSupplierLawyersNotaries.value:
return QualifiedSupplierTransferTypes
return QualifiedSupplierTransferTypes()
default:
return ClientTransferTypes
}
Expand Down
166 changes: 34 additions & 132 deletions ppr-ui/src/resources/transferTypes.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,10 @@
import type { TransferTypeSelectIF } from '@/interfaces'
import { ApiTransferTypes, UITransferTypes } from '@/enums/transferTypes'
import { BlankSearchTypes } from '@/enums'
import { getFeatureFlag } from '@/utils'

export const StaffTransferTypesOrg: Array<TransferTypeSelectIF> = [
{
class: 'transfer-type-list-header',
disabled: true,
divider: false,
group: 1,
transferType: BlankSearchTypes.BLANK1 as any,
textLabel: 'Transfer' as any,
color: 'primary'
},
{
divider: false,
disabled: false,
transferType: ApiTransferTypes.SALE_OR_GIFT,
textLabel: UITransferTypes.SALE_OR_GIFT,
group: 1,
tooltip: {
title: 'Supporting Documents Required',
bullets: ['Ownership Transfer or Change form', 'Bill of Sale']
}
},

const transferDueToDeathTypes: Array<TransferTypeSelectIF> = [
{
class: 'transfer-type-list-header',
disabled: true,
Expand Down Expand Up @@ -93,6 +75,30 @@ export const StaffTransferTypesOrg: Array<TransferTypeSelectIF> = [
}
]

export const StaffTransferTypesOrg: Array<TransferTypeSelectIF> = [
{
class: 'transfer-type-list-header',
disabled: true,
divider: false,
group: 1,
transferType: BlankSearchTypes.BLANK1 as any,
textLabel: 'Transfer' as any,
color: 'primary'
},
{
divider: false,
disabled: false,
transferType: ApiTransferTypes.SALE_OR_GIFT,
textLabel: UITransferTypes.SALE_OR_GIFT,
group: 1,
tooltip: {
title: 'Supporting Documents Required',
bullets: ['Ownership Transfer or Change form', 'Bill of Sale']
}
},
...transferDueToDeathTypes
]

export const StaffTransferTypes: Array<TransferTypeSelectIF> = [
// Bill Of Sale Transfers
{
Expand Down Expand Up @@ -206,74 +212,7 @@ export const StaffTransferTypes: Array<TransferTypeSelectIF> = [
},

// Transfers Due to Death
{
class: 'transfer-type-list-header',
disabled: true,
divider: false,
group: 2,
transferType: BlankSearchTypes.BLANK2 as any,
textLabel: 'Transfers Due to Death' as any,
color: 'primary'
},
{
divider: false,
disabled: false,
transferType: ApiTransferTypes.SURVIVING_JOINT_TENANT,
textLabel: UITransferTypes.SURVIVING_JOINT_TENANT,
group: 2,
tooltip: {
title: 'Supporting Documents Required',
bullets: ['Ownership Transfer or Change form',
'Original or certified copy of death certificate issued from Canada or the United States.']
}
},
{
divider: false,
disabled: false,
transferType: ApiTransferTypes.TO_EXECUTOR_PROBATE_WILL,
textLabel: UITransferTypes.TO_EXECUTOR_PROBATE_WILL,
group: 2,
tooltip: {
title: 'Supporting Documents Required',
bullets: ['Ownership Transfer or Change form',
'Court certified true copy of the Grant of Probate with the will attached.',
'Original or certified copy of death certificate issued from Canada or the United States ' +
'for deceased joint tenants, if any, except for the person who last died. ']
}
},
{
divider: false,
disabled: false,
transferType: ApiTransferTypes.TO_EXECUTOR_UNDER_25K_WILL,
textLabel: UITransferTypes.TO_EXECUTOR_UNDER_25K_WILL,
group: 2,
tooltip: {
title: 'Supporting Documents Required',
bullets: ['Ownership Transfer or Change form',
'Original signed Affidavit of Executor form',
'Certified true copy of will',
'Original or certified copy of death certificate issued from Canada or the United States.'
],
note: 'Value of the estate must be no more than $25,000, ' +
'including the total value of the manufactured home.'
}
},
{
divider: false,
disabled: false,
transferType: ApiTransferTypes.TO_ADMIN_NO_WILL,
textLabel: UITransferTypes.TO_ADMIN_NO_WILL,
group: 2,
tooltip: {
title: 'Supporting Documents Required',
bullets: ['Ownership Transfer or Change form',
'Certified true copy of Grant of Administration issued by the court',
'Affidavit of Administration with list of Assets and Liabilities',
'Original or certified copy of death certificate issued from Canada or the United States ' +
'for deceased joint tenants, if any, except for the person who last died.'
]
}
},
...transferDueToDeathTypes,

// Other Transfers
{
Expand Down Expand Up @@ -477,46 +416,9 @@ export const ClientTransferTypes: Array<TransferTypeSelectIF> = [
}
]

export const QualifiedSupplierTransferTypes: Array<TransferTypeSelectIF> = [
{
class: 'transfer-type-list-header',
disabled: true,
divider: false,
group: 1,
transferType: BlankSearchTypes.BLANK1 as any,
textLabel: 'Transfer' as any,
color: 'primary'
},
{
divider: false,
disabled: false,
transferType: ApiTransferTypes.SALE_OR_GIFT,
textLabel: UITransferTypes.SALE_OR_GIFT,
group: 1,
tooltip: {
title: 'Supporting Documents Required',
bullets: ['Ownership Transfer or Change form', 'Bill of Sale']
}
},
{
class: 'transfer-type-list-header',
disabled: true,
divider: false,
group: 2,
transferType: BlankSearchTypes.BLANK2 as any,
textLabel: 'Transfer Due to Death' as any,
color: 'primary'
},
{
divider: false,
disabled: false,
transferType: ApiTransferTypes.SURVIVING_JOINT_TENANT,
textLabel: UITransferTypes.SURVIVING_JOINT_TENANT,
group: 2,
tooltip: {
title: 'Supporting Documents Required',
bullets: ['Ownership Transfer or Change form',
'Original or certified copy of death certificate issued from Canada or the United States.']
}
}
]
export const QualifiedSupplierTransferTypes = (): Array<TransferTypeSelectIF> => {
return [
...ClientTransferTypes,
...(getFeatureFlag('mhr-transfer-enable-tod') ? transferDueToDeathTypes : [])
]
}
1 change: 1 addition & 0 deletions ppr-ui/src/utils/feature-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { initialize } from 'launchdarkly-js-client-sdk'
export const defaultFlagSet: LDFlagSet = {
'enable-manage-party-codes': false,
'enable-analyst-queue': false,
'mhr-transfer-enable-tod': false,
'banner-text': '' // by default, there is no banner text
}
/**
Expand Down
2 changes: 1 addition & 1 deletion ppr-ui/tests/unit/MhrInformation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ describe.skip('Mhr Information', async () => {
await store.setUserProductSubscriptionsCodes([ProductCode.LAWYERS_NOTARIES])
await nextTick()

expect(transferTypeComponent.vm.transferTypesSelector).toStrictEqual(QualifiedSupplierTransferTypes)
expect(transferTypeComponent.vm.transferTypesSelector).toStrictEqual(QualifiedSupplierTransferTypes())
// reset staff role
await store.setAuthRoles([AuthRoles.MHR])
})
Expand Down
Loading