fix error with Make-To-Kit
This commit is contained in:
parent
3277f5967c
commit
67b10fad9f
|
@ -594,16 +594,6 @@ public class MPPOrder extends X_PP_Order implements DocAction
|
||||||
// Auto receipt and issue for kit
|
// Auto receipt and issue for kit
|
||||||
if (MPPOrderBOM.BOMTYPE_Make_To_Kit.equals(obom.getBOMType()) && MPPOrderBOM.BOMUSE_Manufacturing.equals(obom.getBOMUse()))
|
if (MPPOrderBOM.BOMTYPE_Make_To_Kit.equals(obom.getBOMType()) && MPPOrderBOM.BOMUSE_Manufacturing.equals(obom.getBOMUse()))
|
||||||
{
|
{
|
||||||
if(!MPPOrder.DOCSTATUS_Completed.equals(getDocStatus()))
|
|
||||||
{
|
|
||||||
throw new AdempiereException( Msg.translate(getCtx(),MRefList.getListName(getCtx(), MPPOrderBOM.BOMTYPE_AD_Reference_ID, MPPOrderBOM.BOMTYPE_Make_To_Kit))
|
|
||||||
+ " "
|
|
||||||
+ Msg.translate(getCtx(), MPPOrder.COLUMNNAME_PP_Order_ID)
|
|
||||||
+" : "
|
|
||||||
+ getDocumentNo()
|
|
||||||
+ " "+Msg.getMsg(getCtx(), "ShipmentCreateDocNotCompleted"));
|
|
||||||
}
|
|
||||||
|
|
||||||
Timestamp today = new Timestamp(System.currentTimeMillis());
|
Timestamp today = new Timestamp(System.currentTimeMillis());
|
||||||
ArrayList[][] issue = new ArrayList[m_lines.length][1];
|
ArrayList[][] issue = new ArrayList[m_lines.length][1];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue