updates on the reports kpi section regarding the changes on the amount
This commit is contained in:
@@ -324,7 +324,6 @@ export default function OrdersReport() {
|
||||
{ key: 'pending', label: 'Pending', color: C_PENDING, icon: MdHourglassEmpty, value: totalOrderPend },
|
||||
{ key: 'completed', label: 'Completed', color: C_COMPLETED, icon: MdCheckCircle, value: totalOrderComplete },
|
||||
{ key: 'cancelled', label: 'Cancelled', color: C_CANCELLED, icon: MdCancel, value: totalOrderCancel },
|
||||
{ key: 'charges', label: 'Total Charges', color: C_ACCEPTED, icon: MdLocalOffer, value: total, isMoney: true }
|
||||
];
|
||||
|
||||
return (
|
||||
@@ -454,7 +453,7 @@ export default function OrdersReport() {
|
||||
{kpiCards.map((item) => {
|
||||
const Icon = item.icon;
|
||||
return (
|
||||
<Grid item key={item.key} xs={6} sm={6} md={item.key === 'charges' ? 4 : 2}>
|
||||
<Grid item key={item.key} xs={6} sm={6} md={3}>
|
||||
<Paper
|
||||
elevation={0}
|
||||
sx={{
|
||||
|
||||
@@ -547,8 +547,6 @@ export default function OrdersDetails() {
|
||||
{ key: 'total', label: `${currentStatus === 'All' ? 'Total' : currentStatus} Orders`, color: BRAND, icon: MdInsights, value: statusCount, hint: 'Orders matching the current filters.' },
|
||||
{ key: 'pending', label: 'Pending', color: '#f59e0b', icon: MdHourglassEmpty, value: deliverycount?.pending ?? 0, hint: 'Orders awaiting rider assignment or pickup.' },
|
||||
{ key: 'delivered', label: 'Delivered', color: '#10b981', icon: MdCheckCircle, value: deliverycount?.delivered ?? 0, hint: 'Successfully delivered orders.' },
|
||||
{ key: 'charges', label: 'Delivery Charges', color: '#6366f1', icon: MdLocalOffer, value: totalCharge, isMoney: true, hint: 'Total platform / delivery fees billed across the filtered orders.' },
|
||||
{ key: 'amount', label: 'Order Value', color: '#10b981', icon: MdCurrencyRupee, value: totalAmount, isMoney: true, hint: 'Total customer order value across the filtered orders.' }
|
||||
];
|
||||
|
||||
return (
|
||||
@@ -773,7 +771,7 @@ export default function OrdersDetails() {
|
||||
{kpiCards.map((item) => {
|
||||
const Icon = item.icon;
|
||||
return (
|
||||
<Grid item key={item.key} xs={6} sm={4} md={item.isMoney ? 3 : 2}>
|
||||
<Grid item key={item.key} xs={6} sm={4} md={4}>
|
||||
<Tooltip title={item.hint || ''} placement="top" arrow>
|
||||
<Paper
|
||||
elevation={0}
|
||||
|
||||
@@ -248,7 +248,6 @@ export default function RidersSummary() {
|
||||
{ key: 'deliveries', label: 'Deliveries', color: C_ASSIGNED, icon: MdLocalShipping, value: kpiTotals.deliveries },
|
||||
{ key: 'pending', label: 'Pending', color: C_PENDING, icon: MdHourglassEmpty, value: kpiTotals.pending },
|
||||
{ key: 'delivered', label: 'Delivered', color: C_DELIVERED, icon: MdCheckCircle, value: kpiTotals.delivered },
|
||||
{ key: 'charges', label: 'Total Charges', color: BRAND, icon: MdLocalOffer, value: kpiTotals.charges, isMoney: true }
|
||||
];
|
||||
|
||||
return (
|
||||
@@ -357,7 +356,7 @@ export default function RidersSummary() {
|
||||
{kpiCards.map((item) => {
|
||||
const Icon = item.icon;
|
||||
return (
|
||||
<Grid item key={item.key} xs={6} sm={6} md={item.key === 'charges' ? 4 : 2}>
|
||||
<Grid item key={item.key} xs={6} sm={6} md={3}>
|
||||
<Paper
|
||||
elevation={0}
|
||||
sx={{
|
||||
|
||||
Reference in New Issue
Block a user