|
|
|
@@ -1837,7 +1837,7 @@ open class ProductionScheduleService( |
|
|
|
AND po.completeDate IS NULL |
|
|
|
), 0) AS purchasedQty, |
|
|
|
DATE(ps.produceAt) AS produceDate, |
|
|
|
ceil( SUM(bm.qty * psl.batchNeed) * (itum.ratioD / itum.ratioN) ) AS qtyNeeded |
|
|
|
ceil( SUM(bm.baseQty * psl.batchNeed) * (itum.ratioD / itum.ratioN) ) AS qtyNeeded |
|
|
|
FROM production_schedule_line psl |
|
|
|
JOIN production_schedule ps ON psl.prodScheduleId = ps.id |
|
|
|
JOIN items it ON psl.itemId = it.id |
|
|
|
|