Advertisement
tko_pb

ambil pembanding in mas bragas

Jan 23rd, 2020
594
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. select
  2.     mp.value as item_code,
  3.     c.documentno as po,
  4.     uom.uomsymbol as uomIn,
  5.     sum(mi_line.QtyEntered) as qtyIn
  6. from m_inoutline mi_line
  7. left join m_inout  as mi on mi_line .m_inout_id=mi.m_inout_id
  8. left join c_orderline  as c_line on mi_line .c_orderline_id  = c_line.c_orderline_id
  9. left join c_order as c on c_line .c_order_id = c_line .c_order_id
  10. left join m_product as mp on mi_line.m_product_id = mp.m_product_id
  11. left join c_uom as uom on mi_line.c_uom_id =uom.c_uom_id
  12. where mi.issotrx = 'N' and mi.docstatus  = 'CO' and
  13. (mp.value,c.documentno) in
  14. (
  15. ('80004328.RT.YK-095A-66.5','POSL1909A/E0083')
  16. )
  17. group by
  18.     mp.value,
  19.     c.documentno,
  20.     uom.uomsymbol
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement