nopSolutions / nopCommerce

ASP.NET Core eCommerce software. nopCommerce is a free and open-source shopping cart.
https://www.nopcommerce.com
Other
9.19k stars 5.28k forks source link

Changing order status to "cancelled" do not update stock quantity #1827

Closed jigarsangoi closed 7 years ago

jigarsangoi commented 7 years ago

Hello,

I have came across case where I have to cancel order from admin panel. It works fine when I use Cancel Order button to cancel order. It updates stock quantity with respect to quantity in order. For eg. If I have stock quantity = 0 after clicking Cancel Order Button stock quantity updates to 1.

But it will not update stock quantity when you update "Cancelled" status using Change Status Button. For eg. If I have stock quantity = 0 after updating order status to Cancelled stock quantity remains same as 0.

1 more problem I found, we have event like when stock quantity < min stock quantity then unpublish product. but if you consider 1 case then when stock quantity is updated to 1 due to cancel order at that time it must update Published flag = true.

Nopcommerce version = 3.60

Thanks

AndreiMaz commented 7 years ago

it's by design (as stated in description of this button)