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
Comment | File | Size | Author |
---|---|---|---|
#1 | ubercart-735044.patch | 1.06 KB | sim6 |
Comments
Comment #1
sim6 CreditAttribution: sim6 commentedThe attached patch add next message when the stock increase:
[-] The stock level for X has been increased to 22.
Enjoy the patch.
--
sim6
Comment #2
TR CreditAttribution: TR commentedThis 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.