diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-10-18 16:11:17 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-10-18 16:11:17 +0700 |
| commit | 87ffd2fa7edc240693ddd81401ef23c5cd1bbb3e (patch) | |
| tree | 11aa10d3a811584f44a0c791fad8b517a4d819a2 /src-migrate/validations | |
| parent | ae0f75d48261ba2057dc0dd4492708f1e6e06522 (diff) | |
<iman> update fix kontak person
Diffstat (limited to 'src-migrate/validations')
| -rw-r--r-- | src-migrate/validations/tempo.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src-migrate/validations/tempo.ts b/src-migrate/validations/tempo.ts index 45cc8cd2..756bb722 100644 --- a/src-migrate/validations/tempo.ts +++ b/src-migrate/validations/tempo.ts @@ -41,6 +41,12 @@ export const TempoSchemaKontakPerson = z.object({ .refine((val) => /^\d{10,12}$/.test(val), { message: 'Format nomor telepon tidak valid, contoh: 081234567890', }), + purchasingMobile: z + .string() + .min(1, { message: 'Nomor telepon harus diisi' }) + .refine((val) => /^\d{10,12}$/.test(val), { + message: 'Format nomor telepon tidak valid, contoh: 081234567890', + }), direkturEmail: z .string() .min(1, { message: 'Email harus diisi' }) |
