From 6528899aaf45b090cf958d08c42f3e5a1f360b23 Mon Sep 17 00:00:00 2001 From: ValdiANS Date: Tue, 27 Jan 2026 16:58:48 +0700 Subject: [PATCH] chore: adjust maxTotalQuantity error message --- .../form/TransferToLayingForm.schema.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/pages/production/transfer-to-laying/form/TransferToLayingForm.schema.ts b/src/components/pages/production/transfer-to-laying/form/TransferToLayingForm.schema.ts index 70886d8d..7b362709 100644 --- a/src/components/pages/production/transfer-to-laying/form/TransferToLayingForm.schema.ts +++ b/src/components/pages/production/transfer-to-laying/form/TransferToLayingForm.schema.ts @@ -59,7 +59,8 @@ export const TransferToLayingFormSchema: Yup.ObjectSchema `Kuantitas maksimal ${formatNumber(max)}!` + ({ max }) => + `Kuantitas melebihi kapasitas kandang tujuan. Kuantitas maksimal ${formatNumber(max, 'en-US')}!` ) .required('Jumlah transfer wajib diisi!'), @@ -79,7 +80,7 @@ export const TransferToLayingFormSchema: Yup.ObjectSchema `Kuantitas maksimal ${formatNumber(max)}!` + ({ max }) => `Kuantitas maksimal ${formatNumber(max, 'en-US')}!` ) .required('Kuantitas wajib diisi!'), @@ -101,7 +102,8 @@ export const TransferToLayingFormSchema: Yup.ObjectSchema `Kuantitas maksimal ${formatNumber(max)}!` + ({ max }) => + `Kuantitas melebihi kapasitas kandang tujuan. Maks: ${formatNumber(max, 'en-US')}!` ) .required('Kuantitas wajib diisi!'),