diff --git a/src/components/pages/production/recording/form/RecordingForm.tsx b/src/components/pages/production/recording/form/RecordingForm.tsx
index 1501ed62..e0c16fda 100644
--- a/src/components/pages/production/recording/form/RecordingForm.tsx
+++ b/src/components/pages/production/recording/form/RecordingForm.tsx
@@ -1570,7 +1570,10 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
FCR |
- {formatNumber(initialValues.fcr_value || 0)}
+ {initialValues.fcr_value &&
+ initialValues.fcr_value > 0
+ ? formatNumber(initialValues.fcr_value)
+ : '-'}
|
- |
@@ -1579,18 +1582,27 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
Feed Intake (KG) |
- {formatNumber(initialValues.feed_intake || 0)}
+ {initialValues.feed_intake &&
+ initialValues.feed_intake > 0
+ ? formatNumber(initialValues.feed_intake)
+ : '-'}
|
- {formatNumber(initialValues.feed_intake_std || 0)}
+ {initialValues.feed_intake_std &&
+ initialValues.feed_intake_std > 0
+ ? formatNumber(initialValues.feed_intake_std)
+ : '-'}
|
| Cum. Intake (KG) |
- {formatNumber(initialValues.cum_intake || 0)}
+ {initialValues.cum_intake &&
+ initialValues.cum_intake > 0
+ ? formatNumber(initialValues.cum_intake)
+ : '-'}
|
- |
@@ -1643,33 +1655,45 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
- {formatNumber(initialValues.hand_day || 0)}
+ {initialValues.hand_day &&
+ initialValues.hand_day > 0
+ ? formatNumber(initialValues.hand_day)
+ : '-'}
|
- {initialValues.hand_day_std !== undefined
+ {initialValues.hand_day_std !== undefined &&
+ initialValues.hand_day_std > 0
? `${initialValues.hand_day_std}%`
: '-'}
|
- {formatNumber(
- initialValues.total_depletion_qty || 0
- )}
+ {initialValues.total_depletion_qty &&
+ initialValues.total_depletion_qty > 0
+ ? formatNumber(initialValues.total_depletion_qty)
+ : '-'}
|
- {initialValues.cum_depletion_rate?.toFixed(2) || '-'}
+ {initialValues.cum_depletion_rate &&
+ initialValues.cum_depletion_rate > 0
+ ? initialValues.cum_depletion_rate.toFixed(2)
+ : '-'}
|
|
- {formatNumber(initialValues.hand_house || 0)}
+ {initialValues.hand_house &&
+ initialValues.hand_house > 0
+ ? formatNumber(initialValues.hand_house)
+ : '-'}
|
- {initialValues.hand_house_std !== undefined
+ {initialValues.hand_house_std !== undefined &&
+ initialValues.hand_house_std > 0
? `${initialValues.hand_house_std}%`
: '-'}
|
@@ -1691,7 +1715,10 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
colSpan={2}
className='text-center py-3 font-semibold'
>
- {formatNumber(initialValues.total_chick_qty || 0)}
+ {initialValues.total_chick_qty &&
+ initialValues.total_chick_qty > 0
+ ? formatNumber(initialValues.total_chick_qty)
+ : '-'}
@@ -1727,11 +1754,17 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
Egg Mesh |
- {formatNumber(initialValues.egg_mesh || 0)}
+ {initialValues.egg_mesh &&
+ initialValues.egg_mesh > 0
+ ? formatNumber(initialValues.egg_mesh)
+ : '-'}
|
- {formatNumber(initialValues.egg_mesh_std || 0)}
+ {initialValues.egg_mesh_std &&
+ initialValues.egg_mesh_std > 0
+ ? formatNumber(initialValues.egg_mesh_std)
+ : '-'}
|
@@ -1740,11 +1773,17 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
- {formatNumber(initialValues.egg_weight || 0)}
+ {initialValues.egg_weight &&
+ initialValues.egg_weight > 0
+ ? formatNumber(initialValues.egg_weight)
+ : '-'}
|
- {formatNumber(initialValues.egg_weight_std || 0)}
+ {initialValues.egg_weight_std &&
+ initialValues.egg_weight_std > 0
+ ? formatNumber(initialValues.egg_weight_std)
+ : '-'}
|