關于U8+存貨核算2021年查詢報表或查詢憑證,會計年度顯示不了2021年度的解決方案
解決方案:
方案一、補丁解決:U8+V16.0安裝SP1補丁包、U8+V15.1和13.0安裝存貨核算模塊(IA結尾)補丁。注意:請?zhí)崆皞浞葙~套數(shù)據(jù),安裝補丁后需要對問題賬套執(zhí)行腳本補丁。
方案二、腳本解決:請?zhí)崆皞浞葙~套數(shù)據(jù),再通過SQL對問題賬套執(zhí)行腳本處理:
if not exists(select EnumType from aa_enum where EnumType=N’IA.iYear’ and enumcode=N’2021′ and LocaleId=N’zh-cn’)
insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N’IA.iYear’,2021,N’zh-cn’,2021,21,N’U870′)
if not exists(select EnumType from aa_enum where EnumType=N’IA.iYear’ and enumcode=N’2022′ and LocaleId=N’zh-cn’)
insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N’IA.iYear’,2022,N’zh-cn’,2022,22,N’U870′)
if not exists(select EnumType from aa_enum where EnumType=N’IA.iYear’ and enumcode=N’2023′ and LocaleId=N’zh-cn’)
insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N’IA.iYear’,2023,N’zh-cn’,2023,23,N’U870′)
if not exists(select EnumType from aa_enum where EnumType=N’IA.iYear’ and enumcode=N’2024′ and LocaleId=N’zh-cn’)
insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N’IA.iYear’,2024,N’zh-cn’,2024,24,N’U870′)
if not exists(select EnumType from aa_enum where EnumType=N’IA.iYear’ and enumcode=N’2025′ and LocaleId=N’zh-cn’)
insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N’IA.iYear’,2025,N’zh-cn’,2025,25,N’U870′)
if not exists(select EnumType from aa_enum where EnumType=N’IA.iYear’ and enumcode=N’2026′ and LocaleId=N’zh-cn’)
insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N’IA.iYear’,2026,N’zh-cn’,2026,26,N’U870′)
if not exists(select EnumType from aa_enum where EnumType=N’IA.iYear’ and enumcode=N’2027′ and LocaleId=N’zh-cn’)
insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N’IA.iYear’,2027,N’zh-cn’,2027,27,N’U870′)
if not exists(select EnumType from aa_enum where EnumType=N’IA.iYear’ and enumcode=N’2028′ and LocaleId=N’zh-cn’)
insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N’IA.iYear’,2028,N’zh-cn’,2028,28,N’U870′)
if not exists(select EnumType from aa_enum where EnumType=N’IA.iYear’ and enumcode=N’2029′ and LocaleId=N’zh-cn’)
insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N’IA.iYear’,2029,N’zh-cn’,2029,29,N’U870′)
if not exists(select EnumType from aa_enum where EnumType=N’IA.iYear’ and enumcode=N’2030′ and LocaleId=N’zh-cn’)
insert into aa_enum (EnumType,EnumCode,LocaleId,EnumName,EnumIndex,cProjectNO)values(N’IA.iYear’,2030,N’zh-cn’,2030,30,N’U870′)

