From a0556ea1f471c51ffd9cea2a2f25564b1d89df7e Mon Sep 17 00:00:00 2001 From: rstubryan Date: Sat, 25 Oct 2025 13:53:53 +0700 Subject: [PATCH] refactor(FE-114): add currency prefix and unit suffix to delivery cost and body weight inputs --- src/components/pages/inventory/movement/form/MovementForm.tsx | 2 ++ .../pages/production/recording/form/RecordingForm.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/components/pages/inventory/movement/form/MovementForm.tsx b/src/components/pages/inventory/movement/form/MovementForm.tsx index 7cd5bb50..2f8c762f 100644 --- a/src/components/pages/inventory/movement/form/MovementForm.tsx +++ b/src/components/pages/inventory/movement/form/MovementForm.tsx @@ -1389,6 +1389,7 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => { allowNegative={false} thousandSeparator=',' decimalSeparator='.' + prefix="Rp " {...isRepeaterInputError( 'deliveries', 'delivery_cost', @@ -1412,6 +1413,7 @@ const MovementForm = ({ type = 'add', initialValues }: MovementFormProps) => { allowNegative={false} thousandSeparator=',' decimalSeparator='.' + prefix="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 deaffc9a..1e7b053f 100644 --- a/src/components/pages/production/recording/form/RecordingForm.tsx +++ b/src/components/pages/production/recording/form/RecordingForm.tsx @@ -799,6 +799,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { allowNegative={false} thousandSeparator=',' decimalSeparator='.' + suffix=" gram" isError={ isRepeaterInputError('body_weights', 'weight', idx) .isError @@ -851,6 +852,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { allowNegative={false} thousandSeparator=',' decimalSeparator='.' + suffix=" gram" isError={ isRepeaterInputError('body_weights', 'average_weight', idx) .isError