2013/05/06 14:40
每张单据都有一个系统编码,打开采购入库单时会默认显示系统编号最大的单据,当系统编码错误时,会出现此种情况,执行以下语句可修正该问题。
update UFSystem..ua_identity set
ifatherid=(select max(id) from UFDATA_账套号_年度..rdrecord),
ichildid=(select max(autoid) from UFDATA_账套号_年度..rdrecords)
where cacc_id='账套号' and cvouchtype='rd'