Sales Invoice Report Query
Sales Invoice Report Query
hp.party_id,
ct.doc_sequence_value
inv_number,
ct.ship_to_party_address_id
ship_to_id,
hps.party_site_id,
hr.NAME
"Business Name",
hp.party_name
bill_customer,
ct.trx_number,
ct.trx_date,
ct.invoice_currency_code,
ct.ship_to_customer_id,
ct.bill_to_customer_id,
ct.bill_to_site_use_id,
ct.customer_trx_id,
ct.org_id,
ct.doc_sequence_id,
ct.cust_trx_type_seq_id,
hl.address1
bill_address1,
hl.address2
bill_address2,
hl.city
bill_city,
hl.state
bill_state,
hl.postal_code
bill_zip,
(SELECT description
FROM fnd_territories_vl ft
bill_country,
(SELECT hcsua1.LOCATION
WHERE 1 = 1
ship_to_location,
hcsua.LOCATION
bill_to_location,
hrl.address_line_1
seller_address1,
hrl.address_line_2
seller_address2,
(SELECT description
FROM fnd_territories_vl ft
seller_country,
xep.NAME
seller_company_name,
(SELECT zxl.registration_number
WHERE 1 = 1
AND ROWNUM = 1)
tax_reg_no,
NVL (
(SELECT phone_number
FROM hz_contact_points
FROM hz_contact_points
phone,
(SELECT phone_number
FROM hz_contact_points
AND ROWNUM = 1)
fax,
(SELECT party_name
FROM hz_parties
WHERE party_id = ct.ship_to_party_contact_id)
contact
hz_cust_accounts hca,
hz_parties hp,
hz_party_sites hps,
hz_cust_site_uses_all hcsua,
hz_cust_acct_sites_all hcasa,
hz_locations hl,
hr_operating_units hr,
hr_organization_units hro,
hr_locations hrl,
xle_entity_profiles xep
WHERE 1 = 1