电脑桌面
添加蚂蚁七词文库到电脑桌面
安装后可以在桌面快捷访问

NC常用脚本-凭证号重复修正脚本(NC63).txtVIP免费

NC常用脚本-凭证号重复修正脚本(NC63).txt_第1页
1/1
--begin----------备份相关的数据createtabelgl_voucher_0105asselect*fromgl_voucherwherepk_accountingbook=(selectpk_accountingbookfromorg_accountingbookwherecode='1031001-0001')andyear='2014'andperiod='08'andnum=1131anddr=0;createtabelgl_detail_0105asselect*fromgl_detailwherepk_accountingbook=(selectpk_accountingbookfromorg_accountingbookwherecode='1031001-0001')andyearv='2014'andperiodv='08'andnov=1131anddr=0;createtabelgl_vouchermaxno_0105asselect*fromgl_vouchermaxnowherepk_accountingbook=(selectpk_accountingbookfromorg_accountingbookwherecode='1031001-0001')andyear='2014'andperiod='08';----------查询出重复的两张凭证,选其中的一张修改凭证号,找出其中一张的pk_voucherselect*fromgl_voucherwherepk_accountingbook=(selectpk_accountingbookfromorg_accountingbookwherecode='0027013-0002')andyear='2014'andperiod='08'andnum=1131anddr=0;----------更新相关数据updategl_vouchersetnum=(selectmaxno+1fromgl_vouchermaxnowherepk_accountingbook=(selectpk_accountingbookfromorg_accountingbookwherecode='0027013-0002')andyear='2014'andperiod='08';)wherepk_voucher='选出需要修改的凭证的pk_voucher';updategl_detailsetnov=(selectmaxno+1fromgl_vouchermaxnowherepk_accountingbook=(selectpk_accountingbookfromorg_accountingbookwherecode='0027013-0002')andyear='2014'andperiod='08')wherepk_voucher='选出需要修改的凭证的pk_voucher';updategl_vouchermaxnosetmaxno=maxno+1wherepk_accountingbook=(selectpk_accountingbookfromorg_accountingbookwherecode='0027013-0002')andyear='2014'andperiod='08';--end

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

NC常用脚本-凭证号重复修正脚本(NC63).txt

您可能关注的文档

管理软件+ 关注
实名认证
内容提供者

管理软件资料分享

确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息
QQ群
  • 答案:my7c点击这里加入QQ群
支持邮箱
微信
  • 微信