cod fix
This commit is contained in:
@@ -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. */}
|
||||
|
||||
Reference in New Issue
Block a user