mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Rename hand_* to hen_* and egg_mesh to egg_mass
This commit is contained in:
@@ -1737,16 +1737,16 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
||||
<td className='py-3 font-medium'>Egg Mass</td>
|
||||
<td className='text-center py-3'>
|
||||
<span className='font-semibold'>
|
||||
{initialValues.egg_mesh &&
|
||||
initialValues.egg_mesh > 0
|
||||
? formatNumber(initialValues.egg_mesh)
|
||||
{initialValues.egg_mass &&
|
||||
initialValues.egg_mass > 0
|
||||
? formatNumber(initialValues.egg_mass)
|
||||
: '-'}
|
||||
</span>
|
||||
</td>
|
||||
<td className='text-center py-3 text-gray-600'>
|
||||
{initialValues.egg_mesh_std &&
|
||||
initialValues.egg_mesh_std > 0
|
||||
? formatNumber(initialValues.egg_mesh_std)
|
||||
{initialValues.egg_mass_std &&
|
||||
initialValues.egg_mass_std > 0
|
||||
? formatNumber(initialValues.egg_mass_std)
|
||||
: '-'}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1773,16 +1773,16 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
||||
<td className='py-3 font-medium'>Hen Day</td>
|
||||
<td className='text-center py-3'>
|
||||
<span className='font-semibold'>
|
||||
{initialValues.hand_day &&
|
||||
initialValues.hand_day > 0
|
||||
? formatNumber(initialValues.hand_day)
|
||||
{initialValues.hen_day &&
|
||||
initialValues.hen_day > 0
|
||||
? formatNumber(initialValues.hen_day)
|
||||
: '-'}
|
||||
</span>
|
||||
</td>
|
||||
<td className='text-center py-3 text-gray-600'>
|
||||
{initialValues.hand_day_std !== undefined &&
|
||||
initialValues.hand_day_std > 0
|
||||
? `${initialValues.hand_day_std}%`
|
||||
{initialValues.hen_day_std !== undefined &&
|
||||
initialValues.hen_day_std > 0
|
||||
? `${initialValues.hen_day_std}%`
|
||||
: '-'}
|
||||
</td>
|
||||
</tr>
|
||||
@@ -1790,16 +1790,16 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
||||
<td className='py-3 font-medium'>Hen House</td>
|
||||
<td className='text-center py-3'>
|
||||
<span className='font-semibold'>
|
||||
{initialValues.hand_house &&
|
||||
initialValues.hand_house > 0
|
||||
? formatNumber(initialValues.hand_house)
|
||||
{initialValues.hen_house &&
|
||||
initialValues.hen_house > 0
|
||||
? formatNumber(initialValues.hen_house)
|
||||
: '-'}
|
||||
</span>
|
||||
</td>
|
||||
<td className='text-center py-3 text-gray-600'>
|
||||
{initialValues.hand_house_std !== undefined &&
|
||||
initialValues.hand_house_std > 0
|
||||
? `${initialValues.hand_house_std}%`
|
||||
{initialValues.hen_house_std !== undefined &&
|
||||
initialValues.hen_house_std > 0
|
||||
? `${initialValues.hen_house_std}%`
|
||||
: '-'}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
+7
-7
@@ -8,15 +8,15 @@ export type ProductionMetrics = {
|
||||
fcr_value: number;
|
||||
fcr_std?: number;
|
||||
total_chick_qty: number;
|
||||
hand_day?: number;
|
||||
hand_house?: number;
|
||||
hen_day?: number;
|
||||
hen_house?: number;
|
||||
feed_intake?: number;
|
||||
egg_mesh?: number;
|
||||
egg_weight?: number;
|
||||
hand_day_std?: number;
|
||||
hand_house_std?: number;
|
||||
feed_intake_std?: number;
|
||||
egg_mesh_std?: number;
|
||||
egg_mass?: number;
|
||||
egg_weight?: number;
|
||||
hen_day_std?: number;
|
||||
hen_house_std?: number;
|
||||
egg_mass_std?: number;
|
||||
egg_weight_std?: number;
|
||||
daily_gain?: number;
|
||||
avg_daily_gain?: number;
|
||||
|
||||
Reference in New Issue
Block a user