From 135fc2d5d39a44e4f3f9649bfd3c658552e9c31e Mon Sep 17 00:00:00 2001 From: rstubryan Date: Sat, 25 Oct 2025 14:24:51 +0700 Subject: [PATCH] feat(FE-114): update MovementForm and RecordingForm to use inputPrefix and inputSuffix for improved input handling --- src/components/pages/inventory/movement/form/MovementForm.tsx | 4 ++-- .../pages/production/recording/form/RecordingForm.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/pages/inventory/movement/form/MovementForm.tsx b/src/components/pages/inventory/movement/form/MovementForm.tsx index 2f8c762f..9a2b3b97 100644 --- a/src/components/pages/inventory/movement/form/MovementForm.tsx +++ b/src/components/pages/inventory/movement/form/MovementForm.tsx @@ -1389,7 +1389,7 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => { allowNegative={false} thousandSeparator=',' decimalSeparator='.' - prefix="Rp " + inputPrefix="Rp" {...isRepeaterInputError( 'deliveries', 'delivery_cost', @@ -1413,7 +1413,7 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => { allowNegative={false} thousandSeparator=',' decimalSeparator='.' - prefix="Rp " + inputPrefix="Rp" {...isRepeaterInputError( 'deliveries', 'delivery_cost_per_item', diff --git a/src/components/pages/production/recording/form/RecordingForm.tsx b/src/components/pages/production/recording/form/RecordingForm.tsx index 1e7b053f..0a117f3a 100644 --- a/src/components/pages/production/recording/form/RecordingForm.tsx +++ b/src/components/pages/production/recording/form/RecordingForm.tsx @@ -799,7 +799,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { allowNegative={false} thousandSeparator=',' decimalSeparator='.' - suffix=" gram" + inputSuffix="gram" isError={ isRepeaterInputError('body_weights', 'weight', idx) .isError @@ -852,7 +852,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { allowNegative={false} thousandSeparator=',' decimalSeparator='.' - suffix=" gram" + inputSuffix="gram" isError={ isRepeaterInputError('body_weights', 'average_weight', idx) .isError