去除存货的批次

/*
功能:去除存货的批次
步骤:在账套数据库里执行下列语句后进入软件整理现存量即可  
*/
--清除收发存记录的批次记录(批次设置为空)
update rdrecords set cbatch=null
--清除调拨记录的批次记录(批次设置为空)
update TransVouchs set cTVBatch=null
--清除红字发货单的批次记录(批次设置为空)
update DispatchLists set cBatch=null
--清除红字发票的批次记录(批次设置为空)
update SaleBillVouchs set cbatch=null  
--修改存货档案(取消存货档案的批次属性)
UPDATE Inventory SET  binvbatch=0

原文地址:https://www.cnblogs.com/martian6125/p/9631257.html