系统中,简单生产入库单下推简单生产领料单的单据转换是定死的,即使新增单据转换启用也看不到。
如果需要启用新的单据转换,需要1.表单插件来移除系统单据转;2.停止系统单据转换;3.新建单据转换并启用。
1.以下是标准单据转换:
2.表单插件脚本(移除指定单据转换规则)
clr.AddReference('Kingdee.BOS')
clr.AddReference('Kingdee.BOS.Core')
clr.AddReference('Kingdee.BOS.DataEntity')
clr.AddReference('Kingdee.BOS.App')
from Kingdee.BOS import*
from Kingdee.BOS.Core import*
from Kingdee.BOS.Core.Metadata import*
from Kingdee.BOS.Core.Metadata.EntityElement import*
from Kingdee.BOS.Core.Metadata.ConvertElement.PlugIn.Args import*
from Kingdee.BOS.App.Data import *
from Kingdee.BOS.Log import *
def OnShowConvertOpForm(e):
replaceRelations=e.ReplaceRelations
t=-1
for replaceRelation in replaceRelations:
if(replaceRelation.SourceFormId=="ENG_BomExpandBill" and replaceRelation.TargetFormId=="SP_PickMtrl"):
t=replaceRelations.IndexOf(replaceRelation);
break;
if (t>=0):
e.ReplaceRelations.RemoveAt(t)
推荐阅读