Query to find Sales Orders that are shipped but not invoiced

Query to find Sales Orders that are shipped but not invoiced
Oracle apps EBS sql to find Sales Orders that are shipped but not invoiced
How to find sales orders shipped but invoice not created
SELECT b.order_number,
       a.line_number,
       a.ordered_item,
       a.line_type_id,
       a.ordered_quantity,
       a.shipped_quantity,
       a.freight_terms_code,
       b.order_type_id
  FROM apps.oe_order_lines_all a, apps.oe_order_headers_all b
 WHERE     a.header_id = b.header_id
       AND a.FLOW_Status_CODE = 'CLOSED'
       AND NVL (a.INVOICE_INTERFACE_STATUS_CODE, 'NO') <> 'YES'
       AND a.SOLD_FROM_ORG_ID = '123'
       AND b.org_id = '123'
       AND ORDER_TYPE_ID <> 1005
Related posts: Upload your own post and refer it anywhere anytime:

Leave a Reply