removed the charges column in the report section
This commit is contained in:
@@ -329,8 +329,7 @@ export default function OrdersDetails() {
|
||||
{ key: 'picked', label: 'Picked', group: 'Lifecycle', defaultVisible: true, minWidth: 90 },
|
||||
{ key: 'delivered', label: 'Delivered', group: 'Lifecycle', defaultVisible: true, minWidth: 90 },
|
||||
{ key: 'cancelled', label: 'Cancelled', group: 'Lifecycle', defaultVisible: false, minWidth: 90 },
|
||||
{ key: 'kms', label: 'Kms', group: 'Metrics', defaultVisible: true, width: 70, align: 'center' },
|
||||
{ key: 'charges', label: 'Charges', group: 'Metrics', defaultVisible: true, width: 100, align: 'right' }
|
||||
{ key: 'kms', label: 'Kms', group: 'Metrics', defaultVisible: true, width: 70, align: 'center' }
|
||||
];
|
||||
const COLUMN_GROUPS = ['Core', 'Lifecycle', 'Metrics'];
|
||||
const COLUMN_DEFAULTS = ALL_COLUMNS.reduce((acc, c) => ({ ...acc, [c.key]: c.defaultVisible }), {});
|
||||
@@ -1090,7 +1089,6 @@ export default function OrdersDetails() {
|
||||
{isVisible('delivered') && <TableCell sx={{ minWidth: 90 }}>Delivered</TableCell>}
|
||||
{isVisible('cancelled') && <TableCell sx={{ minWidth: 90 }}>Cancelled</TableCell>}
|
||||
{isVisible('kms') && <TableCell align="center" sx={{ width: 70 }}>Kms</TableCell>}
|
||||
{isVisible('charges') && <TableCell align="right" sx={{ width: 100 }}>Charges</TableCell>}
|
||||
</TableRow>
|
||||
</TableHead>
|
||||
|
||||
@@ -1315,21 +1313,6 @@ export default function OrdersDetails() {
|
||||
</TableCell>
|
||||
)}
|
||||
|
||||
{/* Charges */}
|
||||
{isVisible('charges') && (
|
||||
<TableCell align="right">
|
||||
<MetricPill
|
||||
value={
|
||||
row.orderstatus === 'cancelled' || row.deliverycharges === ''
|
||||
? 0
|
||||
: Number(row.deliverycharges)
|
||||
}
|
||||
color={BRAND}
|
||||
icon={<MdCurrencyRupee size={11} />}
|
||||
isMoney
|
||||
/>
|
||||
</TableCell>
|
||||
)}
|
||||
</TableRow>
|
||||
))}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user