IDEMPIERE-2743 Vendor RMA Void Reset Returned Qty to 1 / IDEMPIERE-576

This commit is contained in:
Carlos Ruiz 2017-12-14 18:13:40 +01:00
parent 0f870b7baf
commit 981346c74e
1 changed files with 3 additions and 3 deletions

View File

@ -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());