updateson the profitability page

This commit is contained in:
2026-07-01 11:42:33 +05:30
parent 96f7bbad62
commit 1d0d7c428c
3 changed files with 32 additions and 10 deletions

View File

@@ -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>