Back to board

Daily invoice sent to pending join-request riders — restrict to approved/active only

dinebd__api.rider#51

Description

Reported by Yemon (DineBD CEO) via WhatsApp, 11 Jul 2026. Evidence: issues/yemon-inbox/2026-07-11-pending-rider-daily-invoice/

Client report

Bug remained - rider send me this. This account is currently in pending in join request and they are receiving daily invoice

Can we just invoice to approved and active riders

What to build

Riders whose join request is still pending (not yet approved/active) are receiving the daily earning summary invoice email and can open the public invoice page at rider-invoice.dinebd.com.

Example rider from the report:

  • Name: MD.SUMON
  • Rider ID: 000103
  • Email: sarkers965@gmail.com
  • Join status: pending (per client)
  • Invoice received: #000641 dated 10/07/2026 — empty earning table, total ৳ 0.00

Daily invoice generation/sending should only include riders who are approved and active. Pending join-request accounts must be excluded from the daily invoice job and must not receive invoice emails.

Investigate the daily invoice cron/job/query in the rider API (and any related invoice-sending path) and add a status filter so only eligible riders are invoiced.

Acceptance criteria

  • [ ] Pending join-request riders do not receive daily invoice emails
  • [ ] Pending riders do not appear in the daily invoice generation batch
  • [ ] Approved + active riders continue to receive daily invoices as before
  • [ ] Existing invoice for rider 000103 (MD.SUMON) while pending is explained or prevented going forward

Blocked by

None — can start immediately

Evidence

rider-invoice-pending-rider.jpg — mobile browser screenshot of rider-invoice.dinebd.com showing daily earning summary for MD.SUMON (Rider ID 000103, invoice #000641, date 10/07/2026). Earning table is empty (total ৳ 0.00) but invoice was still generated/sent while account is pending join approval.

ImageOpen image in new tab

Related (closed, different scope)

  • graphland-dev/dinebd__mobileapp.rider#157 — "Invoice auto send to rider email" (closed, no body)
  • graphland-dev/dinebd__api.rider#17 — "Send Invoice to rider api" (Done on board)
Comments (0)
Synced 11 Jul 2026, 09:21

No comments yet.

Details
In Review🔥 HighRider APIopen
Repository
graphland-dev/dinebd__api.rider
Issue
#51
Author
kingRayhan
Created
11 Jul 2026, 05:09
Updated
11 Jul 2026, 06:34
bug