取消采购订单默认计划确认,改成审核时才确认

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

取消采购订单默认计划确认,改成审核时才确认

  1. 先在bos打开采购订单,取消勾选计划确认字段默认值

    image.webp

  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"]=True


image.webp

3. 配置审核时刷新计划确认字段

image.webp


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步,在反审核操作也配置刷新计划确认字段

取消采购订单默认计划确认,改成审核时才确认

先在bos打开采购订单,取消勾选计划确认字段默认值审核操作注册插件:import clrclr.AddReference('Kingdee.BOS')clr.AddReference('Kingde...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息