收款單和現(xiàn)結(jié)重號
發(fā)布于:2018-02-05 13:42:58
問題現(xiàn)象:在增加收款單和現(xiàn)結(jié)時不能保存,單據(jù)號重復(fù)
解決方案:請在查詢分析器中針對錯誤帳套的06年度執(zhí)行下面語句,注意執(zhí)行前需要將 xxx 替換成實際的帳套號: update ufsystem..ua_identity set ifatherid=(select max(right(bpayment,4)) from salebillvouch ) where cacc_id='xxx' and cvouchtype='xj' update ufsystem..ua_identity set ifatherid=(select max(iid) from ap_closebills ), ichildid=(select max(id) from ap_closebills ) where cacc_id='xxx' and cvouchtype='sk'