IDEMPIERE-4112 NPE In Generate Shipment Manually / peer review - restore column accessed before the patch

This commit is contained in:
Carlos Ruiz 2019-11-25 15:31:22 +01:00
parent 4739aea8c8
commit 579c5378bf
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ public class MInOut extends X_M_InOut implements DocAction
setM_Warehouse_ID (order.getM_Warehouse_ID()); setM_Warehouse_ID (order.getM_Warehouse_ID());
setIsSOTrx (order.isSOTrx()); setIsSOTrx (order.isSOTrx());
if (C_DocTypeShipment_ID == 0) { if (C_DocTypeShipment_ID == 0) {
MDocType dto = MDocType.get(getCtx(), order.getC_DocTypeTarget_ID()); MDocType dto = MDocType.get(getCtx(), order.getC_DocType_ID());
C_DocTypeShipment_ID = dto.getC_DocTypeShipment_ID(); C_DocTypeShipment_ID = dto.getC_DocTypeShipment_ID();
if (C_DocTypeShipment_ID <= 0) if (C_DocTypeShipment_ID <= 0)
throw new AdempiereException("@NotFound@ @C_DocTypeShipment_ID@ - @C_DocType_ID@:" throw new AdempiereException("@NotFound@ @C_DocTypeShipment_ID@ - @C_DocType_ID@:"