Advertisement
tko_pb

Get MR not complete.sql

Mar 10th, 2022
2,890
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- get Mr draft
  2. select kr.kst_receipt_id, kr.m_warehouse_id from
  3. kst_receipt kr
  4. join kst_invoicevendor ki on kr.kst_invoicevendor_id = ki.kst_invoicevendor_id
  5. join kst_receiptline krl on kr.kst_receipt_id = krl.kst_receipt_id
  6. join m_inoutline mil on krl.kst_receiptline_id = mil.kst_receiptline_id
  7. join m_inout mi on mil.m_inout_id = mi.m_inout_id
  8. where mi.docstatus in  ('DR', 'IP')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement