-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Description
What are you trying to achieve?
When running FulfillmentReturnProducts
mutation, existing fulfillment is being deleted (in case when all products from fulfillment are returned).
saleor/saleor/order/actions.py
Line 1951 in 9e5a24c
Fulfillment.objects.filter( |
This leads to data loss, because all metadata and tracking number are deleted with the fulfillment
Steps to reproduce the problem
- Create order with fulfillment (one or more)
- Assign tracking number and metadata to a fulfillment
- Return all items from given fulfillment (with
FulfillmentReturnProducts
mutation) - Tracking number and metadata is lost
What did you expect to happen?
Data should not be lost when products are returned. Maybe empty fulfillment could be kept after returning the products?
Logs
No response
Environment
Saleor version: 3.21.0-a.0