及时库存;
This commit is contained in:
@@ -383,8 +383,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
FROM
|
FROM
|
||||||
picking_material_detail c
|
picking_material_detail c
|
||||||
LEFT JOIN picking_order d ON c.picking_order_number = d.PICKING_ORDER_NUMBER
|
LEFT JOIN picking_order d ON c.picking_order_number = d.PICKING_ORDER_NUMBER
|
||||||
|
left join STOCK_OUT_ORDER e ON d.ORDER_NUMBER = e.OUT_ORDER_NUMBER
|
||||||
WHERE
|
WHERE
|
||||||
c.del_flag = 1 and d.STATUS = 1
|
c.del_flag = 1 and d.STATUS = 1 and e.STATUS = 7
|
||||||
AND d.warehouse_id = a.warehouse_id
|
AND d.warehouse_id = a.warehouse_id
|
||||||
AND (a.shipper_id IS NULL OR d.shipper_id = a.shipper_id)
|
AND (a.shipper_id IS NULL OR d.shipper_id = a.shipper_id)
|
||||||
AND c.material_base_info_id = a.material_base_info_id
|
AND c.material_base_info_id = a.material_base_info_id
|
||||||
|
|||||||
Reference in New Issue
Block a user