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 注意:補丁只對打補丁以后的數據起作用,如果您的賬套當前已出現此問題請參照上述方法處理。進行數據***作前請先備份賬套。
|
|
|