K3 account closing reminder: there are unreviewed entry and exit documents

Solution:

First of all:

select * from ICStockBill where (FCheckerID is null or FCheckerID=0) and FCancellation=0 and FDate>='2019-04-01' AND FDate<'2019-05-01'

Then the date range is the date before 2011-04-01 and 2011-05-01. (2019-04-01~2011-04-30)

Backup:

select * into ICStockBill_1 from ICStockBill

--Write the data of ICStockBill into ICStockBill_1. (As a backup, so as to avoid invalidation after the operation here is completed, easy to restore)

At last:

delete from ICStockBill where (FCheckerID is null or FCheckerID=0) and FCancellation=0 and FDate>='2019-04-01' AND FDate<'2019-05-01'

--Delete the warehouse receipts that have not been reviewed. This document is a provisional estimate of business because of improper handling, unaudited automatically generated documents . After deleting, go to the end-of-run checkout again!

 

Guess you like

Origin blog.csdn.net/klasoft/article/details/108345410