From 2b79a1a8747983a060c92f39f1c17fbad9850489 Mon Sep 17 00:00:00 2001 From: hengsin Date: Thu, 25 Nov 2021 21:09:49 +0800 Subject: [PATCH] IDEMPIERE-5039 Negative Lost Sales Quantity (#1003) fix unit test IDEMPIERE-4587 --- org.adempiere.base/src/org/compiere/model/MInOut.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MInOut.java b/org.adempiere.base/src/org/compiere/model/MInOut.java index 7a7561a2fc..59d4be44fa 100644 --- a/org.adempiere.base/src/org/compiere/model/MInOut.java +++ b/org.adempiere.base/src/org/compiere/model/MInOut.java @@ -1510,7 +1510,7 @@ public class MInOut extends X_M_InOut implements DocAction m_processMsg = "Cannot correct Inventory OnHand [" + product.getValue() + "] - " + lastError; 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; IReservationTracerFactory factory = Core.getReservationTracerFactory();