diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-12 09:38:20 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-12 09:38:20 +0700 |
| commit | 5d12d9f89f25b8bceb6d914dfef0581321b726ed (patch) | |
| tree | 896d691f03606b4ca6551335e0750aee906dc90f | |
| parent | 3b92b629711f9afce8d7678814160e800d7211e0 (diff) | |
<miqdad> PIC num cannot be same
| -rw-r--r-- | src-migrate/validations/tempo.ts | 8 |
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 - // }); |
