用友软件免费下载(www.bbsufida.com)旨在提供全系列最新最全的用友财务软件免费下载地址,快速下载请添加微信 yyrjgls

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

admin2016-04-19618用友T3科目删除不允许

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

微信号:yyrjlls
技术咨询,有偿服务!
复制微信号
建立新年度账后,科目没有期初余额,删除科目时,系统不允许删除, 提示科目已使用。 问题描述:建立新年度账后,科目没有期初余额,删除科目时,系统不允许删除,
提示科目已使用。
分析及处理:这是由于系统通常要检查一些表中是否有该科目,如果没有才允许删除。检查的表有code(科目表)、gl_accvouch(凭证及明细账表)、gl_accsum(科目总账)、gl_accass(辅助总账)、dsigns(凭证类别子表)、gl_bfreq(常用凭证)、gl_bautotran
(自定义转账定义)、gl_bmulti(多栏定义)、gl_bdigest(常用摘要表)、gl_mcodeused
(科目常用项)、rp_bankrecp(银行对账单)、rp_cheque(支票登记薄)。具体语句如下:
select
*
from
code
where
ccode
='111'goselect
top
1
ccode
from
GL_accvouch
where
ccode='111'goselect
top
1
ccode
from
GL_accsum
where
ccode='111'
and
(mb<>0
or

md<>0
or
mc<>0
or
me<>0
or
mb_f<>0
or
md_f<>0
or
mc_f<>0
or
me_f<>0

or
nb_s<>0
or
nd_s<>0
or
nc_s<>0
or
ne_s<>0)goselect
top
1
ccode
from
GL_accass
where
ccode='111'
and
(mb<>0
or

md<>0
or
mc<>0
or
me<>0
or
mb_f<>0
or
md_f<>0
or
mc_f<>0
or
me_f<>0

or
nb_s<>0
or
nd_s<>0
or
nc_s<>0
or
ne_s<>0)goselect
top
1
*
from
dsigns
where
ccode='111'
order
by
ccodegoselect
top
1
*
from
GL_bfreq
where
ccode='111'
order
by
ccodegoselect
top
1
*
from
GL_bautotran
where
ccode='111'
order
by
ccodegoselect
top
1
*
from
GL_bmulti
where
ccode='111'
order
by
ccodegoselect
top
1
*
from
GL_bmulti
where
ccodes='111'
order
by
ccodesgoselect
top
1
*
from
GL_bdigest
where
ccode='111'
order
by
ccodegoselect
top
1
ccode
from
GL_mcodeused
where
ccode='111'goselect
top
1
*
from
RP_bankrecp
where
ccode='111'
order
by
ccodegoselect
top
1
*
from
RP_cheque
where
ccode='111'
order
by
ccodegoselect
top
1
*
from
code
where
ccode='111'
order
by
ccodego

本文链接:https://www.bbsufida.com/t3/7127.html

热门文章
侧栏广告位
随机文章