fix(FE): fixing unit production standard

This commit is contained in:
randy-ar
2026-01-20 14:39:44 +07:00
parent defbcd9867
commit fc785bc63c
@@ -367,7 +367,7 @@ const ProductionStandardForm = ({
accessorFn: (row) => accessorFn: (row) =>
row.production_standard_details?.target_hen_house_production, row.production_standard_details?.target_hen_house_production,
cell: ({ row }) => cell: ({ row }) =>
`${row.original.production_standard_details?.target_hen_house_production} pc`, `${row.original.production_standard_details?.target_hen_house_production} btr`,
enableSorting: false, enableSorting: false,
}, },
{ {
@@ -383,7 +383,7 @@ const ProductionStandardForm = ({
accessorFn: (row) => accessorFn: (row) =>
row.production_standard_details?.target_egg_mass, row.production_standard_details?.target_egg_mass,
cell: ({ row }) => cell: ({ row }) =>
`${row.original.production_standard_details?.target_egg_mass} g`, `${row.original.production_standard_details?.target_egg_mass} kg`,
enableSorting: false, enableSorting: false,
}, },
{ {
@@ -958,7 +958,7 @@ const ProductionStandardForm = ({
} }
onChange={repeaterFormik.handleChange} onChange={repeaterFormik.handleChange}
onBlur={repeaterFormik.handleBlur} onBlur={repeaterFormik.handleBlur}
bottomLabel='Butir (pc)' bottomLabel='Butir (btr)'
errorMessage={getProductionDetailsError( errorMessage={getProductionDetailsError(
repeaterFormik.errors repeaterFormik.errors
.production_standard_details, .production_standard_details,
@@ -1015,7 +1015,7 @@ const ProductionStandardForm = ({
name='production_standard_details.target_egg_mass' name='production_standard_details.target_egg_mass'
label='Egg Mass' label='Egg Mass'
placeholder='1' placeholder='1'
bottomLabel='Gram (g)' bottomLabel='Kg (kg)'
value={ value={
repeaterFormik.values repeaterFormik.values
.production_standard_details?.target_egg_mass .production_standard_details?.target_egg_mass
@@ -1176,7 +1176,7 @@ const ProductionStandardForm = ({
} }
onChange={repeaterFormik.handleChange} onChange={repeaterFormik.handleChange}
onBlur={repeaterFormik.handleBlur} onBlur={repeaterFormik.handleBlur}
bottomLabel='Gram/Ekor (g)' bottomLabel='Gram (g)'
endAdornment endAdornment
errorMessage={ errorMessage={
repeaterFormik.errors repeaterFormik.errors