取消采购订单默认计划确认,改成审核时才确认
先在bos打开采购订单,取消勾选计划确认字段默认值
审核操作注册插件:
import clr
clr.AddReference('Kingdee.BOS')
clr.AddReference('Kingdee.BOS.Core')
clr.AddReference('Kingdee.BOS.App')
from Kingdee.BOS import *
from Kingdee.BOS.Core.DynamicForm.PlugIn import *
from Kingdee.BOS.Core.Base import *
from Kingdee.BOS.App.Data import *
from Kingdee.BOS.Log import *
def OnPreparePropertys(e):
e.FieldKeys.Add("FPlanConfirm");
def BeforeExecuteOperationTransaction(e):
if e.SelectedRows != None:
for billItem in e.SelectedRows:
billItemEntrys=billItem["POOrderEntry"];
for entryItem in billItemEntrys:
entryItem["PlanConfirm"]=True
3. 配置审核时刷新计划确认字段
4.参考第2步,在反审核操作也配置插件
import clr
clr.AddReference('Kingdee.BOS')
clr.AddReference('Kingdee.BOS.Core')
clr.AddReference('Kingdee.BOS.App')
from Kingdee.BOS import *
from Kingdee.BOS.Core.DynamicForm.PlugIn import *
from Kingdee.BOS.Core.Base import *
from Kingdee.BOS.App.Data import *
from Kingdee.BOS.Log import *
def OnPreparePropertys(e):
e.FieldKeys.Add("FPlanConfirm");
def BeforeExecuteOperationTransaction(e):
if e.SelectedRows != None:
for billItem in e.SelectedRows:
billItemEntrys=billItem["POOrderEntry"];
for entryItem in billItemEntrys:
entryItem["PlanConfirm"]=False
5.参考第3步,在反审核操作也配置刷新计划确认字段
取消采购订单默认计划确认,改成审核时才确认
本文2024-09-16 19:03:12发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-26091.html