saleor / saleor-dashboard

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

[Bug]: Empty cels in order grid when line line unit/totalPrice is 0 #4539

Closed szczecha closed 2 weeks ago

szczecha commented 11 months ago

Description of the issue

Order details show the total price and unit price for the line when the product is on discount that reduces the price to 0

Screenshot 2023-12-12 at 17 26 43

Steps to reproduce the problem

  1. Create a draft order

  2. Add product

  3. Add a 100% discount for one of the lines

    Screenshot 2023-12-15 at 09 53 46
  4. Update shipping address and shipping method

  5. Finalize order

    Screenshot 2023-12-15 at 09 53 56

What did you expect to happen?

I expect that after adding a manual discount to the line both price and total price will show crossed price taken from the lines.X.undiscountedUnitPrice.gross.amount for unit price field and 0 next to it and price 0 for totalPrice the

Additional information

No response

Environment

Browser and version: Chrome Version 120.0.6099.71 (Official Build) (x86_64) OS and version: macOS Sonoma 14.1.1 Dashboard version: dashboard 3.19.0-dev-9870979 Core version: core v3.19.0-a.0

szczecha commented 2 weeks ago

No longer occurs, checked on: dashboard 3.21.0-dev-f81e0d4