IDEMPIERE-3078 IDEMPIERE-1770 created code for a non-existing column

This commit is contained in:
Carlos Ruiz 2016-05-30 22:29:09 -05:00
parent 803979d925
commit 367f50673b
2 changed files with 5 additions and 10 deletions

View File

@ -1851,11 +1851,8 @@ public class MInOut extends X_M_InOut implements DocAction
for(MInOutLineMA sMA : shipmentMAS){
BigDecimal lineMAQty = qtyToReturn;
BigDecimal qtyReturnable = (BigDecimal)sMA.get_Value(MInOutLineMA.COLUMNNAME_ReturnedQty);
if (qtyReturnable == null)
qtyReturnable = Env.ZERO;
if(lineMAQty.compareTo(qtyReturnable)>0){
lineMAQty = qtyReturnable;
if(lineMAQty.compareTo(Env.ZERO)>0){
lineMAQty = Env.ZERO;
}
MInOutLineMA ma = MInOutLineMA.addOrCreate(line, sMA.getM_AttributeSetInstance_ID(), lineMAQty, sMA.getDateMaterialPolicy(),true);

View File

@ -43,12 +43,11 @@ public class MInOutLineMA extends X_M_InOutLineMA
/**
*
*/
private static final long serialVersionUID = -4131812777103744727L;
private static final long serialVersionUID = -2610075295914545809L;
/** Log */
private static CLogger s_log = CLogger.getCLogger (MInOutLineMA.class);
public static String COLUMNNAME_ReturnedQty ="returnedQty";
/**
* Get Material Allocations for Line
* @param ctx context
@ -237,7 +236,6 @@ public class MInOutLineMA extends X_M_InOutLineMA
while (rs.next())
{
MInOutLineMA lineMA = new MInOutLineMA(ctx, rs, trxName);
lineMA.set_Value(COLUMNNAME_ReturnedQty, rs.getBigDecimal(COLUMNNAME_ReturnedQty));
list.add(lineMA);
}