问题现象: | 据去年的采购入库单生成采购发票时会提示:"采购发票所对应的采购入库单已经弃审或者删除或者关闭,回写不成功不能保存" |
问题原因: | 用户数据是刚由851A升到860SP,去年订单已关闭,没有结转到今年,但是发现结转过的这些入库单子表rdrecords.iposid不为空,显示的是去年订单子表的标识.所以将此处rdrecords.iposid改为null即可. |
解决方案: | update rdrecords set iposid =null from rdrecords inner join rdrecord on rdrecord.id =rdrecords.id where rdrecords.iposid is not null and rdrecord.ddate <='2004-12-31' and rdrecords.iposid not in (select id from po_podetails ) |
相关补丁: | |
版本: | 8.60sp |
模块: | 采购管理 |
产品: | 860SP |
问题名称: | 据采购入库单生成采购发票时错误 |
最后更新: | 2005-09-06 00:00:00 |