返工工单生产用料清单成品不参与MRP运算

返工工单领料单直接领产品本身, 不需要参与MRP运算
clr.AddReference('Kingdee.BOS')
clr.AddReference('Kingdee.BOS.Core')
clr.AddReference('Kingdee.BOS.Log')
clr.AddReference('Kingdee.BOS.ServiceHelper')
from Kingdee.BOS import *
from Kingdee.BOS.Core import *
from Kingdee.BOS.Log import *
from Kingdee.BOS.ServiceHelper import *
def OnPreparePropertys(e):
e.FieldKeys.Add("FMOType");
e.FieldKeys.Add("FMATERIALID");
e.FieldKeys.Add("FISMRPRUN");
def BeginOperationTransaction(e):
billDatas = e.DataEntitys;
if len(billDatas)>0:
for billData in billDatas:
moBillType=billData["MOType_Id"];
#raise Exception(str(moBillType));
billTypePara = BusinessDataServiceHelper.LoadBillTypePara(this.Context, "MoBillTypeParaSetting",moBillType);
#raise Exception(str(billTypePara["ProductType"]));
#Logger.Info("CS002", str(IsEntrust));
if (str(billTypePara["ProductType"])== '2'):#返工工单
返工工单生产用料清单成品不参与MRP运算
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。



