ita-social-projects / GreenCity

The main aim of “GreenCity” project is to teach people in a playful and challenging way to have an eco-friendly lifestyle. A user can view on the map places that have some eco-initiatives or suggest discounts for being environmentally aware (for instance, coffee shops that give a discount if a customer comes with their own cup). А user can start doing an environment-friendly habit and track their progress with a habit tracker.
MIT License
65 stars 80 forks source link

[Orders] Employee can not edit paid order #6405

Open DanaIuich opened 12 months ago

DanaIuich commented 12 months ago

Environment: all Reproducible: always Build found:24/09/2023

Preconditions

  1. Log as employee
  2. Employee has to have permission to edit orders
  3. Order must be formed and paid
  4. Confirmed amount on "Textile waste" in the "Order detais" section must be 0
  5. Go to https://www.greencity.social/#/ubs-admin/orders

Steps to reproduce

  1. Choose the formed and paid order.
  2. In the "Order detais" section in confirmed amount add more units of the product to "Textile waste"
  3. Click on "Save" button

Actual result After clicking on "Save" button error message "Bag does not exist by id: 6" appears. Response 400 in devtools appears.

Expected result After clicking on "Save" button message "Your changes have been saved" appears. Response 201 in devtools.

User story and test case links https://github.com/ita-social-projects/GreenCity/issues/5538

https://github.com/ita-social-projects/GreenCity/assets/128155213/3a26669a-423b-4d8b-bb37-6d2910ff968b

ryhaldenys commented 4 months ago

This bug is not reproduced