mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-26 00:05:45 +00:00
refactor(FE-355,357): Use summary fields for egg HPP and total value
This commit is contained in:
@@ -600,13 +600,7 @@ const HppPerKandangTab = () => {
|
|||||||
},
|
},
|
||||||
footer: () => (
|
footer: () => (
|
||||||
<div className='text-right font-semibold text-gray-900'>
|
<div className='text-right font-semibold text-gray-900'>
|
||||||
{formatCurrency(
|
{formatCurrency(summary?.average_egg_hpp_rp_per_kg || 0)}
|
||||||
summary?.total_remaining_value_rp &&
|
|
||||||
summary?.total_remaining_chicken_birds
|
|
||||||
? summary.total_remaining_value_rp /
|
|
||||||
summary.total_remaining_chicken_birds
|
|
||||||
: 0
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
@@ -620,13 +614,7 @@ const HppPerKandangTab = () => {
|
|||||||
},
|
},
|
||||||
footer: () => (
|
footer: () => (
|
||||||
<div className='text-right font-semibold text-gray-900'>
|
<div className='text-right font-semibold text-gray-900'>
|
||||||
{formatCurrency(
|
{formatCurrency(summary?.total_egg_value_rp || 0)}
|
||||||
summary?.total_remaining_value_rp &&
|
|
||||||
summary?.total_remaining_chicken_birds
|
|
||||||
? summary.total_remaining_value_rp /
|
|
||||||
summary.total_remaining_chicken_birds
|
|
||||||
: 0
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user