mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE-355): Use summary fallbacks for report footers
This commit is contained in:
@@ -560,7 +560,7 @@ const HppPerKandangTab = () => {
|
||||
},
|
||||
footer: () => (
|
||||
<div className='text-right font-semibold text-gray-900'>
|
||||
{formatNumber(totals.total_remaining_chicken_birds)}
|
||||
{formatNumber(summary?.total_remaining_chicken_birds || 0)}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
@@ -574,7 +574,7 @@ const HppPerKandangTab = () => {
|
||||
},
|
||||
footer: () => (
|
||||
<div className='text-right font-semibold text-gray-900'>
|
||||
{formatNumber(totals.total_remaining_chicken_weight_kg)}
|
||||
{formatNumber(summary?.total_remaining_chicken_weight_kg || 0)}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
@@ -587,7 +587,9 @@ const HppPerKandangTab = () => {
|
||||
return <div className='text-right'>{formatNumber(value)}</div>;
|
||||
},
|
||||
footer: () => (
|
||||
<div className='text-right font-semibold text-gray-900'>-</div>
|
||||
<div className='text-right font-semibold text-gray-900'>
|
||||
{formatNumber(summary?.total_egg_production_pieces || 0)}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
@@ -599,7 +601,9 @@ const HppPerKandangTab = () => {
|
||||
return <div className='text-right'>{formatNumber(value)}</div>;
|
||||
},
|
||||
footer: () => (
|
||||
<div className='text-right font-semibold text-gray-900'>-</div>
|
||||
<div className='text-right font-semibold text-gray-900'>
|
||||
{formatNumber(summary?.total_remaining_chicken_weight_kg || 0)}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
@@ -611,7 +615,9 @@ const HppPerKandangTab = () => {
|
||||
return <div className='text-right'>{formatCurrency(value)}</div>;
|
||||
},
|
||||
footer: () => (
|
||||
<div className='text-right font-semibold text-gray-900'>-</div>
|
||||
<div className='text-right font-semibold text-gray-900'>
|
||||
{formatCurrency(summary?.total_egg_value_rp || 0)}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
@@ -675,7 +681,9 @@ const HppPerKandangTab = () => {
|
||||
return <div className='text-right'>{formatCurrency(value)}</div>;
|
||||
},
|
||||
footer: () => (
|
||||
<div className='text-right font-semibold text-gray-900'>-</div>
|
||||
<div className='text-right font-semibold text-gray-900'>
|
||||
{formatCurrency(summary?.average_egg_hpp_rp_per_kg || 0)}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
{
|
||||
@@ -688,7 +696,7 @@ const HppPerKandangTab = () => {
|
||||
},
|
||||
footer: () => (
|
||||
<div className='text-right font-semibold text-gray-900'>
|
||||
{formatCurrency(totals.total_remaining_value_rp)}
|
||||
{formatCurrency(summary?.total_remaining_value_rp || 0)}
|
||||
</div>
|
||||
),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user