找回密码
 注册账号

QQ登录

只需一步,快速开始

手机号码,快捷登录

手机号码,快捷登录

初学者课程:T3自学|T6自学|U8自学软件下载课件下载工具下载资料:通资料|U8资料|NC|培训|年结积分规则 | 使用常见问题Q&A
知识库:U8 | | NC | U9 | OA | 政务U8|U9|NCC|NC65|NC65客开|NCC客开新手必读 | 任务 | 快速增金币用友QQ群[微信群]
查看: 13061|回复: 3

[经验] 存货核算模块&凭证选不到2021年度的问题解决

[复制链接]
发表于 2021-2-5 10:15:17 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册账号

×
2021 结转之后,可能会出现存货核算模块下的部分功能、凭证无法查询和选择2021年度数据的问题。


解决方式有3种:
1. 打官方最新的IA补丁。ISD没有续费,所以打不到最新的IA补丁。找朋友要了一个20年的IA补丁,打上了,没有生效。

2.查询时新增一个方案,方案内设置默认的会计年度

3.后台aa_enum表中自己插入一条2021年度的信息,插入前先查询一下,是否是因为缺少年度信息引起的。可以先在测试账套尝试
代码如下:
select * from aa_enum where EnumCode='2021' AND EnumType='IA.iYear'   ---查询
insert into aa_enum values('IA.iYear',2021,'zh-cn',2021,21,'U870',NULL)    ---插入


发表于 2021-2-7 19:30:37 | 显示全部楼层

关于U8+存货核算2021年查询报表或查询凭证,会计年度显示...

关于U8+存货核算2021年查询报表或查询凭证,会计年度显示不了2021年度的解决方案。



解决方案:



方案一、补丁解决:U8+V16.0安装SP1补丁包、U8+V15.1和13.0安装存货核算模块(IA结尾)补丁。注意:请提前备份账套数据,安装补丁后需要对问题账套执行脚本补丁。


方案二、脚本解决:请提前备份账套数据,再通过SQL对问题账套执行脚本处理:

  1. if not exists(select EnumType from aa_enum where EnumType=N'IA.iYear' and enumcode=N'2021' and LocaleId=N'zh-cn')
  2. insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N'IA.iYear',2021,N'zh-cn',2021,21,N'U870')
  3. if not exists(select EnumType from aa_enum where EnumType=N'IA.iYear' and enumcode=N'2022' and LocaleId=N'zh-cn')
  4. insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N'IA.iYear',2022,N'zh-cn',2022,22,N'U870')
  5. if not exists(select EnumType from aa_enum where EnumType=N'IA.iYear' and enumcode=N'2023' and LocaleId=N'zh-cn')
  6. insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N'IA.iYear',2023,N'zh-cn',2023,23,N'U870')
  7. if not exists(select EnumType from aa_enum where EnumType=N'IA.iYear' and enumcode=N'2024' and LocaleId=N'zh-cn')
  8. insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N'IA.iYear',2024,N'zh-cn',2024,24,N'U870')
  9. if not exists(select EnumType from aa_enum where EnumType=N'IA.iYear' and enumcode=N'2025' and LocaleId=N'zh-cn')
  10. insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N'IA.iYear',2025,N'zh-cn',2025,25,N'U870')
  11. if not exists(select EnumType from aa_enum where EnumType=N'IA.iYear' and enumcode=N'2026' and LocaleId=N'zh-cn')
  12. insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N'IA.iYear',2026,N'zh-cn',2026,26,N'U870')
  13. if not exists(select EnumType from aa_enum where EnumType=N'IA.iYear' and enumcode=N'2027' and LocaleId=N'zh-cn')
  14. insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N'IA.iYear',2027,N'zh-cn',2027,27,N'U870')
  15. if not exists(select EnumType from aa_enum where EnumType=N'IA.iYear' and enumcode=N'2028' and LocaleId=N'zh-cn')
  16. insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N'IA.iYear',2028,N'zh-cn',2028,28,N'U870')
  17. if not exists(select EnumType from aa_enum where EnumType=N'IA.iYear' and enumcode=N'2029' and LocaleId=N'zh-cn')
  18. insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N'IA.iYear',2029,N'zh-cn',2029,29,N'U870')
  19. if not exists(select EnumType from aa_enum where EnumType=N'IA.iYear' and enumcode=N'2030' and LocaleId=N'zh-cn')
  20. insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N'IA.iYear',2030,N'zh-cn',2030,30,N'U870')
复制代码

回复 点赞 拍砖

使用道具 举报

发表于 2021-2-26 19:24:11 | 显示全部楼层
好贴  ~~~~~~~~~~好贴  ~~~~~~~~~~
回复 点赞 拍砖

使用道具 举报

发表于 2022-6-27 16:25:32 | 显示全部楼层
都是补丁惹的祸
回复 点赞 拍砖

使用道具 举报

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

本版积分规则

QQ|站长微信|Archiver|手机版|小黑屋|用友之家 ( 蜀ICP备07505338号|51072502110008 )

GMT+8, 2024-4-25 01:57 , Processed in 0.041855 second(s), 8 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表