O2 C
O2 C
OE_ORDER_LINES_V --
wsh_deliverables_v -- details
WSH_DLVB_DLVY_V
wsh_new_deliveries_v
RA_CUSTOMER_TRX_PARTIAL_V -- 10020717
RA_CUST_TRX_LINE_GL_DIST_V
RA_CUSTOMER_TRX_FRT_V
AR_CASH_RECEIPTS_V -- 10020717
select * from
oe_order_headers_all--,header_id,order_number,price_list_id,sold_org_id,salesrep_id
,
Select ooha.order_number
,rsa.Name Sales_person
,qlht.Name Price_list_Name
,oola.Ordered_quantity
,oola.Shipped_quantity
,wdd.RELEASED_STATUS Pick_release_status
,wnd.INITIAL_PICKUP_DATE "Goods Picked date"
,wnd.CONFIRM_DATE "Goods ship conform date"
,wnd.DELIVERY_TYPE
,wnd.DELIVERED_DATE "Goods Delivered Date"
,rcta.trx_number "Invoice number"
,acra.Receipt_number "Recepit Number"
,hp.party_name "Customer Name"
,acra.Amount "invoice Amount"
From oe_order_headers_all ooha
,oe_order_lines_all oola
,wsh_delivery_details wdd
,wsh_new_deliveries wnd
,wsh_delivery_assignments wda
,RA_customer_trx_all rcta
,ar_cash_receipts_all acra
,hz_cust_accounts_all hcaa
,Hz_parties hp
,AR_RECEIVABLE_APPLICATIONS_ALL araa
,RA_SALESREPS_ALL rsa
,qp_list_headers_tl qlht
where ooha.HEADER_ID = oola.HEADER_ID
and wdd.SOURCE_HEADER_ID = ooha.header_id
and wdd.DELIVERY_DETAIL_ID = wda.DELIVERY_DETAIL_ID
and wda.delivery_id = wnd.delivery_id
and rcta.INTERFACE_HEADER_ATTRIBUTE1 = to_char(ooha.ORDER_NUMBER)
and ooha.sold_to_org_id = hcaa.CUST_ACCOUNT_ID
and hcaa.party_id = hp.party_id
and araa.CASH_RECEIPT_ID = acra.CASH_RECEIPT_ID
and araa.APPLIED_CUSTOMER_TRX_ID = rcta.CUSTOMER_TRX_ID
and ooha.SALESREP_ID = Rsa.SalesRep_id
and ooha.PRICE_LIST_ID = qlht.List_header_id
and ooha.order_number = '56752'
Select ooha.order_number
,rsa.Name Sales_person
,qlht.Name Price_list_Name
,oola.Ordered_quantity
,oola.Shipped_quantity
,wdd.RELEASED_STATUS Pick_release_status
,wnd.INITIAL_PICKUP_DATE "Goods Picked date"
,wnd.CONFIRM_DATE "Goods ship conform date"
,wnd.DELIVERY_TYPE
,wnd.DELIVERED_DATE "Goods Delivered Date"
,rcta.trx_number "Invoice number"
,acra.Receipt_number "Recepit Number"
,hp.party_name "Customer Name"
,acra.Amount "invoice Amount"
From oe_order_headers_all ooha
,oe_order_lines_all oola
,wsh_delivery_details wdd
,wsh_new_deliveries wnd
,wsh_delivery_assignments wda
,RA_customer_trx_all rcta
,ar_cash_receipts_all acra
,hz_cust_accounts_all hcaa
,Hz_parties hp
,AR_RECEIVABLE_APPLICATIONS_ALL araa
,RA_SALESREPS_ALL rsa
,qp_list_headers_tl qlht
where ooha.HEADER_ID = oola.HEADER_ID
and wdd.SOURCE_HEADER_ID = ooha.header_id
and wdd.DELIVERY_DETAIL_ID = wda.DELIVERY_DETAIL_ID
and wda.delivery_id = wnd.delivery_id
and rcta.INTERFACE_HEADER_ATTRIBUTE1 = to_char(ooha.ORDER_NUMBER)
and ooha.sold_to_org_id = hcaa.CUST_ACCOUNT_ID
and hcaa.party_id = hp.party_id
and araa.CASH_RECEIPT_ID = acra.CASH_RECEIPT_ID
and araa.APPLIED_CUSTOMER_TRX_ID = rcta.CUSTOMER_TRX_ID
and ooha.SALESREP_ID = Rsa.SalesRep_id
and ooha.PRICE_LIST_ID = qlht.List_header_id
AND OOHA.ORG_ID = RSA.ORG_ID
and ooha.order_number = '56752'