| | |
| | | pm.model, |
| | | si.remark, |
| | | pm.unit, |
| | | pm.material_code as materialCode, |
| | | p.product_name, |
| | | p.parent_id, |
| | | p2.product_name AS parent_name |
| | | p2.product_name AS parent_name, |
| | | si.batch_no |
| | | FROM stock_inventory si |
| | | LEFT JOIN product_model pm ON si.product_model_id = pm.id |
| | | LEFT JOIN product p ON pm.product_id = p.id |
| | |
| | | select si.qualitity, |
| | | pm.model, |
| | | pm.unit, |
| | | pm.material_code as materialCode, |
| | | p.product_name, |
| | | coalesce(si.warn_num, 0) as warn_num, |
| | | coalesce(si.locked_quantity, 0) as locked_quantity, |
| | |
| | | select sir.*,si.qualitity as current_stock, |
| | | pm.model, |
| | | pm.unit, |
| | | pm.material_code as materialCode, |
| | | p.product_name, |
| | | su.nick_name as create_by |
| | | from |