成本计算后,有库存但显示零成本

1.清除成本计算标志,重新计算成本

(1)备份数据库

(2)执行脚本
Update Ptype
set CalcCost = 1,MonthCalcCost = 1
Where typeId in
(
Select PtypeID From DlySale where Draft = 2
union all
Select PtypeID From DlyBuy where Draft = 2
union all
Select PtypeID From DlyOther where Draft = 2

)