找回密码
 注册账号

QQ登录

只需一步,快速开始

手机号码,快捷登录

手机号码,快捷登录

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

[求助] 求助!用友升级出现问题了

[复制链接]
发表于 2010-12-27 14:02:21 | 显示全部楼层 |阅读模式

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

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

×
我想把用友通10.1升级到T3,直接升不上
于是我就先升到10.3,10.3恢复后升级SQL出现了问题,请问怎么解决呀
我10.3的补丁打过还是一样


--shenxy 2007-11-13 修改添加项目的COY值
declare @MaxCOY int
declare @BlueIDCOY int
set @MaxCOY = (select Max(COY) from invoiceitema where cardnum='24' and cardsection = 'B')
if exists(select * from invoiceitema where cardnum='24' and tablename = 'Rdrecords' and fieldname ='cBlueID')
begin
   set @BlueIDCOY = (select COY from invoiceitema where cardnum='24' and tablename = 'Rdrecords' and fieldname ='cBlueID')
   if @MaxCOY = @BlueIDCOY
      delete from invoiceitema where cardnum='24' and tablename = 'Rdrecords' and fieldname ='cBlueID'
end
set @MaxCOY = (select Max(COY) from invoiceitema where cardnum='24' and cardsection = 'B')
if not exists(select * from invoiceitema where cardnum='24' and tablename = 'Rdrecords' and fieldname ='cBlueID')
begin
insert into invoiceitema values ('24','99','参照兰字ID',1,0,0,NULL,'RdRecords','cBlueID',3,5,NULL,'B','参照兰字ID','参照兰字ID',1,4,840,0,0,0,NULL,NULL,NULL,1,0,0,NULL,0,0,45,@MaxCOY + 1,97,0)
end
if not exists(select * from invoiceitema where cardnum='24' and fieldname ='iTaxUnitPrice' and cardsection = 'B')
begin
insert into invoiceitema values ('24','11','含税单价',0,1,0,NULL,'RdRecords','iTaxUnitPrice',4,1,NULL,'B','含税单价','含税单价',1,16,1080,2,0,1,'|0',NULL,NULL,1,0,0,NULL,0,0,500,@MaxCOY + 2,NULL,0)
end
if not exists(select * from invoiceitema where cardnum = '24' and fieldname = 'iTaxPrice' and cardsection = 'B')
begin
insert into invoiceitema values ('24','15','价税合计',0,1,0,NULL,'RdRecords','iTaxPrice',4,1,NULL,'B','价税合计','价税合计',1,20,1125,2,0,1,'|0',NULL,NULL,1,1,0,NULL,0,0,500,@MaxCOY + 3,NULL,0)
end
if not exists(select * from invoiceitema where cardnum = '24' and fieldname = 'iTaxRate' and cardsection = 'B')
begin
insert into invoiceitema values ('24','19','税率',0,1,0,NULL,'RdRecords','iTaxRate',4,1,NULL,'B','税率','税率',1,20,1125,2,0,1,'|0',NULL,NULL,1,0,0,NULL,0,0,500,@MaxCOY + 4,NULL,0)
end
00.jpg
发表于 2010-12-27 16:12:11 | 显示全部楼层
你把以上语句复制到SQL分析查询中分析跟踪一下。
发表于 2010-12-27 17:33:51 | 显示全部楼层
SQL里查一下,涉及到的几个表结构,升级前后的表对比一下,看列多了还是少了。
发表于 2010-12-28 14:17:47 | 显示全部楼层
呵呵 年结常出现这样的情况  不过跟踪一下即可明白
发表于 2012-11-2 11:38:23 | 显示全部楼层
友通10.1升级到T3很简单呀
回复 点赞 拍砖

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-26 14:40 , Processed in 0.070134 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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