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, }, ],