gsafcik / StockAvailability

10 stars 1 forks source link

Returns item to stock even when return to stock is unchecked #2

Closed ericlowe closed 11 years ago

ericlowe commented 11 years ago

This is a great and needed fix for Magento!

However when an item is purchased which is physically not available to be sold, you want to return the money to the customer but not put the stock back. When the "Return to stock" button is unchecked, the stock is still returned, inventory raised and available to be re-sold.

gsafcik commented 11 years ago

Sorry for the late response but I've been busy (and I wasn't getting notifications - fixed that now). Can you clarify "physically not available to be sold..."? Is this a Digital Product?

I'll look into this more but I've updated the module a little and the commit might have fixed this issue. Please test it and let me know...Thanks.

gsafcik commented 11 years ago

Closing as cannot reproduce (with newest version of this module). Tested on Magento 1.7.0.2.

Since no version of Magento was given on the original comment, I assume it has to do with the Magento Quantity Bug reported for versions 1.6.* or less.

Please see the configuration area for this module. It explains what this module was made for. It is strictly to flip the stock availability switch for the product if the quantity is > 0.

This module is initiated when a Credit Memo (Return) is made. When a product has 0 quantity stock level, it is set to out of stock. When returning an out of stock item, the quanity will increase but the item will still remain out of stock. With this module enabled, the above situation is fixed. Along with the quantity increase (upon return of the item), the out of stock status is reset to in stock. Note: This module does not fix the Magento Credit Memo quanity bug for Magento ver. 1.6.* or less

Test Cases:

Same results for Virtual Product