mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
feat(FE-441): Format and display intake, hand house, and totals
This commit is contained in:
@@ -1570,7 +1570,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
|||||||
<td className='py-3 font-medium'>FCR</td>
|
<td className='py-3 font-medium'>FCR</td>
|
||||||
<td className='text-center py-3'>
|
<td className='text-center py-3'>
|
||||||
<span className='font-semibold'>
|
<span className='font-semibold'>
|
||||||
{initialValues.fcr_value?.toFixed(2) || '-'}
|
{formatNumber(initialValues.fcr_value || 0)}
|
||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td className='text-center py-3 text-gray-600'>-</td>
|
<td className='text-center py-3 text-gray-600'>-</td>
|
||||||
@@ -1586,6 +1586,15 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
|||||||
{formatNumber(initialValues.feed_intake_std || 0)}
|
{formatNumber(initialValues.feed_intake_std || 0)}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td className='py-3 font-medium'>Cum. Intake (KG)</td>
|
||||||
|
<td className='text-center py-3'>
|
||||||
|
<span className='font-semibold'>
|
||||||
|
{formatNumber(initialValues.cum_intake || 0)}
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
<td className='text-center py-3 text-gray-600'>-</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@@ -1653,6 +1662,38 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
|||||||
{initialValues.cum_depletion_rate?.toFixed(2) || '-'}
|
{initialValues.cum_depletion_rate?.toFixed(2) || '-'}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr className='border-b border-gray-200'>
|
||||||
|
<td className='text-center py-3 border-r border-gray-100'>
|
||||||
|
<span className='font-semibold'>
|
||||||
|
{formatNumber(initialValues.hand_house || 0)}
|
||||||
|
</span>
|
||||||
|
</td>
|
||||||
|
<td className='text-center py-3 border-r border-gray-200 text-gray-600'>
|
||||||
|
{initialValues.hand_house_std !== undefined
|
||||||
|
? `${initialValues.hand_house_std}%`
|
||||||
|
: '-'}
|
||||||
|
</td>
|
||||||
|
<td
|
||||||
|
colSpan={2}
|
||||||
|
className='text-center py-3 text-gray-600'
|
||||||
|
>
|
||||||
|
-
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td
|
||||||
|
colSpan={2}
|
||||||
|
className='text-center py-3 border-r border-gray-200 text-gray-600'
|
||||||
|
>
|
||||||
|
Total Ayam
|
||||||
|
</td>
|
||||||
|
<td
|
||||||
|
colSpan={2}
|
||||||
|
className='text-center py-3 font-semibold'
|
||||||
|
>
|
||||||
|
{formatNumber(initialValues.total_chick_qty || 0)}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user