summaryrefslogtreecommitdiff
path: root/src-migrate/validations
diff options
context:
space:
mode:
Diffstat (limited to 'src-migrate/validations')
-rw-r--r--src-migrate/validations/tempo.ts12
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' }),