I have a strange issue when posting an invoice on a return order. I get error “Qty X cannot be picked because only -1.00 is/are available from the inventory”.
The item has no physical available stock and the disposition code on the line is “credit” so there should be no inventory changes.
Investigating the code, it looks like it is creating a negative inventory transaction of stock back into physical available then testing against it to see if we have any physical available (more than 0). This is fine if you had stock, the negative would be absorbed by the positive and the test would pass. Because there is no physical available stock of this item the test fails (during the testing of the physical available qty the invent sum record isn’t actually committed yet which might be my issue).
I have two questions on this,
-
Has anyone come across this before? (I have seen one or two unanswered posts about the place but always unanswered)
-
Does anyone have a thought on where the code processes against the disposition codes? i cant find anywhere where it uses the code to affect what transactions it does.