Open
Description
Please list the package(s) involved in the issue, and include the version you are using
@shopify/retail-ui-extensions-react v1.7.0
Describe the bug
Different line items of the same product variant contain the same UUID making it impossible to update one without affecting the other(s). For example, addLineItemProperties
adds the same properties to different line items.
Steps to reproduce the behavior:
- In admin create a Buy X get Y discount code - ensure the "Customer buys" and "Customer gets" are set to the same product.
- In POS add the necessary quantity of the same product, e.g. 3 products (for buy 2 get 1 discount). All products should be within the same line item.
- Apply the discount code, which splits the line item into multiple. However, all different line items contain the same UUID.
Expected behavior
I'd expect the line items to have different UUIDs just like different order line items of the same product variant have different IDs.
Screenshots
Additional context
The issue is related to #1536 and #1536. However, here the line items are already split.