saleor / saleor-dashboard

A GraphQL-powered, single-page dashboard application for Saleor.
BSD 3-Clause "New" or "Revised" License
846 stars 1.11k forks source link

[Bug]: Incorrect line quantity on order details #4514

Open Droniu opened 12 months ago

Droniu commented 12 months ago

Description of the issue

When doing partial operations, quantities on order lines in order views have incorrect values.

Steps to reproduce the problem

  1. Create order with 3 order lines, each having quantity equal to 10.
  2. Capture payment / transaction.
  3. Fulfill 3 products from each order line
  4. Return 1 product from each fulfilled order line and 1 product from each unfulfilled order line.

What did you expect to happen?

Expected quantities are:

  1. Unfulfilled - 18 products, each line having 6
  2. Fulfilled - 6 products, each line having 2
  3. Returned - 6 products, each line having 2

What is actually displayed is quantity=10 on each line. Also, total price is evaluated incorrectly due to that.

image

Additional information

No response

Environment

Browser and version: chromium 118.0.5993.96 OS and version: macOS Sonoma 14.0 Dashboard version: 3.19.0-dev Core version: 3.19.0-a.0

Hydanium commented 5 months ago

I can also confirm this Bug, it's still there in Dashboard Version 3.19.8