问题现象: |
按照客户要求按订单输出标准工序工时表,因为标准工序中工时修改,在供需计划的资源维护中不能自动更新,所以数据取数也就不同。计算工时。 |
问题原因: |
工时按工序资源标准显示的报表问题: Select mo.mocode as 订单号, sum(mres.WorkHour)as 工时 from mom_order mo Join mom_orderdetail mod on mo.moid=mod.moid Join sfc_morouting m on mod.modid=m.modid Join sfc_moroutingdetail md on m.moroutingid=md. Moroutingid Join sfc_moroutingres mres on mres.moroutingdid=md.moroutingdid group by mo.mocode order by mo.mocode 如果工序资源与标准工序分子/分母不同,可以修改。如果按照标准工序中分子/分母生成报表: Select mo.mocode as 订单号,sum( mod.Qty *opres.baseqtyN/opres.baseQtyD) as 工时 from mom_order mo Join mom_orderdetail mod on mo.moid=mod.moid Join sfc_morouting m on mod.modid=m.modid Join sfc_moroutingdetail md on m.moroutingid=md. Moroutingid Join sfc_workcenter wc on wc.wcid=md.wcid Join sfc_operation op on wc.wcid=op.wcid Join sfc_operationres opres on opres.operationid=op.operationid group by mo.mocode order by mo.mocode |
解决方案: |
你咨询的工时按工序资源标准显示的报表问题: Select mo.mocode as 订单号, sum(mres.WorkHour)as 工时 from mom_order mo Join mom_orderdetail mod on mo.moid=mod.moid Join sfc_morouting m on mod.modid=m.modid Join sfc_moroutingdetail md on m.moroutingid=md. Moroutingid Join sfc_moroutingres mres on mres.moroutingdid=md.moroutingdid group by mo.mocode order by mo.mocode 如果工序资源与标准工序分子/分母不同,可以修改。如果按照标准工序中分子/分母生成报表: Select mo.mocode as 订单号,sum( mod.Qty *opres.baseqtyN/opres.baseQtyD) as 工时 from mom_order mo Join mom_orderdetail mod on mo.moid=mod.moid Join sfc_morouting m on mod.modid=m.modid Join sfc_moroutingdetail md on m.moroutingid=md. Moroutingid Join sfc_workcenter wc on wc.wcid=md.wcid Join sfc_operation op on wc.wcid=op.wcid Join sfc_operationres opres on opres.operationid=op.operationid group by mo.mocode order by mo.mocode 如有问题请反馈! |
相关补丁: |
|
版本: |
8.60sp |
模块: |
车间管理 |
产品: |
U860----生产制造--车间管理 |
问题名称: |
按照客户要求按订单输出标准工序工时表 |
最后更新: |
2005-10-25 00:00:00 |