Hi,
A simple question : why do we reserve quantities for non stocked products ?
As they are not in stock, what's the interest to do those controls which annoy users (if you want to delete this kind of line, you have to set qty to 0, go on the header, reserve the order, and then you are able to delete the line).
I've tested rapidly the following patch in an Event :
MOrderLine ol = (MOrderLine) po;
if (ol.getM_Product_ID() > 0 && !ol.getProduct().isStocked()) {
ol.setQtyReserved(Env.ZERO);
}
And it seems to work perfectly.
Should it be put on the trunk ? Or am I missing something ?
Thanks & regards,
Nicolas