IDEMPIERE-4112 NPE In Generate Shipment Manually / peer review - restore column accessed before the patch
This commit is contained in:
parent
4739aea8c8
commit
579c5378bf
|
@ -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@:"
|
||||||
|
|
Loading…
Reference in New Issue