IDEMPIERE-5039 Negative Lost Sales Quantity (#1003)

fix unit test IDEMPIERE-4587
This commit is contained in:
hengsin 2021-11-25 21:09:49 +08:00 committed by GitHub
parent a31a6c61c0
commit 2b79a1a874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1510,7 +1510,7 @@ public class MInOut extends X_M_InOut implements DocAction
m_processMsg = "Cannot correct Inventory OnHand [" + product.getValue() + "] - " + lastError; m_processMsg = "Cannot correct Inventory OnHand [" + product.getValue() + "] - " + lastError;
return DocAction.STATUS_Invalid; return DocAction.STATUS_Invalid;
} }
if (oLine!=null && oLine.getQtyOrdered().signum() >= 0 && oLine.getM_Product_ID() > 0) if (oLine!=null && oLine.getQtyOrdered().signum() > 0 && oLine.getM_Product_ID() > 0)
{ {
IReservationTracer tracer = null; IReservationTracer tracer = null;
IReservationTracerFactory factory = Core.getReservationTracerFactory(); IReservationTracerFactory factory = Core.getReservationTracerFactory();