From 7ec561888b3123a8d9a0b062727c562c9dbec2db Mon Sep 17 00:00:00 2001 From: Miqdad Date: Mon, 11 Aug 2025 12:15:15 +0700 Subject: change format validation --- src-migrate/validations/tempo.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src-migrate/validations') diff --git a/src-migrate/validations/tempo.ts b/src-migrate/validations/tempo.ts index 46ac1ef1..f0623b6a 100644 --- a/src-migrate/validations/tempo.ts +++ b/src-migrate/validations/tempo.ts @@ -13,7 +13,7 @@ export const TempoSchema = z.object({ .string() .min(1, { message: 'Nomor telepon harus diisi' }) .refine((val) => /^\d{10,12}$/.test(val), { - message: 'Format nomor telepon tidak valid, contoh: 081234567890', + message: 'Format nomor telepon tidak valid, contoh: 081234567890 atau 021234567890', }), bankName: z.string().min(1, { message: 'Nama bank harus diisi' }), accountName: z.string().min(1, { message: 'Nama rekening harus diisi' }), @@ -43,7 +43,7 @@ export const TempoSchemaKontakPerson = z .string() .min(1, { message: 'Nomor telepon harus diisi' }) .refine((val) => /^\d{10,12}$/.test(val), { - message: 'Format nomor telepon tidak valid, contoh: 081234567890', + message: 'Format nomor telepon tidak valid, contoh: 081234567890 atau 021234567890', }), purchasingTittle: z.string().min(1, { message: 'Tittle harus dipilih' }), financeTittle: z.string().min(1, { message: 'Tittle harus dipilih' }), @@ -51,7 +51,7 @@ export const TempoSchemaKontakPerson = z .string() .min(1, { message: 'Nomor telepon harus diisi' }) .refine((val) => /^\d{10,12}$/.test(val), { - message: 'Format nomor telepon tidak valid, contoh: 081234567890', + message: 'Format nomor telepon tidak valid, contoh: 081234567890 atau 021234567890', }), direkturEmail: z .string() @@ -100,13 +100,13 @@ export const TempoSchemaPengiriman = z.object({ .string() .min(1, { message: 'Nomor telepon harus diisi' }) .refine((val) => /^\d{10,12}$/.test(val), { - message: 'Format nomor telepon tidak valid, contoh: 081234567890', + message: 'Format nomor telepon tidak valid, contoh: 081234567890 atau 021234567890', }), invoicePicMobile: z .string() .min(1, { message: 'Nomor telepon harus diisi' }) .refine((val) => /^\d{10,12}$/.test(val), { - message: 'Format nomor telepon tidak valid, contoh: 081234567890', + message: 'Format nomor telepon tidak valid, contoh: 081234567890 atau 021234567890', }), invoicePicTittle: z.string().min(1, { message: 'Tittle harus dipilih' }), invoicePic: z.string().min(1, { message: 'Nama pic invoice harus diisi' }), @@ -145,7 +145,7 @@ export const TempoSchemaSupplier = z.object({ .string() .min(1, { message: 'Nomor telepon harus diisi' }) .refine((val) => /^\d{10,12}$/.test(val), { - message: 'Format nomor telepon tidak valid, contoh: 081234567890', + message: 'Format nomor telepon tidak valid, contoh: 081234567890 atau 021234567890', }), durasiTempo: z.string().min(1, { message: 'Durasi tempo harus diisi' }), creditLimit: z.string().min(1, { message: 'Limit Kredit harus diisi' }), -- cgit v1.2.3