diff --git a/.gitignore b/.gitignore index e47b8ec3..9e1fadc8 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,6 @@ next-env.d.ts # claude .claude + +# rtk +rtk.exe diff --git a/src/components/pages/production/recording/form/RecordingForm.schema.ts b/src/components/pages/production/recording/form/RecordingForm.schema.ts index 2a78ffe0..e4cf7a49 100644 --- a/src/components/pages/production/recording/form/RecordingForm.schema.ts +++ b/src/components/pages/production/recording/form/RecordingForm.schema.ts @@ -71,7 +71,7 @@ const StockObjectSchema: Yup.ObjectSchema = Yup.object({ .typeError('Produk harus berupa angka!'), qty: Yup.number() .required('Jumlah penggunaan wajib diisi!') - .min(1, 'Jumlah penggunaan tidak boleh 0!') + .moreThan(0, 'Jumlah penggunaan harus lebih dari 0!') .typeError('Jumlah penggunaan harus berupa angka!'), });