發(fā)布于:2019-04-28 15:04:15
問題現(xiàn)象: | 在存貨系統(tǒng)中記帳時(shí),提示某某單據(jù)記帳失敗。 | ||
原因分析: | 由于存貨記帳時(shí)需要使用ia_wrisummary的存儲(chǔ)過程,如果ia_summary表中相同倉庫相同存貨有多條記錄時(shí),在存儲(chǔ)過程中@AutoID=(Select AutoID from IA_Summary Where cWhCode=@WhDepCode and cInvCode=@InvCode and iMonth=@Month and isnull(idirect,0)<>1)的語句就會(huì)出錯(cuò)。 | ||
解決方案: |
用存貨總帳重算工具修復(fù)ia_summary表,重算存貨總帳 |