解决办法:
首先:
select * from ICStockBill where (FCheckerID is null or FCheckerID=0) and FCancellation=0 and FDate>='2019-04-01' AND FDate<'2019-05-01'
那么日期范围就是2011-04-01和2011-05-01之前的日期。(2019-04-01~2011-04-30)
备份:
select * into ICStockBill_1 from ICStockBill
--将ICStockBill的数据写入ICStockBill_1 里。(作为备份,以免这里的操作进行完毕后无效,便于恢复)
最后:
delete from ICStockBill where (FCheckerID is null or FCheckerID=0) and FCancellation=0 and FDate>='2019-04-01' AND FDate<'2019-05-01'
--删除没有审核的出入库单据。这张单据是因为暂估业务处理不当,系统自动生成的未审核单据。删除后,再次去运行期末结账即可!