Hi,

When an order is edited and saved, if the quantity of product is changed, a message is added to the order log stating that the stock level has been decreased. It is correct if the quantity of the requested product has increased, but if the quantity of the requested product has decreased the message is not correct.

For example:

Last message in order log:
[-] The stock level for X has been decreased to 22.

Now, I increase the quantity of product X by one.
The new message added in order log is correct:
[-] The stock level for X has been decreased to 21.

Now, I decrease the quantity of product X by one.
The new message added in order log is not correct:
[-] The stock level for X has been decreased to 22.

I attach a patch in the reply...

--
sim6

CommentFileSizeAuthor
#1 ubercart-735044.patch1.06 KBsim6
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sim6’s picture

Status: Needs work » Needs review
FileSize
1.06 KB

The attached patch add next message when the stock increase:
[-] The stock level for X has been increased to 22.

Enjoy the patch.

--
sim6

TR’s picture

Priority: Critical » Normal
Status: Needs review » Closed (duplicate)

This is a duplicate of the existing issue #651556: stock decrement usage on order edit is leaving wrong comments. Please help out with the patch in that thread if you want this to be resolved.