summaryrefslogtreecommitdiff
path: root/src-migrate/validations
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-08-12 09:38:20 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-08-12 09:38:20 +0700
commit5d12d9f89f25b8bceb6d914dfef0581321b726ed (patch)
tree896d691f03606b4ca6551335e0750aee906dc90f /src-migrate/validations
parent3b92b629711f9afce8d7678814160e800d7211e0 (diff)
<miqdad> PIC num cannot be same
Diffstat (limited to 'src-migrate/validations')
-rw-r--r--src-migrate/validations/tempo.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src-migrate/validations/tempo.ts b/src-migrate/validations/tempo.ts
index 38380d5a..b2239d8c 100644
--- a/src-migrate/validations/tempo.ts
+++ b/src-migrate/validations/tempo.ts
@@ -202,8 +202,8 @@ export const TempoSchemaPengiriman = z
message:
'Format nomor telepon tidak valid, contoh: 081234567890 atau 021234567890',
}),
+ })
+ .refine((data) => data.PICBarangMobile !== data.invoicePicMobile, {
+ message: 'Nomor HP PIC Barang tidak boleh sama dengan Nomor HP PIC Invoice',
+ path: ['invoicePicMobile', 'PICBarangMobile'],
});
- // .refine((data) => data.PICBarangMobile !== data.invoicePicMobile, {
- // message: 'Nomor HP PIC Barang tidak boleh sama dengan Nomor HP PIC Invoice',
- // path: ['invoicePicMobile'], // error akan tampil di bawah field invoicePicMobile
- // });