Skip to main content

--Suppliers and their tax profiles

Supplier / Customer Tax Profiles Information

I have been working in a data migration project, and we have migrated customers and suppliers.


We have also uploaded tax profiles for them, i had to write SQL scripts to check/reconcile the tax profiles.


And these are them. Hopefully they are useful to any of you looking for the same.



--Customers and their tax profiles


SELECT A.customer_name,

  DECODE(A.customer_type, 'I', 'Internal', 'R', 'External') customer_type,

  a1.profile_class_name,

  a.creation_date,

  b.party_name,

  b.party_number,

  c.party_type_code,

  d.creation_date,

  d.class_category,

  d.class_code,

  d.start_date_active,

  e.tax_regime_code,

  e.registration_number,

  e.registration_status_code,

  e.effective_from,

  --A.vat_code,

  A.tax_reference,

  b1.party_site_name,

  b1.party_site_number,

  c1.party_type_code site_party_type_code,

  e1.tax_regime_code site_tax_regime_code,

  e1.registration_number site_registration_number,

  e1.registration_status_code site_registration_status_code,

  e1.effective_from site_effective_from,

  d1.class_category site_class_category,

  d1.class_code site_class_code,

  d1.start_date_active site_start_date_active

FROM ar_customers A,

  ar_customer_profiles_v a1,

  hz_parties b,

  hz_party_sites b1,

  zx_party_tax_profile c,

  zx_party_tax_profile c1,

  hz_code_assignments d,

  hz_code_assignments d1,

  zx_registrations e,

  zx_registrations e1

WHERE A.orig_system_reference =b.orig_system_reference

AND A.customer_id             =a1.customer_id(+)

AND b.party_id                =c.party_id(+)

AND c.party_tax_profile_id    =d.owner_table_id(+)

AND c.party_type_code(+)      ='THIRD_PARTY'

AND c.party_tax_profile_id    =e.party_tax_profile_id(+)

AND d.class_category(+)       ='XXXX'

AND b.party_id                =b1.party_id

AND b1.party_site_id          =c1.party_id(+)

AND c1.party_type_code(+)     ='THIRD_PARTY_SITE'

AND c1.party_tax_profile_id   =d1.owner_table_id(+)

AND c1.party_tax_profile_id   =e1.party_tax_profile_id(+);



--Suppliers and their tax profiles

SELECT --A.vendor_name,
  A.segment1 Suuplier_No,
  A.vendor_name Suuplier_Name,
  A.VENDOR_NAME_ALT Supp_ARABIC_NAME,
  A.ATTRIBUTE1 SUPP_Check_Name,
  --b.party_name,
  A.vendor_type_lookup_code,
  --b.party_number,
  c.party_type_code,
  c.process_for_applicability_flag allow_tax_applicability,
  c.allow_offset_tax_flag allow_offset_tax,
  d.class_category,
  d.class_code,
  d.start_date_active,
  d.end_date_active,
  e.tax_regime_code,
  e.registration_number,
  e.registration_status_code,
  e.effective_from,
  e.effective_to,
  A.vat_code,
  b1.party_site_name,
  b1.party_site_number,
  c1.party_type_code site_party_type_code,
  c1.process_for_applicability_flag site_allow_tax_applicability,
  c1.allow_offset_tax_flag site_allow_offset_tax,
  d1.class_category site_class_category,
  d1.class_code site_class_code,
  d1.start_date_active site_start_date_active,
  e1.tax_regime_code site_tax_regime_code,
  e1.registration_number site_registration_number,
  e1.registration_status_code site_registration_status_code,
  e1.effective_from site_effective_from,
  e1.effective_to site_effective_to
FROM ap_suppliers A,
  hz_parties b,
  hz_party_sites b1,
  zx_party_tax_profile c,
  zx_party_tax_profile c1,
  hz_code_assignments d,
  hz_code_assignments d1,
  zx_registrations e,
  zx_registrations e1
WHERE A.party_id                   =b.party_id
AND b.party_id                     =c.party_id(+)
AND c.party_type_code(+)           ='THIRD_PARTY'
AND c.party_tax_profile_id         =d.owner_table_id(+)
AND c.party_tax_profile_id         =e.party_tax_profile_id(+)
AND d.class_category(+)            =' XXXX '
AND A.vendor_type_lookup_code NOT IN ('EMPLOYEE', 'INTERNAL')
AND b.party_id                     =b1.party_id(+)
AND b1.party_site_id               =c1.party_id(+)
AND c1.party_type_code(+)          ='THIRD_PARTY_SITE'
AND c1.party_tax_profile_id        =d1.owner_table_id(+)
AND c1.party_tax_profile_id        =e1.party_tax_profile_id(+)
and A.segment1='1542'
  --and b.party_name='James Fleming'
ORDER BY d.class_category DESC,
  e.registration_status_code,
  b.party_name;

Comments

Popular posts from this blog

R12 Oracle E-Business Tax Configuration Guide

Applies to: Oracle E-Business Tax - Version: 12.0 to 12.2 Information in this document applies to any platform. Abstract R12 Oracle E-Business Tax Configuration Guide Document History R12 Oracle E-Business Tax Configuration 1. Tax Basic Tax Configuration Tax Definition: comprises the tax data that you set up for each tax regime and tax that your company or institution is subject to. The Tax Authority designates the regulations and rates that apply to the tax regime. Required Task List a) External Dependencies Create First Party: Legal Entity and Establishments Create Reporting and Collecting Tax Authorities b) Tax Configuration Create Tax Authorities Party Tax Profiles Create Tax Regimes Create First Party Legal Entity Party Tax Profile Create Tax Create Tax Status Create Tax Jurisdictions Tax Rate Responsibility: Tax Manager Path: Tax Managers -> Tax Managers -> Home Complete the following setup tasks: -Legal Entities and Establishments -Reporting and Collecting Tax Authorities ...

Create Accounting for a Payment generates errors 95333 and 95359

Create Accounting for a Payment generates errors 95333 and 95359 Error: 95333: A conversion rate does not exist to convert USD to AUD for the conversion type Corporate and conversion date 20-MAR-09 for line -25. Please use the Daily Rates form in General Ledger to enter a conversion rate for these currencies, conversion date and conversion type. 95359: There is no accounted amount for the subledger journal entry line. Please inform your system administrator or support representative that: The source assigned to the accounting attribute Accounted Amount has no value for extract line number 88547. Please make sure the source assigned to the accounting attribute Accounted Amount has a valid value, or assign a different source to this accounting attribute. Solution: 1. Specify a conversion rate for the currencies and conversion date mentioned in the error message 95333 Navigation under the General Ledger responsibility: Setup > Currencies > Currency Rates Manager > Daily Rates ...

Oracle Projects Migration/ Data Conversion

In this article I will be explaining the general steps involved in any Conversion/Data Migration of Oracle Projects module. At the end of this article, you would have learned: Stages in Oracle Projects Conversion. How to setup the Oracle Projects module for the conversion/Data Migration. Options for the Load (flat file, csv, or direct Loads). Oracle Projects AMG APIs needed to perform the Conversion. Testing the Conversion Process. Verifying the Conversion Process. Scenario: Company ‘XYZ’ is using a Project Management and Accounting Software for years long. The Management has decided to move from their existing system to Oracle Projects module because of its vast functionality and integration with Other financial modules. How to deal with it ? Now the question arises:  What data to migrate from the legacy system to Oracle Projects? .  Well, it depends upon the type of projects. If the Projects are used for Internal Administration ...