问题现象: | 1、应收系统年转失败,提示错误号:0; |
问题原因: | AP_DETAIL表中存在存货编码字段不应该为空但的确为空的记录 |
解决方案: | 经用以下语句检查在AP_DETAIL表中存在存货编码字段不应该为空但的确为空的记录: select * from ap_detail where cinvcode is null and ccovouchtype in ('26','27','01','02','28,'29') 执行如下语句更新即可(应收系统对应的销售发票): UPDATE Ap_Detail set cInvCode=b.cInvCode,iBVID=AutoID From SaleBillVouch a INNER JOIN SaleBillVouchs b on a.SBVID=b.SBVID Where Ap_Detail.cCoVouchType=a.cVouchType and Ap_Detail.cCoVouchID=a.cSBVCode and (Ap_Detail.cInvCode='' or Ap_Detail.cInvCode Is Null or iBVID=0 or iBVID is null) and iFlag<3 |
相关补丁: | |
版本: | 8.50 |
模块: | 应付 |
产品: | u850 |
问题名称: | 应收系统年转失败,提示错误号:0 |
最后更新: | 2005-06-28 00:00:00 |