This commit is contained in:
2026-09-28 19:35:16 +05:30
parent eeef8851e4
commit 9a991fe5ab
3 changed files with 45 additions and 31 deletions

View File

@@ -185,19 +185,18 @@ function Sheet({
label="Value"
value={value > 0 ? moneyExact(value) : detailAmount > 0 ? moneyExact(detailAmount) : '—'}
/>
{/* A delivery shows what the rider is paid. An order has no second
money figure worth the space: "Cash to collect" stood here and read
`collectionamt`, which Fiesta does not have, so it was a dash on
every order ever opened. See `pages/SalesPage.tsx` for why it cannot
be derived from `paymenttype` either. */}
{job ? (
<Metric
label="Rider charge"
value={job.deliverycharges ? moneyExact(job.deliverycharges) : '—'}
isSmall
/>
) : (
<Metric
label="Cash to collect"
value={order?.collectionamt ? moneyExact(order.collectionamt) : '—'}
isSmall
/>
)}
) : null}
{/* Counted from the lines when the row carries no count. `itemcount`
and `quantity` are both routinely absent on the list read, which is
what made this a dash on an order that plainly had something in it. */}