DBA Data[Home] [Help]

APPS.OTA_NHS_BUS dependencies on HZ_PARTIES

Line 457: From HZ_PARTIES party,

453: -- cursor to check is person id is belong to customer.
454: --
455: cursor csr_customer is
456: Select null
457: From HZ_PARTIES party,
458: HZ_CUST_ACCOUNTS cust_acct
459: Where CUST_ACCT.party_id = PARTY.party_id
460: and CUST_ACCT.cust_account_id=p_customer_id;
461:

Line 514: and rel.subject_table_name = 'HZ_PARTIES'

510: HZ_RELATIONSHIPS rel,
511: HZ_CUST_ACCOUNTS role_acct
512: where acct_role.party_id = rel.party_id
513: and acct_role.role_type = 'CONTACT'
514: and rel.subject_table_name = 'HZ_PARTIES'
515: and rel.object_table_name = 'HZ_PARTIES'
516: and acct_role.cust_account_id = role_acct.cust_account_id
517: and role_acct.party_id = rel.object_id
518: and ACCT_ROLE.cust_account_role_id=p_person_id

Line 515: and rel.object_table_name = 'HZ_PARTIES'

511: HZ_CUST_ACCOUNTS role_acct
512: where acct_role.party_id = rel.party_id
513: and acct_role.role_type = 'CONTACT'
514: and rel.subject_table_name = 'HZ_PARTIES'
515: and rel.object_table_name = 'HZ_PARTIES'
516: and acct_role.cust_account_id = role_acct.cust_account_id
517: and role_acct.party_id = rel.object_id
518: and ACCT_ROLE.cust_account_role_id=p_person_id
519: and ACCT_ROLE.cust_account_id=p_customer_id;

Line 633: and rel.subject_table_name = 'HZ_PARTIES'

629: HZ_RELATIONSHIPS rel,
630: HZ_CUST_ACCOUNTS role_acct
631: where acct_role.party_id = rel.party_id
632: and acct_role.role_type = 'CONTACT'
633: and rel.subject_table_name = 'HZ_PARTIES'
634: and rel.object_table_name = 'HZ_PARTIES'
635: and acct_role.cust_account_id = role_acct.cust_account_id
636: and role_acct.party_id = rel.object_id
637: and ACCT_ROLE.cust_account_role_id=p_contact_id

Line 634: and rel.object_table_name = 'HZ_PARTIES'

630: HZ_CUST_ACCOUNTS role_acct
631: where acct_role.party_id = rel.party_id
632: and acct_role.role_type = 'CONTACT'
633: and rel.subject_table_name = 'HZ_PARTIES'
634: and rel.object_table_name = 'HZ_PARTIES'
635: and acct_role.cust_account_id = role_acct.cust_account_id
636: and role_acct.party_id = rel.object_id
637: and ACCT_ROLE.cust_account_role_id=p_contact_id
638: and ACCT_ROLE.cust_account_id=p_customer_id;