From 41e6848d7522c5e590e80b501840185fe6203d68 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Fri, 24 Oct 2025 10:08:38 +0700 Subject: [PATCH] refactor(FE-114): remove optional product_warehouse_id validation from RecordingForm schema --- .../pages/production/recording/form/RecordingForm.schema.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/pages/production/recording/form/RecordingForm.schema.ts b/src/components/pages/production/recording/form/RecordingForm.schema.ts index b00e9363..59afbd61 100644 --- a/src/components/pages/production/recording/form/RecordingForm.schema.ts +++ b/src/components/pages/production/recording/form/RecordingForm.schema.ts @@ -59,10 +59,6 @@ export const RecordingFormSchema = Yup.object({ depletions: Yup.array() .of( Yup.object({ - product_warehouse_id: Yup.number() - .optional() - .min(1, 'Produk wajib diisi!') - .typeError('Produk harus berupa angka!'), total: Yup.number() .required('Jumlah depletions wajib diisi!') .min(1, 'Jumlah depletions minimal 1!') @@ -110,7 +106,7 @@ export const getRecordingFormInitialValues = ( ) ?? [ { weight: 0, - qty: 1, + qty: 0, average_weight: 0, }, ],