存貨結轉后數(shù)據(jù)不對
發(fā)布于:2018-02-14 18:58:44
問題現(xiàn)象:用戶做04年結轉到05年后,有部分存貨只有金額沒有數(shù)量和單價(例如010101),有部分存貨金額正確但數(shù)量錯誤(例如010701),有些存貨金額為負數(shù)。
解決方案:請針對2004年度數(shù)據(jù)庫根據(jù)存貨明細賬修改輔助計價表的期初記錄的關聯(lián)字段,使其可以結轉,然后使用最新的結轉補丁,重新結轉即可。而對于重新結轉后仍有的結轉數(shù)量為0金額不為0的記錄,是系統(tǒng)根據(jù)出庫和入庫的一些差異所生成的金額調(diào)整記錄。 update ia_subsidiary set id=-autoid where cvoutype='34' and id is null delete from ia_valuationass where iiquantity is null and ioquantity is null update ia_valuationass set inid=id,dikeepdate=dkeepdate from ia_valuationass a inner join ia_subsidiary b on a.cinvcode=b.cinvcode where a.didate<'2004-1-1' and outid is null and b.cvoutype='34' and isnull(b.iainquantity,0)>0