123
返回列表 发新帖
楼主: msxwj

系统余额表不平衡gl_balances

[复制链接]
论坛徽章:
28
ERP板块每日发贴之星
日期:2009-07-29 01:01:02蛋疼蛋
日期:2012-11-08 17:26:092013年新春福章
日期:2013-02-25 14:51:24阿斯顿马丁
日期:2013-08-21 16:36:45三菱
日期:2013-10-14 11:14:46劳斯莱斯
日期:2013-10-14 11:33:14一汽
日期:2013-10-17 15:26:47问答徽章
日期:2013-10-25 10:35:252014年新春福章
日期:2014-02-18 16:43:09马上有钱
日期:2014-02-18 16:43:09
21#
发表于 2012-4-17 11:47 | 只看该作者
winmaster 发表于 2012-4-17 08:22
各位好,还没解决,影响到二个汇总科目(应收账款_缺省,主营业务收入_外销),共计20个明细科目,想UPdate ...

正规应该把QUARTER_TO_DATE和PROJECT_TO_DATE数据也改了。汇总科目不用管,删除汇总模板后重建,系统会重新计算

使用道具 举报

回复
论坛徽章:
0
22#
发表于 2013-12-10 11:58 | 只看该作者
最近我也遇到类似问题,感谢大家指点,现附上Update SQL:
-- 12211 Nov-13

UPDATE gl_balances
   SET begin_balance_cr = begin_balance_cr - 106.23
      ,quarter_to_date_cr = quarter_to_date_cr - 106.23
      ,project_to_date_cr = project_to_date_cr - 106.23
WHERE set_of_books_id =  ***
and code_combination_id = 51302
and period_name = 'Nov-13';

-- 12211 Dec-13
UPDATE gl_balances
   SET begin_balance_cr = begin_balance_cr - 106.23
      ,quarter_to_date_cr = quarter_to_date_cr - 106.23
      ,project_to_date_cr = project_to_date_cr - 106.23
WHERE set_of_books_id = ***
and code_combination_id = 51302
and period_name = 'Dec-13';

-- 60611 Nov-13

UPDATE gl_balances
   SET begin_balance_dr = begin_balance_dr - 106.23
      ,quarter_to_date_dr = quarter_to_date_dr - 106.23
      ,project_to_date_dr = project_to_date_dr - 106.23
WHERE set_of_books_id = ***
and code_combination_id = 49500
and period_name = 'Nov-13';

-- 60611 Dec-13

UPDATE gl_balances
   SET begin_balance_dr = begin_balance_dr - 106.23
      ,quarter_to_date_dr = quarter_to_date_dr - 106.23
      ,project_to_date_dr = project_to_date_dr - 106.23
WHERE set_of_books_id = ***
and code_combination_id = 49500
and period_name = 'Dec-13';

/

使用道具 举报

回复
论坛徽章:
0
23#
发表于 2014-7-4 16:44 | 只看该作者
按照楼上修复的方法就可以解决了吗

使用道具 举报

回复
论坛徽章:
0
24#
发表于 2014-7-4 16:45 | 只看该作者
通用遇到这个问题,ORACLE 11i的

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表