应收票据二开字段结算操作携带到应收票据结算单/付款单/收款单,配置即可
应收票据单据增加一个单选辅助基础资料 F_PUB_ASSISTANT_QTR
创建应收票据基础资料视图 ,打开数据库,找到对应账套,在视图里找到应收票据基础资料视图V_CN_BILLRECEIVABLE,如下图(不同版本的创建视图sql可能不一样,案列sql版本是PT-151005 [8.2.0.20231109])
如上图,把复制出来的sql 后面加上二开字段,按照以上 先删除应收票据基础资料视图
--先删除视图 DROP VIEW V_CN_BILLRECEIVABLE;
再执行创建应收票据基础资料视图V_CN_BILLRECEIVABLE
--再重新创建视图,这里加上二开字段 create view V_CN_BILLRECEIVABLE as SELECT L.FID AS fbillid, L.FBILLTYPE, L.FBILLNUMBER, L.FCURRENCYID, L.FISSUEDATE, L.FDUEDATE, L.FPAYMENTPERIOD, L.FPARAMOUNTFOR, L.FPARRATE, L.FDUEAMOUNTFOR, L.FDRAWER, L.FACCEPTOR, L.FACCEPTDEALNO, L.FACCEPTDATE, L.FCOMMENT, L.FREVOCABLE, L.FRECOURSE, L.FSETTLEORGID, L.FPAYORGID, L.FBILLNO AS fnumber, L.FCUSTOMERID, L.FDATE, L.FTRADEAMOUNTFOR, L.FSALEORGID, L.FDEPARTMENTID, L.FSALEGROUPID, L.FSALEERID, L.FSETTLESTATUS, L.FDOCUMENTSTATUS, L.FPARLEFTAMOUNTFOR, 'A' AS fforbidstatus, L.FCONTACTUNITTYPE, L.FCONTACTUNIT, '' AS fnouse, L.FISREC, L.FSOURREC, L.FISTRUST, L.FISPLEDGE, L.FISINIT, O.FESTIMATEDRATE, O.FESTIMATEDCHARGE, O.FESTIMATEDREALRECAMOUNT, O.FAVGESTIMATEDRATE, O.FNOTESTATUS, L.FRECBANKACNTID, O.FBANKSINGIN, O.FISSUPPORTSPLIT, O.FNOSPLITAMOUNT, O.FSPLITAMOUNT, O.FISELECTRONICBILL, O.FRCBILLNUMBER, O.FSUBBILLSTARTNO, O.FSUBBILLENDNO, O.FEQUIDIFFBILL, O.FSOURRECBILL, O.FPARENTBILL ,L.F_PUB_ASSISTANT_QTR FROM dbo.T_CN_BILLRECEIVABLE AS L INNER JOIN dbo.T_CN_BILLRECEIVABLE_O AS O ON L.FID = O.FID; 注意:不同版本的创建视图sql可能不一样,案列sql版本是PT-151005 [8.2.0.20231109]
再在应收票据基础资料上加上相同二开字段单选辅助基础资料,标识,字段名要和应收票据单据一样即F_PUB_ASSISTANT_QTR
扩展应收票据结算单,把票据流水号(这个是应收票据基础资料)引用属性加上二开字段
在应收票据结算单上加一个基础资料属性字段,关联基础资料选择票据流水,关联基础资料字段名选择二开字段即可
付款单应收票据背书页签同上面应收票据结算单类似操作即可(其实收款单,付款单上都有应收票据基础资料)如下图:
最后效果图
1先做一张应收票据,再背书,应收票据结算单和付款单背书页签显示二开加的字段
应收票据二开字段结算操作携带到应收票据结算单/付款单/收款单,配置即可
本文2024-09-23 01:57:24发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-149281.html