IDEMPIERE-1140 Copy record uses wrong quantity when used in shipment line / receipt line - fix also UOM in case is different

This commit is contained in:
Carlos Ruiz 2016-01-17 18:14:45 +01:00
parent af9c479b91
commit 79ff4ff169
1 changed files with 3 additions and 0 deletions

View File

@ -706,6 +706,9 @@ public class CalloutInOut extends CalloutEngine
// serialized ASI - force qty yo 1 - IDEMPIERE-1140 // serialized ASI - force qty yo 1 - IDEMPIERE-1140
mTab.setValue("MovementQty", Env.ONE); mTab.setValue("MovementQty", Env.ONE);
mTab.setValue("QtyEntered", Env.ONE); mTab.setValue("QtyEntered", Env.ONE);
MProduct product = MProduct.get(ctx, M_Product_ID);
if (product != null)
mTab.setValue("C_UOM_ID", product.getC_UOM_ID());
} }
return ""; return "";
} // asi } // asi