KIS旗舰版修改库存更新控制方式

【问题描述】
根据仓库的实际业务,需要修改库存更新控制方式。
【解决方案】
以下举例为现库存更新控制方式为“单据保存后立即更新”,修改为“单据审核后立即更新”的处理步骤,反之步骤相同。
1、审核所有库存单据,暂停业务;
2、执行以下语句更新库存更新控制方式。
if not exists
(select 1 from POStockBill where FStatus=0 and FCancellation = 0 union all
select 1 from ICSTJGBill where FStatus=0 and FCancellation = 0 union all
select 1 from POInStock where FStatus=0 and FCancellation = 0 union all
select 1 from ICStockBill where FStatus=0 and FCancellation = 0 union all
select 1 from ZPStockBill where FStatus=0 and FCancellation = 0 union all
select 1 from ICVMIInStock where FStatus=0)
begin
--更改系统参数表
update t_SystemProfile set fvalue = 0 --0为审核更新,1为保存更新
WHERE fcategory='ic' and fkey='UPSTOCKWHENSAVE'
--更改库存单据表POStockBill、ICSTJGBill、POInStock、
KIS旗舰版修改库存更新控制方式
声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。如若本站内容侵犯了原著者的合法权益,可联系本站删除。



