| | |
| | | u.nick_name as nickName, |
| | | p.product_name as productName, |
| | | pp.name as process, |
| | | pp.qualified_rate as processQualifiedRate, |
| | | pm.model as productModelName, |
| | | ppo.quantity, |
| | | ppo.scrap_qty, |
| | | (ppo.quantity - ppo.scrap_qty) as qualifiedQty, |
| | | case when ppo.quantity > 0 then round((ppo.quantity - ppo.scrap_qty) / ppo.quantity * 100, 2) else 0 end as actualQualifiedRate, |
| | | ppo.other_data, |
| | | pm.unit, |
| | | sl.sales_contract_no salesContractNo |
| | |
| | | ppo.quantity, |
| | | ppo.scrap_qty, |
| | | ppo.other_data, |
| | | pm.unit, |
| | | sl.sales_contract_no salesContractNo |
| | | (ppo.quantity - ppo.scrap_qty) as qualifiedQty, |
| | | pm.unit |
| | | from |
| | | production_product_main ppm |
| | | left join product_work_order pwo on pwo.id = ppm.work_order_id |