1 new commit in iDempiere:
https://bitbucket.org/idempiere/idempiere/commits/e53b2e5a0a59/
Changeset: e53b2e5a0a59
Branch: release-5.1
User: globalqss
Date: 2017-12-14 17:13:40+00:00
Summary: IDEMPIERE-2743 Vendor RMA Void Reset Returned Qty to 1 / IDEMPIERE-576
Affected #: 1 file
diff -r e2ff1319566addd36ba90ad239a5282169493103 -r e53b2e5a0a590f02e26b9e747efddf247cd3bef5 org.adempiere.base/src/org/compiere/model/MRMALine.java
--- a/org.adempiere.base/src/org/compiere/model/MRMALine.java
+++ b/org.adempiere.base/src/org/compiere/model/MRMALine.java
@@ -351,7 +351,7 @@
}
// 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 @@
}
// 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 @@
}
// 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());
Repository URL:
https://bitbucket.org/idempiere/idempiere/
--
This is a commit notification from
bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.