From 8e8835589499a81ae4c5b48701bb87bb5f9ead0c Mon Sep 17 00:00:00 2001 From: rstubryan Date: Wed, 31 Dec 2025 09:43:05 +0700 Subject: [PATCH] refactor(FE-441): Refactor RecordingForm layout and labels --- .../recording/form/RecordingForm.tsx | 100 +++++++----------- 1 file changed, 38 insertions(+), 62 deletions(-) diff --git a/src/components/pages/production/recording/form/RecordingForm.tsx b/src/components/pages/production/recording/form/RecordingForm.tsx index 127af83d..3a6f8071 100644 --- a/src/components/pages/production/recording/form/RecordingForm.tsx +++ b/src/components/pages/production/recording/form/RecordingForm.tsx @@ -1599,18 +1599,6 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { : '-'} - - Cum. Intake (KG) - - - {initialValues.cum_intake && - initialValues.cum_intake > 0 - ? formatNumber(initialValues.cum_intake) - : '-'} - - - - - @@ -1627,12 +1615,6 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { - - - @@ -1657,20 +1633,6 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { - - - - - - - + + - + + + + + + + + + + +
- DEPLESI HARIAN - {
- Total - - (%) - Total
- - {initialValues.hand_day && - initialValues.hand_day > 0 - ? formatNumber(initialValues.hand_day) - : '-'} - - - {initialValues.hand_day_std !== undefined && - initialValues.hand_day_std > 0 - ? `${initialValues.hand_day_std}%` - : '-'} - {initialValues.total_depletion_qty && @@ -1686,28 +1648,6 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { : '-'}
- - {initialValues.hand_house && - initialValues.hand_house > 0 - ? formatNumber(initialValues.hand_house) - : '-'} - - - {initialValues.hand_house_std !== undefined && - initialValues.hand_house_std > 0 - ? `${initialValues.hand_house_std}%` - : '-'} - - - -
{ > Total Ayam
{
- Produksi Telur + Produksi
@@ -1755,7 +1697,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
Egg MeshEgg Mass {initialValues.egg_mesh && @@ -1790,6 +1732,40 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { : '-'}
Hen Day + + {initialValues.hand_day && + initialValues.hand_day > 0 + ? formatNumber(initialValues.hand_day) + : '-'} + + + {initialValues.hand_day_std !== undefined && + initialValues.hand_day_std > 0 + ? `${initialValues.hand_day_std}%` + : '-'} +
Hen House + + {initialValues.hand_house && + initialValues.hand_house > 0 + ? formatNumber(initialValues.hand_house) + : '-'} + + + {initialValues.hand_house_std !== undefined && + initialValues.hand_house_std > 0 + ? `${initialValues.hand_house_std}%` + : '-'} +