12
返回列表 发新帖
楼主: feixiang007

[求教!]日历设置中的季度设置错了!

[复制链接]
论坛徽章:
0
11#
发表于 2012-2-2 18:02 | 只看该作者
好像metablink就是这样说的
1、修改 gl_periods和gl_period_statuses
2、TRUNCATE TABLE GL.GL_DATE_PERIOD_MAP,然后运行$GL_TOP/ADMIN/SQL/GLUABCAL.sql
但我发现ar_periods也存储记录

使用道具 举报

回复
论坛徽章:
0
12#
发表于 2012-2-2 18:18 | 只看该作者
1. Change the dates for the period using SQL*Plus.

-- Update the END_DATE in GL_PERIODS for the
affected calendar (period_set_name).

update gl_periods
set end_date = '2012-02-29'
where end_date = '2012-02-28'
and period_name = '02-12'
and period_set_name = '总帐日历';

This should update 1 row.

-- Update the END_DATE in GL_PERIOD_STATUSES for
all applications and sets of books that use this calendar.
Example:

update gl_period_statuses
set end_date = '2012-02-29'
where end_date = '2012-02-28'
and period_name = '02-12'
and set_of_books_id in ('1','2','3','4','5');


2. Truncate the GL_DATE_PERIOD_MAP table as follows:
-- After logging into sql, execute the statement

sql> TRUNCATE TABLE GL.GL_DATE_PERIOD_MAP;


3. Run the script $GL_TOP/admin/sql/GLUABCAL.sql as follows:

a) At the Unix prompt enter: cd $GL_TOP/admin/sql

b) At the next prompt enter: SQL*plus

c) Log into SQL*Plus as apps user
Enter username = apps
Enter password = apps
(or your own user defined apps account)

d) At the sql prompt enter:
sql> @gluabcal.sql

Note: Gluabcal.sql will be adding rows to gl_date_period_map
for all calendars even if they are not used so do not be surprised
to find extra rows e.g. JEBE_MONTH_VAT is seeded for Belgium localisations
so there will be many extra rows for that with a period of 'NOT ASSIGNED'.
This is harmless and can be deleted or ignored.

使用道具 举报

回复
论坛徽章:
0
13#
发表于 2012-2-2 18:18 | 只看该作者
1. Change the dates for the period using SQL*Plus.

-- Update the END_DATE in GL_PERIODS for the
affected calendar (period_set_name).

update gl_periods
set end_date = '2012-02-29'
where end_date = '2012-02-28'
and period_name = '02-12'
and period_set_name = '总帐日历';

This should update 1 row.

-- Update the END_DATE in GL_PERIOD_STATUSES for
all applications and sets of books that use this calendar.
Example:

update gl_period_statuses
set end_date = '2012-02-29'
where end_date = '2012-02-28'
and period_name = '02-12'
and set_of_books_id in ('1','2','3','4','5');


2. Truncate the GL_DATE_PERIOD_MAP table as follows:
-- After logging into sql, execute the statement

sql> TRUNCATE TABLE GL.GL_DATE_PERIOD_MAP;


3. Run the script $GL_TOP/admin/sql/GLUABCAL.sql as follows:

a) At the Unix prompt enter: cd $GL_TOP/admin/sql

b) At the next prompt enter: SQL*plus

c) Log into SQL*Plus as apps user
Enter username = apps
Enter password = apps
(or your own user defined apps account)

d) At the sql prompt enter:
sql> @gluabcal.sql

Note: Gluabcal.sql will be adding rows to gl_date_period_map
for all calendars even if they are not used so do not be surprised
to find extra rows e.g. JEBE_MONTH_VAT is seeded for Belgium localisations
so there will be many extra rows for that with a period of 'NOT ASSIGNED'.
This is harmless and can be deleted or ignored.

使用道具 举报

回复

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

本版积分规则 发表回复

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