检验单生成不良品处理单,默认不良处理字段为空原创
5人赞赏了该文章
52次浏览
编辑于2024年07月01日 17:39:26
检验单生成不良品处理单,默认不良处理字段为空
修改单据转换规则 注册python插件。
import clr
clr.AddReference("Kingdee.BOS.Core")
clr.AddReference("Kingdee.BOS.DataEntity")
clr.AddReference("Kingdee.K3.FIN.CN.App.Core")
from Kingdee.BOS.DataEntity import *
from Kingdee.BOS.Core.Metadata.FieldElement import *
from Kingdee.K3.FIN.CN.App.Core import *
#add by yl
def AfterConvert(e):
headEntity = e.Result.FindByEntityKey("FBillHead")
accountFld = e.TargetBusinessInfo.GetField("FDefProcess")
for item in headEntity:
cl=item["Entity"]
for dy in cl:
dy["DefProcess"]=" "
推荐阅读