Skip to content

Creating a credit nota with deleted products will give an error #10

@Luuk-Meijer

Description

@Luuk-Meijer

Title

Creating a credit nota with deleted products will give an error

Preconditions

  1. Have the extension installed.
  2. Pretty sure it doesn't work everywhere, but my Magento version is 2.3.2.

Steps to reproduce

  1. Make an order with x and y product.
  2. Delete x product and keep y product intact.
  3. Create a credit nota of the order you just placed.

Expected result

  1. A credit nota is created and the product that doesn't exist anymore is ignored and not looked at.

Actual result

  1. It shows an error about the product that can't be found.
[2020-07-28 11:42:19] main.CRITICAL: The product that was requested doesn't exist. Verify the product and try again. {"exception":"[object] (Magento\\Framework\\Exception\\NoSuchEntityException(code: 0): The product that was requested doesn't exist. Verify the product and try again. at /vendor/magento/module-catalog/Model/ProductRepository.php:310)"} []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions