Fixed user issues (#559)

* Fixed user issues

* feat: add personal_number column to customers for individual identification

* feat: add personal_number field to makeCustomer function for enhanced customer identification

* feat: add personal_number column with constraint check for customer identification
This commit is contained in:
Mattsson
2026-05-22 12:22:15 +02:00
committed by GitHub
parent b34de598e3
commit 64bbeb4021
25 changed files with 1376 additions and 133 deletions
+5
View File
@@ -261,6 +261,11 @@ export const CreateCustomerSchema = z.object({
country: z.string().optional(),
org_number: z.string().optional(),
vat_number: z.string().optional(),
personal_number: z
.string()
.regex(/^(\d{6}|\d{8})[-+]?\d{4}$/, 'Invalid personal number')
.optional()
.nullable(),
default_payment_terms: z.number().int().positive().optional(),
notes: z.string().optional(),
})