注意:做好账套备份工作。
1.检查
select fbillno,fvchinterid from ICStockBill where fvchinterid not in (
select fvoucherid from t_voucher) and fvchinterid not in (0,-1)
2.清除
update ICStockBill set FVchInterID=null where
fvchinterid not in (
select fvoucherid from t_voucher) and fvchinterid not in (0,-1)