From 8976cd812d10b6f529ffd126a30871eb004ad969 Mon Sep 17 00:00:00 2001 From: Mattsson <111893710+mattssonn@users.noreply.github.com> Date: Tue, 17 Mar 2026 14:28:58 +0100 Subject: [PATCH] Vat onboarding fixes (#39) * fix: enhance validation for moms_period and conditionally set vat_number and moms_period based on vat_registered * Enhance preprocessing for first year fields, fiscal year end month, and accounting method in schema validation * fix: simplify schema validation by removing unnecessary preprocessors * fix: prevent setting invalid values in select components across multiple forms * fix: improve layout responsiveness and conditional rendering in onboarding steps --- app/(dashboard)/import/page.tsx | 14 +-------- components/bookkeeping/AccountCombobox.tsx | 10 +++++-- components/bookkeeping/AddAccountDialog.tsx | 2 +- components/customers/CustomerForm.tsx | 2 +- components/deadlines/DeadlineForm.tsx | 6 ++-- .../import/BankFileColumnMappingStep.tsx | 4 +-- .../onboarding/Step3TaxRegistration.tsx | 29 ++++++++++++------- components/onboarding/Step4PreliminaryTax.tsx | 7 +++-- components/onboarding/Step6ConnectBank.tsx | 4 +-- components/suppliers/SupplierForm.tsx | 4 +-- .../transactions/VatTreatmentSelect.tsx | 2 +- 11 files changed, 42 insertions(+), 42 deletions(-) diff --git a/app/(dashboard)/import/page.tsx b/app/(dashboard)/import/page.tsx index 2a4d4231..6552895c 100644 --- a/app/(dashboard)/import/page.tsx +++ b/app/(dashboard)/import/page.tsx @@ -786,20 +786,8 @@ export default function ImportPage() {
- {mode === null && ( + {mode === null && hasBankingExtension !== null && (