用友服务热线:020-82116603 ,致力于为企业提供专业的用友产品服务

MES+ERP

用友销售综合统计表查询不对

发布于:2018-01-29 10:40:44

问题现象:"销售综合统计表"中的"回款金额"不对
解决方案:在查询分析器中针对错误帐套的06年度执行下面的语句,根据销售发票上的部门更改应收应付明细表中同一发票号的部门: update ap_detail set cDeptCode=cdepcode from ap_detail inner join ap_closebills on ap_detail.icoclosesid=ap_closebills.id where cDeptCode is null 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 update ap_detail set cDeptCode=purbillvouch.cdepcode from ap_detail inner join purbillvouch on ap_detail.cDwcode=purbillvouch.cvencode and ap_detail.cCoVouchtype=purbillvouch.cpbvbilltype and ap_detail.cCoVouchid=purbillvouch.cpbvcode where cDeptCode is null
免责声明: 用友软件网站内容均来源于网络,如有侵权,请联系本站删除

用友软件——为您提供最优质的产品和服务

取产品报价方案可拨打售前顾问:13430282985(微信同号)