CASH-699 do not allow future dates for date of loss

CASH-699 do not allow future dates for date of loss
This commit is contained in:
CarlNation 2026-05-07 13:08:12 -04:00
parent 65a1712fc4
commit 0cccbb2db1
2 changed files with 11 additions and 1 deletions

View file

@ -27,6 +27,7 @@
:max-date="maxDate"
:auto-apply="autoApply"
:text-input="textInput"
:prevent-min-max-navigation="preventMinMaxNavigation"
:teleport="true"
:aria-labels="{ input: questionText }"
@update:model-value="onDateChange"
@ -106,6 +107,10 @@ export default {
type: Boolean,
default: false,
},
preventMinMaxNavigation: {
type: Boolean,
default: false,
},
questionAlignment: String,
labelBold: {
type: Boolean,

View file

@ -40,7 +40,9 @@
modelType="MM/dd/yyyy"
:enableTimePicker="false"
:clearable="false"
:textInput="true" />
:textInput="true"
:maxDate="today"
:preventMinMaxNavigation="true" />
<textboxQuestion
v-if="displayClaimNumber"
@ -198,6 +200,9 @@ export default {
},
computed: {
today() {
return new Date();
},
displayClaimNumber() {
const order = store.getters.order;