update on the kpi cards in the deliveries page on the count
This commit is contained in:
@@ -959,7 +959,7 @@ const Deliveries = () => {
|
||||
{/* ============================================= || KPI Cards | ============================================= */}
|
||||
<Grid container spacing={{ xs: 1.25, sm: 1.5, md: 2 }} sx={{ mt: '1px' }}>
|
||||
{[
|
||||
{ ...KPI_META[0], value: countData?.total, percentage: null },
|
||||
{ ...KPI_META[0], value: batchTotals.all, percentage: null },
|
||||
{ ...KPI_META[1], value: countData?.uncoveredLength, percentage: countData?.total ? Math.round((countData.uncoveredLength / countData.total) * 100) : 0 },
|
||||
{ ...KPI_META[2], value: countData?.coveredLength, percentage: countData?.total ? Math.round((countData.coveredLength / countData.total) * 100) : 0 },
|
||||
{ ...KPI_META[3], value: countData?.cancelLength, percentage: countData?.total ? Math.round((countData.cancelLength / countData.total) * 100) : 0 }
|
||||
|
||||
Reference in New Issue
Block a user