-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot create a credit memo when product entity is deleted #3376
Comments
Hi @convenient. Thank you for your report. Join Magento Community Engineering Slack and ask your questions in #github channel. |
Adding to this that this error is also thrown if the SKU of a product is changed, you don't even need to delete the product. This suggests that the functionality should use the product ID which can't be changed (but could be deleted) rather than the SKU which can be changed or deleted. Our workaround for this is that we have to update the SKU on the order to the new SKU for the SKU that is no longer in use and then process the credit memo. Not ideal. |
Preconditions (*)
2.4.4-p2
enterpriseSteps to reproduce (*)
cataloginventory/options/synchronize_with_catalog=0
(default this is the default value)catalog_product_entity
inventory_source_item
select * from inventory_source_item where sku not in (select sku from catalog_product_entity) and sku in (select sku from sales_order_item)
Because we have an
inventory_source_item
but no product, we are doing a stock check and getting a PHP fatal error.Expected result (*)
Actual result (*)
The text was updated successfully, but these errors were encountered: