updateson the profitability page
This commit is contained in:
@@ -299,7 +299,7 @@ export default function ProfitabilityReport() {
|
||||
const slot = getRowBatch(o, customBatches);
|
||||
if (!slot) return;
|
||||
|
||||
const oKms = parseFloat(o.kms || o.actualkms || 0);
|
||||
const oKms = parseFloat(o.riderkms || 0);
|
||||
rKms += oKms;
|
||||
rRevenue += oKms <= 8 ? 30 : 30 + (oKms - 8) * 6;
|
||||
|
||||
@@ -611,7 +611,7 @@ export default function ProfitabilityReport() {
|
||||
>
|
||||
<MobileFieldGrid columns={2}>
|
||||
<MobileField label="Orders" value={row.orders.length} />
|
||||
<MobileField label="Distance" value={`${row.kms.toFixed(2)} km`} />
|
||||
<MobileField label="Rider KMs" value={`${row.kms.toFixed(2)} km`} />
|
||||
<MobileField label="Revenue" value={formatNumberToRupees(row.revenue)} />
|
||||
<MobileField label="Fixed Cost" value={formatNumberToRupees(row.fixedCost)} />
|
||||
<MobileField label="Variable Cost" value={formatNumberToRupees(row.varCost)} />
|
||||
@@ -658,7 +658,7 @@ export default function ProfitabilityReport() {
|
||||
<TableCell>#</TableCell>
|
||||
<TableCell>Rider</TableCell>
|
||||
<TableCell align="center">Orders</TableCell>
|
||||
<TableCell align="center">Distance</TableCell>
|
||||
<TableCell align="center">Rider KMs</TableCell>
|
||||
<TableCell align="center">Revenue</TableCell>
|
||||
<TableCell align="center">Fixed Cost</TableCell>
|
||||
<TableCell align="center">Variable Cost</TableCell>
|
||||
|
||||
Reference in New Issue
Block a user