coopcycle / coopcycle-web

Logistics & marketplace platform. Only for worker-owned business.
https://coopcycle.org
Other
565 stars 128 forks source link

Prevent any action when order refused #2485

Open biologeek opened 3 years ago

biologeek commented 3 years ago

Describe the bug Logged in as an admin user I ordered on the app with my credit card that I immediately refused via the restaurant panel. At the restaurant, they could accept it minutes after it was refused. This 2 tasks were created for a refused order.

To Reproduce Steps to reproduce the behavior:

  1. As an admin, order and pay a meal
  2. You receive a notification, open the order
  3. Refuse it by sliding left
  4. On another device, connected with restaurant profile, you also receive a notification
  5. Open the order and accept it
  6. As an admin you should see 2 tasks related to this order

Expected behavior At the time the restaurant opens the order it is already refused. Even if the the order is acceptable on the device, the action must be blocked on server side.

Screenshots Screenshot_20210602214128 Screenshot_20210602214015

Desktop (please complete the following information):

Smartphone (please complete the following information):

Paul-Eraman-CoopCycle commented 1 year ago

I have had this happen as well