kingRayhan
This was generated by AI during triage.
Code check (2026-07-18)
Reconfirmed the requirement: rider should earn delivery fee even when delivery is unsuccessful (customer not found → return to restaurant).
Current behavior
Income and invoicing only include DELIVERY_STATUS.DELIVERED:
dinebd__api.riderinvoice.service.ts— invoice aggregation matchesstatus: DELIVEREDonlydinebd__api.riderreport.service.ts— dashboard/total income also matchesDELIVEREDonly
Unsuccessful path sets status to CUSTOMER_NOT_FOUND, then ITERM_RETURNED_TO_RESTAURANT — neither is included, so the rider gets ৳0 for that job.
Likely fix surface
Primary: graphland-dev/dinebd__api.rider (invoice + report queries). Rider app income UI should then reflect it automatically once API credits the fee.
Suggested payable statuses for unsuccessful-but-completed rider work:
ITERM_RETURNED_TO_RESTAURANT(and possiblyCUSTOMER_NOT_FOUNDif we credit earlier)
Board status is already In Review — no linked PR found yet.