存貨單據(jù)無法記帳
發(fā)布于:2018-02-12 17:23:12
問題現(xiàn)象:用戶以前使用的是821產(chǎn)品,從2005年元月就沒有結帳,但每個月正常做了采購結算,10月份升級到861后,對1到10月份進行了結帳,可在6月和8月份共出現(xiàn)了186份記錄無法記帳,這些記錄有單價和金額,都屬于采購入庫單。例如:軟件記帳時選擇截至日期到2005-07-31就可以發(fā)現(xiàn)有記帳單據(jù)無法結帳
解決方案:請執(zhí)行以下腳本: update b set iSQuantity=isvquantity from rdrecord a join rdrecords b on a.id=b.id join PurSettleVouchs c on b.autoid=c.irdsid where ddate>'05-6-1' and ddate<='05-8-31' and cvouchtype='01' and caccounter is null and iSQuantity<>isvquantity 3/注意事項 執(zhí)行腳本前,請先做好數(shù)據(jù)備份!