From 981346c74e43b8f15b1963d96eb1800070c8b77b Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 14 Dec 2017 18:13:40 +0100 Subject: [PATCH] IDEMPIERE-2743 Vendor RMA Void Reset Returned Qty to 1 / IDEMPIERE-576 --- org.adempiere.base/src/org/compiere/model/MRMALine.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/model/MRMALine.java b/org.adempiere.base/src/org/compiere/model/MRMALine.java index d9899cf8b6..6e12609e16 100644 --- a/org.adempiere.base/src/org/compiere/model/MRMALine.java +++ b/org.adempiere.base/src/org/compiere/model/MRMALine.java @@ -351,7 +351,7 @@ public class MRMALine extends X_M_RMALine } // Set default amount and qty for product - if (this.getM_Product_ID() != 0 && this.getQty().doubleValue() <= 0) + if (this.getM_Product_ID() != 0 && this.getQty().doubleValue() <= 0 && !MRMA.DOCACTION_Void.equals(getParent().getDocAction())) { if (getQty().signum() == 0) this.setQty(Env.ONE); @@ -360,7 +360,7 @@ public class MRMALine extends X_M_RMALine } // Set default amount and qty for charge - if (this.getC_Charge_ID() != 0 && this.getQty().doubleValue() <= 0) + if (this.getC_Charge_ID() != 0 && this.getQty().doubleValue() <= 0 && !MRMA.DOCACTION_Void.equals(getParent().getDocAction())) { if (getQty().signum() == 0) this.setQty(Env.ONE); @@ -369,7 +369,7 @@ public class MRMALine extends X_M_RMALine } // Set amount for products - if (this.getM_InOutLine_ID() != 0) + if (this.getM_InOutLine_ID() != 0 && !MRMA.DOCACTION_Void.equals(getParent().getDocAction())) { this.setM_Product_ID(m_ioLine.getM_Product_ID()); this.setC_Charge_ID(m_ioLine.getC_Charge_ID());