服务热线:

400-665-0027

知识资讯
联系我们

电话:400-665-0027


您当前位置:首页 > 知识资讯  > 知识学习 > 正文知识学习
kis旗舰版总账期末结账提示:定义的应用程序或对象错误?
服务热线:400-665-0027 新购有特价、金蝶老客户升级金蝶云产品可以享受5折优惠,送手机、送话费,好礼不断!

【问题描述】

旗舰版总账期末结账提示:定义的应用程序或对象错误?


【原因分析】

该问题的原因为总账余额表存在以后期间的数据导致。


【解决方案】

可参考以下脚本执行处理:

declare @FCurrentYear int

declare @FCurrentPeriod int


select @FCurrentYear = FValue from t_SystemProfile where FCategory = 'gl' and FKey = 'currentyear'

select @FCurrentPeriod = FValue from t_SystemProfile where FCategory = 'gl' and FKey = 'currentperiod'


delete from t_balance where FYear * 1000 + FPeriod > @FCurrentYear * 1000 + @FCurrentPeriod

delete from t_QuantityBalance where FYear * 1000 + FPeriod > @FCurrentYear * 1000 + @FCurrentPeriod

delete from t_ProfitAndLoss where FYear * 1000 + FPeriod > @FCurrentYear * 1000 + @FCurrentPeriod


【注意事项】

正式账套执行脚本前请先做好备份,建议待在测试账套中核实无误后再在正式账套中执行。