Skip to content

Commit

Permalink
QS Transfer Date Limitations (#2020)
Browse files Browse the repository at this point in the history
* QS Transfer Date Restrictions

* lint fixes
  • Loading branch information
cameron-eyds authored Sep 10, 2024
1 parent a98032b commit bde1a08
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ppr-ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": "3.2.53",
"version": "3.2.54",
"private": true,
"appName": "Assets UI",
"sbcName": "SBC Common Components",
Expand Down
7 changes: 6 additions & 1 deletion ppr-ui/src/components/mhrTransfers/TransferDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
:errorMsg="showFormError &&
(!isTransferNonGiftBillOfSale && !transferDate) ? 'Enter bill of sale date of execution' : ''"
:initialValue="transferDate"
:maxDate="isRoleQualifiedSupplier ? localTodayDate(new Date(), true) : null"
data-test-id="transfer-date"
@emitDate="transferDate = $event"
@emitCancel="transferDate = null"
Expand Down Expand Up @@ -160,6 +161,7 @@ import { useInputRules, useTransferOwners } from '@/composables'
import { InputFieldDatePicker } from '@/components/common'
import { FormIF } from '@/interfaces'
import { storeToRefs } from 'pinia'
import { localTodayDate } from '@/utils'
export default defineComponent({
name: 'TransferDetails',
Expand Down Expand Up @@ -189,7 +191,8 @@ export default defineComponent({
getMhrTransferDeclaredValue,
getMhrTransferConsideration,
getMhrTransferDate,
getMhrTransferOwnLand
getMhrTransferOwnLand,
isRoleQualifiedSupplier
} = storeToRefs(useStore())
const {
isTransferDueToDeath,
Expand Down Expand Up @@ -262,6 +265,8 @@ export default defineComponent({
})
return {
localTodayDate,
isRoleQualifiedSupplier,
isNotNull,
considerationRef,
isTransferDueToDeath,
Expand Down
2 changes: 1 addition & 1 deletion ppr-ui/src/components/search/SearchBarList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
<!-- Grouped List Items -->
<template v-if="item.raw.class === 'search-list-header'">
<v-list-item
ref="mhrSearchHeaderRef"
class="py-2"
:class="{ 'top-border' : item.raw.icon === 'mdi-home' }"
ref="mhrSearchHeaderRef"
@click="toggleGroup(item.raw.group)"
>
<v-row
Expand Down
2 changes: 1 addition & 1 deletion ppr-ui/src/components/tables/SearchHistory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
{{ headers[7].text }}
</span>
<span v-if="!item.inProgress || isSearchOwner(item)">
{{ item.selectedResultsSize }}
{{ item.selectedResultsSize }}
</span>
<span
v-else
Expand Down

0 comments on commit bde1a08

Please sign in to comment.