mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 14:55:44 +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: () => (
|
||||
<div className='text-right font-semibold text-gray-900'>
|
||||
{formatCurrency(
|
||||
summary?.total_remaining_value_rp &&
|
||||
summary?.total_remaining_chicken_birds
|
||||
? summary.total_remaining_value_rp /
|
||||
summary.total_remaining_chicken_birds
|
||||
: 0
|
||||
)}
|
||||
{formatCurrency(summary?.average_egg_hpp_rp_per_kg || 0)}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
@@ -620,13 +614,7 @@ const HppPerKandangTab = () => {
|
||||
},
|
||||
footer: () => (
|
||||
<div className='text-right font-semibold text-gray-900'>
|
||||
{formatCurrency(
|
||||
summary?.total_remaining_value_rp &&
|
||||
summary?.total_remaining_chicken_birds
|
||||
? summary.total_remaining_value_rp /
|
||||
summary.total_remaining_chicken_birds
|
||||
: 0
|
||||
)}
|
||||
{formatCurrency(summary?.total_egg_value_rp || 0)}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user