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:
As an admin, order and pay a meal
You receive a notification, open the order
Refuse it by sliding left
On another device, connected with restaurant profile, you also receive a notification
Open the order and accept it
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
Desktop (please complete the following information):
Smartphone (please complete the following information):
Android, Coopcycle V1.7.5
Additional context
I assume that the scenario is not current but the issue is specifically for preventing at all levels (application, back office or API) any action such as validation for an order that is already refused.
It may also apply for the opposite scenario (refusing an order already accepted)
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:
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
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context I assume that the scenario is not current but the issue is specifically for preventing at all levels (application, back office or API) any action such as validation for an order that is already refused. It may also apply for the opposite scenario (refusing an order already accepted)