用友U8+851"發(fā)貨收款勾對表
發(fā)布于:2018-01-22 11:17:47
問題現(xiàn)象:851"發(fā)貨收款勾對表"中"匯款金額"無數(shù)據(jù)
解決方案:這個問題目前已經(jīng)有補丁,請在查詢分析器中針對錯誤帳套的2005年度執(zhí)行附件中的“85(1,A,2)發(fā)貨單開票收款勾對表.sql”腳本。如果執(zhí)行過程出錯,請先使用下面語句刪除臨時表,然后再執(zhí)行該腳本。 drop table tempdb..con_OutSale 還有一些以前的單據(jù)在ap_detail中沒有部門,可以在查詢分析器中執(zhí)行語句,根據(jù)銷售中發(fā)票上的部門加上對應(yīng)ap_detail記錄的部門。更改語句如下: update ap_detail set cDeptCode=salebillvouch.cdepcode from ap_detail inner join salebillvouch on ap_detail.cDwcode=salebillvouch.ccuscode and ap_detail.cCoVouchtype=salebillvouch.cvouchtype and ap_detail.cCoVouchid=salebillvouch.csbvcode where cDeptCode is null