magento2-inventory-log
magento2-inventory-log copied to clipboard
Creating a credit nota with deleted products will give an error
Title
Creating a credit nota with deleted products will give an error
Preconditions
- Have the extension installed.
- Pretty sure it doesn't work everywhere, but my Magento version is 2.3.2.
Steps to reproduce
- Make an order with x and y product.
- Delete x product and keep y product intact.
- Create a credit nota of the order you just placed.
Expected result
- A credit nota is created and the product that doesn't exist anymore is ignored and not looked at.
Actual result
- 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)"} []