refactor(FE-114): add currency prefix and unit suffix to delivery cost and body weight inputs

This commit is contained in:
rstubryan
2025-10-25 13:53:53 +07:00
parent 81ce36e326
commit a0556ea1f4
2 changed files with 4 additions and 0 deletions
@@ -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',
@@ -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