AR_CM_PAY_CUST_H_V

Details

  • Schema: FUSION

  • Object owner: AR

  • Object type: VIEW

Columns

Name

CM_PAY_CUST_ACCOUNT_NUMBER

CM_PAY_CUST_TYPE

CM_PAY_CUST_ACCOUNT_ID

CM_PAY_CUST_NPA_NUMBER

CM_PAY_CUST_ALT_NAME

CM_PAY_CUST_CAT_CODE

CM_PAY_CUST_CITY

CM_PAY_CUST_COUNTRY

CM_PAY_CUST_COUNTY

CM_PAY_CUST_FISCAL_CODE

CM_PAY_CUST_GLOBAL_ATTR1

CM_PAY_CUST_GLOBAL_ATTR10

CM_PAY_CUST_GLOBAL_ATTR12

CM_PAY_CUST_GLOBAL_ATTR9

CM_PAY_CUST_GLOBAL_ATTR_CAT

CM_PAY_CUST_GROUP_TYPE

CM_PAY_CUST_GSA_FLAG

CM_PAY_CUST_PARTY_ID

CM_PAY_CUST_PARTY_NAME

CM_PAY_CUST_PARTY_NUMBER

CM_PAY_CUST_PARTY_TYPE

CM_PAY_CUST_POSTAL_CODE

CM_PAY_CUST_PROVINCE

CM_PAY_CUST_STATE

CM_PAY_CUST_TAX_REFERENCE

EVENT_ID

LEDGER_ID

CM_PAY_SITE_CITY

CM_PAY_SITE_COUNTRY

CM_PAY_SITE_COUNTY

CM_PAY_SITE_POSTAL_CODE

CM_PAY_SITE_PROVINCE

CM_PAY_SITE_STATE

Query

SQL_Statement

SELECT /*+INDEX (l ar_xla_lines_extract_n1)*/ ca3.account_number cm_pay_cust_account_number ,

ca3.customer_type cm_pay_cust_type ,ca3.cust_account_id cm_pay_cust_account_id ,

ca3.npa_number cm_pay_cust_npa_number ,ca3.account_name cm_pay_cust_alt_name ,

p3.category_code cm_pay_cust_cat_code ,p3.city cm_pay_cust_city ,

p3.country cm_pay_cust_country ,p3.county cm_pay_cust_county ,

p3.jgzz_fiscal_code cm_pay_cust_fiscal_code ,

null cm_pay_cust_global_attr1 ,

null cm_pay_cust_global_attr10 ,

null cm_pay_cust_global_attr12 ,

null cm_pay_cust_global_attr9 ,

null cm_pay_cust_global_attr_cat ,

p3.group_type cm_pay_cust_group_type ,p3.gsa_indicator_flag cm_pay_cust_gsa_flag ,

ca3.party_id cm_pay_cust_party_id ,p3.party_name cm_pay_cust_party_name ,

p3.party_number cm_pay_cust_party_number ,p3.party_type cm_pay_cust_party_type ,

p3.postal_code cm_pay_cust_postal_code ,p3.province cm_pay_cust_province ,

p3.state cm_pay_cust_state ,null cm_pay_cust_tax_reference ,

l.event_id event_id ,l.ledger_id ledger_id,

loc.city cm_pay_site_city ,

loc.country cm_pay_site_country ,

loc.county cm_pay_site_county ,

loc.postal_code cm_pay_site_postal_code ,

loc.province cm_pay_site_province ,

loc.state cm_pay_site_state

FROM hz_cust_accounts ca3 ,hz_parties p3

,hz_cust_site_uses_all su

,hz_cust_acct_sites_all st

,hz_party_sites p_site

,hz_locations loc

,ar_xla_lines_extract l WHERE ca3.cust_account_id = l.paying_customer_id AND l.level_flag = 'H'

AND ca3.party_id = p3.party_id

AND su.site_use_id = l.paying_site_use_id

AND st.cust_acct_site_id = su.cust_acct_site_id

AND p_site.party_site_id = st.party_site_id

AND loc.location_id = p_site.location_id