这是indexloc提供的服务,不要输入任何密码
Skip to content

Bug: Returning products leads to data loss #17712

@delemeator

Description

@delemeator

What are you trying to achieve?

When running FulfillmentReturnProducts mutation, existing fulfillment is being deleted (in case when all products from fulfillment are returned).

Fulfillment.objects.filter(

This leads to data loss, because all metadata and tracking number are deleted with the fulfillment

Steps to reproduce the problem

  1. Create order with fulfillment (one or more)
  2. Assign tracking number and metadata to a fulfillment
  3. Return all items from given fulfillment (with FulfillmentReturnProducts mutation)
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions