diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-11 12:15:15 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-11 12:15:15 +0700 |
| commit | 7ec561888b3123a8d9a0b062727c562c9dbec2db (patch) | |
| tree | dd004e69e4a3e96437fbd2529e7b9d734fe0d8c1 /src-migrate | |
| parent | b124b1acd597889c6e4de6b0f8585d63d8cb8575 (diff) | |
<miqdad> change format validation
Diffstat (limited to 'src-migrate')
| -rw-r--r-- | src-migrate/validations/tempo.ts | 12 |
1 files changed, 6 insertions, 6 deletions
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' }), |
