售后技术专线:4006-6500-28
新购有特价、金蝶老客户升级金蝶云产品可以享受5折优惠,送手机、送话费,好礼不断!
专业版删除生产领料单提示实际领料数量不可小于关联的产品入库已入库领料数量,删除失败。如下图所示:
可参考以下脚本执行处理:
update icmo set FStatus=1,FFinishDate='',FAuxFinishQty=isnull(n.FAuxQty,0),FFinishQty=isnull(n.fqty,0)
from ICMO a
left join (
select c.FMOInterID,sum(c.FQty)as fqty,sum(c.FAuxQty)as FAuxQty
from ICStockBillEntry c
join ICStockBill d on c.FInterID=d.FInterID
where d.FTranType=2
group by FMOInterID
)n on a.FInterID=n.FMOInterID
where a.FFinishQty<>isnull(n.fqty,0) and FClosed=0 and a.fqty>isnull(n.fqty,0)
【注意事项】
正式账套执行脚本前请先做好备份,建议待在测试账套中核实无误后再在正式账套中执行。