博斯集成账务如何反结账 _0
2018-3-13 0:0:0 wondial博斯集成账务如何反结账 _0
博斯集成账务如何反结账''如果您的问题还没有解决,可以到 T+搜索>>上找一下答案
相关阅读
- 用友T3用友通系统重装后,没有账套备份,如何恢复账套2019-4-29 8:0:0
- 企业是接单生产模式,需求不稳定,经常出现紧急订单,如何判断这样的紧急订单会不会造成计划和生产的..2019-4-27 8:0:0
- 企业在车间管理中,可以依据工段、车间、设备、员工等多种资源进行明细式派工?2019-4-27 8:0:0
- 以物易物在用友T3用友通通2005中如何实现2019-4-27 8:0:0
- 什么是安全库存、最低库存、最高库存?用友软件U8+中是如何管理的?2019-4-27 8:0:0
- 一般企业普通采购流程分为哪几种?2019-4-23 8:0:0
- 会计在填制凭证时会出现漏录某张凭证的情况,系统支持补录会计凭证吗?_12019-4-23 8:0:0
- 企业的生产班组能生产哪些品种,产能有多大很明确,这种情况下ERP系统能不能代替人工按照生产计划..2019-4-23 8:0:0
- 什么是动态安全库存?U8+的动态安全库存是如何实现的?2019-4-23 8:0:0
- 为什么说用友U8+的成本管理是一个完整的成本管理体系?2019-4-23 8:0:0
最新信息
U6普及版3.1 plus1科目汇总打印U6普及版3.1 plus1科目汇总打印
U6普及版3.1 plus1-科目汇总打印
自动编号: | 19004 | 产品版本: | U6普及版3.1 plus1 |
产品模块: | 总账 | 所属行业: | 通用 |
适用产品: | 809 | 关 键 字: | |
问题名称: | 科目汇总打印 | ||
问题现象: | 科目下级科目较多,有时需要汇总打印至上一级,有时需要汇总打印至一级科目,有时不汇总打印,在科目中改工作量极大! | ||
原因分析: | 现在还没有工具,你可以在数据库中分情况按照以下语句执行,操作前请备份好数据! --不汇总 update code set cgather=null --末级汇总到一级 declare @lenth as int set @lenth=(select left(codingrule,1) from gradedef where keyword='code') update code set cgather=left(ccode,@lenth) where igrade<>1 --末级汇总到上一级(中间级汇总到上一级等没有意义) declare @ccode as nvarchar(1000) declare @newccode as nvarchar(1000) declare @igrade as int declare @lenth as int DECLARE TST_CURSOR CURSOR FOR SELECT ccode,igrade FROM code where bend=1 and igrade>1 ORDER BY ccode OPEN TST_CURSOR FETCH NEXT FROM TST_CURSOR into @ccode,@igrade WHILE @@FETCH_STATUS = 0 BEGIN set @lenth=(select right(left(codingrule,@igrade),1) from gradedef where keyword='code') set @newccode=(select left(ccode,len(ccode)-@lenth) from code where ccode=@ccode) update code set cgather=@newccode where ccode=@ccode FETCH NEXT FROM TST_CURSOR into @ccode,@igrade END CLOSE TST_CURSOR DEALLOCATE TST_CURSOR | ||
解决方案: | 现在还没有工具,你可以在数据库中分情况按照以下语句执行,操作前请备份好数据! --不汇总 update code set cgather=null --末级汇总到一级 declare @lenth as int set @lenth=(select left(codingrule,1) from gradedef where keyword='code') update code set cgather=left(ccode,@lenth) where igrade<>1 --末级汇总到上一级(中间级汇总到上一级等没有意义) declare @ccode as nvarchar(1000) declare @newccode as nvarchar(1000) declare @igrade as int declare @lenth as int DECLARE TST_CURSOR CURSOR FOR SELECT ccode,igrade FROM code where bend=1 and igrade>1 ORDER BY ccode OPEN TST_CURSOR FETCH NEXT FROM TST_CURSOR into @ccode,@igrade WHILE @@FETCH_STATUS = 0 BEGIN set @lenth=(select right(left(codingrule,@igrade),1) from gradedef where keyword='code') set @newccode=(select left(ccode,len(ccode)-@lenth) from code where ccode=@ccode) update code set cgather=@newccode where ccode=@ccode FETCH NEXT FROM TST_CURSOR into @ccode,@igrade END CLOSE TST_CURSOR DEALLOCATE TST_CURSOR 温馨提示:如果您的问题还没有解决,欢迎进入用友云基地。 |