金蝶云星空携带应收应付单明细指定字段到计划字段二开Python脚本及使用文档应收脚本:importclrclr.AddReference('Kingdee.BOS')clr.AddReference('Kingdee.BOS.Core')clr.AddReference('Kingdee.BOS.App')clr.AddReference('Kingdee.BOS.DataEntity')fromKingdee.BOSimport*fromKingdee.BOS.Coreimport*fromKingdee.BOS.Core.Billimport*fromKingdee.BOS.Core.DynamicForm.PlugInimport*fromKingdee.BOS.Core.DynamicForm.PlugIn.ControlModelimport*fromSystemimport*fromKingdee.BOS.App.Dataimport*fromKingdee.BOS.Utilimport*fromKingdee.BOS.Orm.DataEntityimport*defBeginOperationTransaction(e):forbilline.DataEntitys:foriteminbill["AP_PAYABLEENTRY"]:maTerialId=str(item["MATERIALID_Id"])#物料编码orderNo=str(item["FORDERNUMBER"])#订单号orderSeq=str(item["ORDERENTRYID"])#订单明细行内码remark=str(item["Comment"])forplanRowinbill["AP_PAYABLEPLAN"]:pmaterialId=str(planRow["FMATERIALID_S"])porderNo=str(planRow["ORDERBILLNO"])porderentryId=str(planRow["FRECEIVABLEENTRYID"])iforderNo==porderNoandorderSeq==porderentryIdandremark!="None":planRow["FREMARK"]=remark应付脚本:importclrclr.AddReference('Kingdee.BOS')clr.AddReference('Kingdee.BOS.Core')clr.AddReference('Kingdee.BOS.App')clr.AddReference('Kingdee.BOS.DataEntity')fromKingdee.BOSimport*fromKingdee.BOS.Coreimport*fromKingdee.BOS.Core.Billimport*fromKingdee.BOS.Core.DynamicForm.PlugInimport*fromKingdee.BOS.Core.DynamicForm.PlugIn.ControlModelimport*fromSystemimport*fromKingdee.BOS.App.Dataimport*fromKingdee.BOS.Utilimport*fromKingdee.BOS.Orm.DataEntityimport*defBeginOperationTransaction(e):forbilline.DataEntitys:foriteminbill["AP_PAYABLEENTRY"]:maTerialIdpay=str(item["MATERIALID_Id"])#物料编码orderNopay=str(item["FORDERNUMBER"])#订单号orderSeqpay=str(item["FOrderEntryID"])#订单明细行内码remarkpay=str(item["Comment"])#备注为例,可自己修改,明细上的二开字段"Comment"forplanRowinbill["AP_PAYABLEPLAN"]:pmaterialIdpay=str(planRow["FMATERIALID_P_Id"])#计划物料编码porderNopay=str(planRow["FPURCHASEORDERNO"])porderentryIdpay=str(planRow["FPAYABLEENTRYID"])iforderNopay==porderNopayandorderSeqpay==porderentryIdpayandremarkpay!="None":planRow["FREMARK"]=remarkpay#备注为例,可自己修改,计划上的二开字段"FREMARK"没有python开发基础请自行写插件处理详情参考文章:https://vip.kingdee.com/article/write?id=392696419771517952&productLineId=1该功能预计2023年11月版本支持,可关注版本更新内容,自行升级。