分析金蝶kis云系统物料没有使用辅助计量单位,但是即时库存有辅助单位数量的问题。
服务热线:400-665-0027
新购有特价、金蝶老客户升级金蝶云产品可以享受5折优惠,送手机、送话费,好礼不断!
【问题描述】专业版,物料没有使用辅助计量单位,但是即时库存有辅助单位数量。
【原因分析】
历史入库单是通过EXCEl引入的,未启用辅助单位的物料也引入了辅助数量。
【解决方案】
可参考以下脚本执行处理:
update b set FSecQty=0,FSecQtyMust=0
FROM ICStockbill a
join ICStockbillEntry b on a.finterid=b.finterid
join t_icitem t on b.fitemid=t.fitemid
where b.FSecQty <>0 and t.FSecUnitID=0
go
update a set FSecEndQty=0,FSecBegQty=0,FSecReceive =0,FSecSend=0
FROM ICInvBal a
join t_icitem t on a.fitemid=t.fitemid
where t.FSecUnitID=0 and ( a.FSecEndQty <>0 or a.FSecBegQty<>0)
go
exec CheckInventory
go
【注意事项】
正式账套执行脚本前请先做好备份,建议在待测试账套中核实无误后再在正式账套中执行。

