KIS 商贸版1.1,业务期末结账报错
问题表现: KIS 商贸版1.1,业务期末结账时提示:“结账过程中遇到错误”。 解决方法: 此问题一般属于程序控制不严导致的数据问题。 主要原因有如下两方面: 1、 商品计价方法为先进先出法,并采用了保质期管理(注意:只有分批认定 法计价方法才能进行保质期管理); 金蝶知识库文档 金蝶软件(中国)有限公司 客户服务中心 第 29 页 共 33 页 2、 商品计价方法为分批认定法,但业务处理中出现了批次相同,但生产采购日期或保质期不同的记录。 可分别参考下述SQL语句处理,处理完成后建议打补丁PT017675和PT020945。 1、 商品计价方法为先进先出法,并采用了保质期管理(注意:只有分批认定法计价方法才能进行保质期管理); update t_icitem set fiskfperiod=0,fkfperiod=0 where ftrack<>80 update a set a.fkfdate=null,a.fperioddate=null,a.fkfperiod=0 from t_cc_stockbillentry a inner join t_icitem b on a.fitemid=b.fitemid where b.ftrack<>80 update c set c.fkfdate='1900-01-01',c.fperioddate='1900-01-01',c.fkfperiod=0 from t_cc_stockbillentry c inner join t_icitem d on c.fitemid=d.fitemid where d.ftrack<>80 2、 商品计价方法为分批认定法,但业务处理中出现了批次相同,但生产采购日期或保质期不同的记录。 select fitemid,fbatchno,fauxpropid,min(fkfdate) as fkfdate,min(fperioddate) as fperioddate into temp1 from t_cc_stockbillentry group by fitemid ,fbatchno,fauxpropid update a set a.fkfdate=b.fkfdate,a.fperioddate=b.fperioddate from t_cc_stockbillentry a inner join temp1 b on a.fitemid=b.fitemid and a.fbatchno=b.fbatchno and a.fauxpropid=b.fauxpropid update a set a.fkfdate=isnull(b.fkfdate, '1900-01-01 00:00:00.000'),a.fperioddate=isnull(b.fperioddate,'1900-01-01 00:00:00.000') from t_cc_stock a inner join temp1 b on a.fitemid=b.fitemid and a.fbatchno=b.fbatchno and a.fauxpropid=b.fauxpropid drop table temp1 注意:补丁只对打补丁以后的数据起作用,如果您的账套当前已出现此问题请参照上述方法处理。进行数据***作前请先备份账套。
|
|
|