申请一个网站,专业网站建设最便宜,廊坊小程序公司,潍坊网站搜索引擎优化算成本提示某货品成本溢出处理方法#xff0c;该问题是由于货品成本异常#xff0c;成本上亿或者负亿造成的#xff1b; 1.首先通过语句#xff1a;select * into tmp_goods from l_goods where ABS(aprice)100000#xff0c;把成本价格超过10万的货品资料取出#x…算成本提示某货品成本溢出处理方法该问题是由于货品成本异常成本上亿或者负亿造成的 1.首先通过语句select * into tmp_goods from l_goods where ABS(aprice)100000把成本价格超过10万的货品资料取出 2.更新货品资料的成本价格 update g set aprice 0 from l_goods g where exists(select * from tmp_goods tg where tg.goodsidg.goodsid) 3.更新底稿表的成本价格 update g set price 0, amount0, eprice0, eamount0, difamount0from aa_billflow g where exists(select * from tmp_goods tg where tg.goodsidg.goodsid) 4.更新底稿表的重算状态 update aa_billflow set status0; 5.然后重算成本对负库存出库、有异常的成本做调价处理 转载于:https://www.cnblogs.com/devsuperdata/p/9511460.html