用友软件建立新年度账后,科目没有期初余额,删除科目时,系统不允许删除, 提示科目已使用。

微信号:yyrjlls
技术咨询,有偿服务!
复制微信号
建立新年度账后,科目没有期初余额,删除科目时,系统不允许删除, 提示科目已使用。
问题描述:建立新年度账后,科目没有期初余额,删除科目时,系统不允许删除,提示科目已使用。分析及处理:这是由于系统通常要检查一些表中是否有该科目,如果没有才允许删除。检查的表有code(科目表)、gl_accvouch(凭证及明细账表)、gl_accsum(科目总账)、gl_accass(辅助总账)、dsigns(凭证类别子表)、gl_bfreq(常用凭证)、gl_bautotran(自定义转账定义)、gl_bmulti(多栏定义)、gl_bdigest(常用摘要表)、gl_mcodeused(科目常用项)、rp_bankrecp(银行对账单)、rp_cheque(支票登记薄)。具体语句如下:select*fromcodewhereccode='111'goselecttop1ccodefromGL_accvouchwhereccode='111'goselecttop1ccodefromGL_accsumwhereccode='111'and(mb<>0ormd<>0ormc<>0orme<>0ormb_f<>0ormd_f<>0ormc_f<>0orme_f<>0ornb_s<>0ornd_s<>0ornc_s<>0orne_s<>0)goselecttop1ccodefromGL_accasswhereccode='111'and(mb<>0ormd<>0ormc<>0orme<>0ormb_f<>0ormd_f<>0ormc_f<>0orme_f<>0ornb_s<>0ornd_s<>0ornc_s<>0orne_s<>0)goselecttop1*fromdsignswhereccode='111'orderbyccodegoselecttop1*fromGL_bfreqwhereccode='111'orderbyccodegoselecttop1*fromGL_bautotranwhereccode='111'orderbyccodegoselecttop1*fromGL_bmultiwhereccode='111'orderbyccodegoselecttop1*fromGL_bmultiwhereccodes='111'orderbyccodesgoselecttop1*fromGL_bdigestwhereccode='111'orderbyccodegoselecttop1ccodefromGL_mcodeusedwhereccode='111'goselecttop1*fromRP_bankrecpwhereccode='111'orderbyccodegoselecttop1*fromRP_chequewhereccode='111'orderbyccodegoselecttop1*fromcodewhereccode='111'orderbyccodego
本文链接:https://www.bbsufida.com/t3/7127.html