diff --git a/src/views/inquiry/InquiryStep3.vue b/src/views/inquiry/InquiryStep3.vue index befda48..5946714 100644 --- a/src/views/inquiry/InquiryStep3.vue +++ b/src/views/inquiry/InquiryStep3.vue @@ -34,9 +34,12 @@ import { useStudioStore } from '@/stores/studio' * * The last chance to catch something before a reviewer's time is spent on it, * so the page leads with what is *wrong* rather than with what is there: empty - * addresses, missing foundation types, and every cross-field finding across the - * whole dossier collected into one list. Below that, the dossier as the - * reviewer will see it. + * addresses and every cross-field finding across the whole dossier collected + * into one list. Below that, the dossier as the reviewer will see it. + * + * A missing foundation type is *not* one of those wrongs — a sample records what + * the report observed, and plenty of reports observe an address without ever + * establishing its foundation type. */ const route = useRoute() const router = useRouter() @@ -86,10 +89,6 @@ const emptyAddresses = computed(() => samples.value.filter((s) => countFilledSampleFields(s) === 0), ) -const withoutFoundationType = computed(() => - samples.value.filter((s) => s.foundationType === null), -) - /** * Every cross-field finding in the dossier, tagged with the address it belongs * to. Collected here rather than left in the editor because this is the moment @@ -109,7 +108,6 @@ const isClean = computed( () => samples.value.length > 0 && !emptyAddresses.value.length && - !withoutFoundationType.value.length && !findings.value.length, ) @@ -136,9 +134,6 @@ async function submit() { if (emptyAddresses.value.length) { warnings.push(`${emptyAddresses.value.length} adres(sen) zijn nog helemaal leeg.`) } - if (withoutFoundationType.value.length) { - warnings.push(`${withoutFoundationType.value.length} adres(sen) missen een funderingstype.`) - } if (findings.value.length) { warnings.push(`${findings.value.length} waarde(n) zijn nog niet gecontroleerd.`) } @@ -210,8 +205,8 @@ useActionShortcuts((): Record void> => - Alle {{ samples.length }} adressen zijn gevuld, hebben een funderingstype en er zijn geen - waarden die elkaar tegenspreken. + Alle {{ samples.length }} adressen zijn gevuld en er zijn geen waarden die elkaar + tegenspreken. - - Zonder funderingstype werkt het adres niet door in de kaart en de producten. - - -