Sei sulla pagina 1di 90

LAD Consulting Localizations

Receivables Colombian
Localizations

Technical Reference Manual


RELEASE 12
Jun 2017
Release 1.5

DISCLAIMER :

CURRENTLY, ORACLE OFFERS CERTAIN RESALABLE ASSETS OR OTHER DEFINED SERVICE


DELIVERABLES (COLLECTIVELY REFERRED TO AS "SERVICE DELIVERABLES") UNDER A LIMITED USE
LICENSE. THE SERVICE DELIVERABLES CURRENTLY INCLUDE, BUT ARE NOT LIMITED TO, ORACLE
INTEGRATION HUB. YOU AGREE THAT :

(i) SERVICE DELIVERABLES ARE NOT ORACLE STANDARD SOFTWARE PROGRAMS,


(ii) TECHNICAL SUPPORT FOR SERVICE DELIVERABLES IS NOT AVAILABLE FROM OR UNDER, OR
PROVIDED BY OR THROUGH, ORACLE'S SUPPORT SERVICES ORGANIZATION OR YOUR ORACLE
PROGRAM LICENSE AGREEMENT,
(iii) YOUR RIGHT TO USE AND RECEIVE SUPPORT SERVICES FOR SERVICE DELIVERABLES IS
SOLELY AS DESCRIBED IN YOUR CONTRACT FOR SUCH SERVICE DELIVERABLES, AND
(iv) A SERVICE REQUEST REGARDING SERVICE DELIVERABLES, REGARDLESS OF HOW INITIATED
OR LOGGED, WILL BE ADDRESSED IN ACCORDANCE WITH THE TERMS OF YOUR CONTRACT FOR
SUCH SERVICE DELIVERABLES.
Document Control

Change Record

Date Author Version Change Reference

09-may-08 Rodrigo Naves 1 Creation


15-may-08 Gustavo Meni 1.1 Document Review
01-dec-11 Lilia Medeiros 1.2 Document Review
03-jul-13 Forero 1.3 Document Review
26-mar-14 John Edward Trujillo 1.4 Documento Update
05-Jun-17 John Edward Trujillo 1.5 Documento Update

LAD Consulting Localizations ii


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
Content

Document Control ..................................................................................................................... ii

CHAPTER 1 High Level Design .................................................................................................................... 1


High Level Design Overview .................................................................................................... 2
Oracle Receivables Colombian Localizations Overview ................................................... 2
List of Tables ...................................................................................................................... 2
List of Views ...................................................................................................................... 2
List of Modules ................................................................................................................... 2
List of Views ............................................................................................................................. 3
Views .................................................................................................................................. 3
List of Tables ............................................................................................................................. 4
New Tables ......................................................................................................................... 4
List of Modules .......................................................................................................................... 5
Forms .................................................................................................................................. 5
Reports................................................................................................................................ 5
Concurrent Programs .......................................................................................................... 5
Triggers............................................................................................................................... 5
Packages ............................................................................................................................. 6
Descriptive Flexfields ......................................................................................................... 6
Applications Lookups ......................................................................................................... 6
Value Sets ........................................................................................................................... 7

CHAPTER 2 Detailed Design......................................................................................................................... 8


Detailed Design ......................................................................................................................... 9
Views and Tables Definition .............................................................................................. 9
Module Defintion ............................................................................................................... 9
Package Definition ............................................................................................................. 9
Triggers Definition ............................................................................................................. 9
Descriptive Flexfields ......................................................................................................... 9
Value Sets ........................................................................................................................... 9
Segment Values .................................................................................................................. 9
View and Table Definition ...................................................................................................... 10
Description ....................................................................................................................... 10
Changes ............................................................................................................................ 10
Columns Detail ................................................................................................................. 10
Indexes .............................................................................................................................. 11
Table Definition ....................................................................................................................... 12
CLL_F041_AR_MISC_CASH_D_EXT .......................................................................... 12
CLL_F043_HZ_PARTIES_EXT ..................................................................................... 13
CLL_F043_RA_CUSTOMERS_EXT ............................................................................. 14
CLL_F043_AR_HZ_PARTY_SITES_EXT .................................................................... 14
LAD Consulting Localizations iii
Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_JL_ZZ_AR_TX_GRPS_EXT ....................................................................... 15
CLL_F043_RA_TERMS_EXT ........................................................................................ 16
CLL_F043_CUST_TRX_TYPES_EXT .......................................................................... 17
CLL_F043_AR_VAT_TAX_ALL_B_EXT..................................................................... 18
CLL_F043_RA_BATCH_SOURCES_EXT .................................................................... 19
CLL_F043_AR_CUST_TRX_LINES_EXT .................................................................... 20
CLL_F043_AR_CUSTOMER_TRX_EXT ...................................................................... 21
CLL_F043_HZ_RELATIONSHIPS_EXT ....................................................................... 22
CLL_F043_AR_REC_METHODS_EXT ........................................................................ 23
CLL_F043_AR_CASH_RECEIPTS_EXT ...................................................................... 24
View Definition ....................................................................................................................... 25
CLL_F043_CUSTOMER_TRX_AWT_V ....................................................................... 25
CLL_F043_LEGAL_ENTITIES_V ................................................................................. 30
CLL_F043_CUST_TRX_LINES_V ................................................................................ 34
CLL_F043_EFD_AR_CREDIT_V .................................................................................. 35
CLL_F043_EFD_AR_DEBIT_V ..................................................................................... 47
CLL_F043_EFD_AR_INVOICES_V .............................................................................. 59
CLL_F043_EFD_AR_INV_LINES_V ............................................................................ 70
CLL_F043_EFD_AR_TRAN_LINES_V ........................................................................ 72
CLL_F043_EFD_AR_TRAN_LIN_TAX_V ................................................................... 75
CLL_F043_EFD_LEGAL_ENTITIES_V ........................................................................ 78
CLL_F043_EFD_PARTY_LOCATIONS_V................................................................... 80
CLL_F043_RA_CUSTOMER_TRX_V .......................................................................... 82
Modules Definition .................................................................................................................. 85
Module Overview ............................................................................................................. 85
CLLCOIWR.rtf ................................................................................................................ 86
CLLCOIWR ..................................................................................................................... 86

LAD Consulting Localizations iv


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CHAPTER

1 High Level Design

T his chapter presents the High Level Design of Oracle Receivables Colombian
Localizations application satisfying the specific needs of the Strategy and Analyze phase of
an implementation. A global view of the receiving process will be explained. Diagrams and
charts of the major functions in Oracle Receivables Colombian Localizations together with list
of tables, modules and views complements will be shown for the better understanding of the
process.

LAD Consulting Localizations 1


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
High Level Design Overview
During the High Level Design, the major application components are defined (tables, views and
modules) necessary to construct the application. Below we specify what each component does
without entering in details on how its done.

This chapter can be used to rapidly learn what tables, views and module are part of Oracle
Receivables Colombian Localizations. Through this chapter it is possible to understand the details of
the design and of the implementation of Oracle Receivables Colombian Localizations.

Oracle Receivables Colombian Localizations Overview


Through the Entity Relationship Diagram it is possible to learn what entities are the building blocks
of the application and learn how they relate.

List of Tables
The list of tables briefly describes each table of Oracle Receivables Colombian Localizations. For
more information, please read the Tables Definition of the Detailed Design in chapter 2.

List of Views
The List of Views briefly describes each view in Oracle Receivables Colombian Localizations. For
more information, please read the Tables Definition of the Detailed Design in chapter 2.

List of Modules
The list of Modules briefly describes each module of Oracle Receivables Colombian Localizations.
For more information please read the Tables Definition of the Detailed Design in chapter 2.

LAD Consulting Localizations 2


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
List of Views

There are no views for Receivables Colombian Localizations

Views

View Name Description

CLL_F043_CUSTOMER_TRX_AWT_V
CLL_F043_CUST_TRX_LINES_V
CLL_F043_EFD_AR_CREDIT_V
CLL_F043_EFD_AR_DEBIT_V
CLL_F043_EFD_AR_INVOICES_V
CLL_F043_EFD_AR_INV_LINES_V
CLL_F043_EFD_AR_TRAN_LINES_V
CLL_F043_EFD_AR_TRAN_LIN_TAX_V
CLL_F043_EFD_LEGAL_ENTITIES_V
CLL_F043_EFD_PARTY_LOCATIONS_V
CLL_F043_LEGAL_ENTITIES_V
CLL_F043_RA_CUSTOMER_TRX_V

LAD Consulting Localizations 3


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
List of Tables

This section lists and briefly describes each table in Oracle Receivables Colombian Localizations .

New Tables

Table Name Description

CLL_F041_AR_MISC_CASH_D_EXT Stores the additional information cash receipts distributions


CLL_F043_RA_CUSTOMERS_EXT Colombian Customer Extension Obsoleto
CLL_F043_HZ_PARTIES_EXT Colombian Customer Extension
CLL_F043_JL_ZZ_AR_TX_GRPS_EXT Colombia Tax Groups Extension
CLL_F043_CUST_TRX_TYPES_EXT Colombia Transaction Types Extension
CLL_F043_AR_REC_METHODS_EXT Colombia Receivables Payment Methods Extension
CLL_F043_AR_CUST_TRX_LINES_EXT Colombia Customer Invoice Line Extension
CLL_F043_HZ_RELATIONSHIPS_EXT Colombia Relationships Extension
CLL_F043_RA_TERMS_EXT Colombian Payment Term Information Extension
CLL_F043_AR_CASH_RECEIPTS_EXT Colombian Cash Receipts Extension
CLL_F043_AR_CUSTOMER_TRX_EXT Colombia Customer Transaction Extension
CLL_F043_AR_VAT_TAX_ALL_B_EXT Colombian Tax Code Extension (AR)
CLL_F043_AR_HZ_PARTY_SITES_EXT Colombia Customer Sites Extension
CLL_F043_RA_BATCH_SOURCES_EXT Colombian Transaction Sources Extension

LAD Consulting Localizations 4


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
List of Modules

This section lists each form, report, concurrent program and stored procedure used in Oracle
Receivables Colombian Localizations.

Forms

Form Description Field Name

Reports

Report Description Field Name

Concurrent Programs

Concorrent Program Description Field Name

CLLCOIWR Receivables Self Withholding Tax Report

Triggers

Trigger Description Name

cll_f041_ardd CLL_F041_AR_MISC_CASH_D_T1

LAD Consulting Localizations 5


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
Packages

Package File Package Name


Procedure Description
Procedures File Procedure Name

Descriptive Flexfields

Decriptive Name Title

CLL_F041_AR_MISC_CASH_D_EXT Colombian Cash Receipts Distribution Extension


CLL_F043_HZ_PARTIES_EXT Colombian Customer Extension
CLL_F043_AR_HZ_PARTY_SITES_EXT Colombia Customer Sites Extension
CLL_F043_JL_ZZ_AR_TX_GRPS_EXT Colombia Tax Groups Extension
CLL_F043_CUST_TRX_TYPES_EXT Colombia Transaction Types Extension
CLL_F043_AR_REC_METHODS_EXT Colombia Receivables Payment Methods Extension
CLL_F043_AR_CUST_TRX_LINES_EXT Colombia Customer Invoice Line Extension
CLL_F043_HZ_RELATIONSHIPS_EXT Colombia Relationships Extension
CLL_F043_RA_TERMS_EXT Colombian Payment Term Information Extension
CLL_F043_AR_CASH_RECEIPTS_EXT Colombian Cash Receipts Extension
CLL_F043_AR_CUSTOMER_TRX_EXT Colombia Customer Transaction Extension
CLL_F043_AR_VAT_TAX_ALL_B_EXT Colombian Tax Code Extension (AR)
CLL_F043_RA_BATCH_SOURCES_EXT Colombian Transaction Sources Extension

Applications Lookups

Descriptive Name Description


CLL_F043_AR_AWT_TYPE CLL F043: Withholding Tax Type
CLL_F043_CREDIT_TYPE_REASON CLL F043: Credit Type Reason
CLL_F043_DEBIT_TYPE_REASON CLL F043: Debit Type Reason
CLL_F043_INVOICE_TYPE_CODES CLL F043: Invoice Type Code
CLL_F043_PAYMENT_CODE Colombian Payment Code
CLL_F043_TAX_CLASS Colombian Tax Class

LAD Consulting Localizations 6


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
Value Sets

Value Set Name Description

CLL_F041_AR_MISC_RECEIPT_ID Misc Receipt Id for AR - Colombian Localization


CLL_F043_PARTY_ADDRESS Address Customers
CLL_F043_AR_AWT_TYPE CLL F043: Withholding Tax Type
CLL_F043_AR_VAT_TAX_CODES_TYPES Tax Codes Types for Colombia
CLL_F043_AUTHORIZED_INVOICE CLL F043: Authorized Invoice
CLL_F043_CREDIT_TYPE_REASON CLL F043: Credit Type Reason
CLL_F043_CUST_TRX_LINES
CLL_F043_DEBIT_TYPE_REASON CLL F043: Debit Type Reason
CLL_F043_INVOICE_RESOLUTION CLL F043: Invoice Resolution Number
CLL_F043_INVOICE_TYPE_CODES CLL F043: Invoice Type Code
CLL_F043_PAYMENT_CODE Colombian Payment Code
CLL_F043_TAX_CLASS Colombian Tax Class
CLL_F043_YES_NO Principal Contact Yes or No

LAD Consulting Localizations 7


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CHAPTER

2 Detailed Design

T his chapter presents a detailed design used during the Oracle Receivables Colombian
Localizations implementation. Here you will find detailed definitions about tables, views,
modules and other objects used in Oracle Receivables Colombian Localizations.

LAD Consulting Localizations 8


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
Detailed Design

During the Detailed Design phase, each Applications component has its functionality detailed.
This chapter permits the understanding of the detailed structure and information flow of Oracle
Receivables Colombian Localizations.
Convert existing application data;
Write customized reports;
Define alerts against Oracle Applications tables;
Create views for decision support - queries using Oracle Data Browser or Oracle Data Query
tools.

Views and Tables Definition


This section contains a detailed definition of Oracle Receivables Colombian Localizations tables and
views. For each table, it provides information about objective, column description, primary key,
unique key, check constraints, foreign keys, indexes, quickcodes, sequences, module access and
database triggers. It also contains the SQL structure of each view.

Module Defintion
This section provides detailed information about each module in Oracle Receivables Colombian
Localizations. Use this section to better understand the content details of each module and how these
functionalities are implemented.

Package Definition
This section gives a overview about the Procedures and Functions inside the Calculation Package.

Triggers Definition
This section provides information about the Triggers of Oracle Receivables Colombian
Localizations. If the Trigger is started in before or after insert for example.

Descriptive Flexfields
This section provides detailed information of each Descriptive Flexfield used in the Oracle
Receivables Colombian Localizations.Use this section to rapidly find the list of Descripttive
Flexfields.

Value Sets
This section provides detailed information of Value Set used in the Oracle Receivables Colombian
Localizations. The Values Sets are the information that are used in Zooms, with List of Values.

Segment Values
This section provides detailed information of Segment Values used in the Oracle Receivables
Colombian Localizations. The Segment Values are the information that appears when a Value Set
has the type Independent.

LAD Consulting Localizations 9


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
View and Table Definition

This section contains a detailed definition of each table and view used in Oracle Receivables
Colombian Localizations. For each table or view the following information are presented:

Description;
Changes;
Columns Detail ;
Indexes;

This section only documents the tables and views which Oracle Receivables Colombian
Localizations owns. To obtain more details on other external tables and views used, please search the
corresponding application which the table is a component of.

Description

In this topic we will describe why this table will be used.

Changes

In this topic we will identify object modifications undergone since the previous version: if it is a new
object, if it become optional or obligatory, which columns were added or removed, the column type
changes and if the object was renamed.

Columns Detail

This topic presents the primary attributes of each column or view with a brief description of its use.
These attributes include the data type and if a value for this column is optional or obligatory.

Standard Who Column


Several tables in Oracle Receivables Colombian Localizations contain standard who columns. When
a program or SQL command selects a row from a table, these columns are used to determine who did
the last update in this row. If your program or SQL command inserts or updates a line in an interface
table, you should update the five Standard Who Columns:

LAST_UPDATE_DATE Date when a user last updated this row.


LAST_UPDATED_BY User who last updated this row (Foreign Key to
FND_USER.USER_ID).
CREATION_DATE Date when this row was created.
CREATED_BY User who created this row(Foreign key to FND_USER.USER_ID).
LAST_UPDATE_LOGIN Operation system login of user who last updated this row (Foreign
Key to FND_LOGINS.LOGIN_ID).

LAD Consulting Localizations 10


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
Once every line in this table contains the additional Standard Who Columns with various Foreign
Keys corresponding to the FND_USERS and FND_LOGINS tables, you should not include
LAST_UPDATED_BY, CREATED_BY or LAST_UPDATE_LOGIN columns in the Foreign Keys
list of the table.

Standard Columns about the Who (for concurrent programs)


Several tables in Oracle Integrated Receiving application have standard columns about the USER, to
distinguish changes made by each user in the forms or in the concurrent programs. When a
concurrent program inserts or updates rows in a table, the following additional columns about the
responsible user are updated.:

REQUEST_ID Concurrent request id of the program that last updated this


row (Foreign Key to FND_CONCURRENT_REQUESTS.
REQUEST_ID).
PROGRAM_APPLICATION_ID Application id of the program that last updated this row
(Foreign Key to FND_APPLICATION.APLLICATION_ID).
PROGRAM_ID Program id of the program that last updated this row. (Foreign
Key to FND_CONCURRENT_PROGRAM.
CONCURRENT_PROGRAM_ID).
PROGRAM_UPDATE_DATE Date when a program last updated this row.

Once every table contains these additional Standard Who Columns with the various Foreign Keys to
the tables FND_CONCURRENT_REQUESTS, FND_APPLICATION and
FND_CONCURRENT_PROGRAM, you should then not include the REQUEST_ID,
PROGRAM_APPLICATION_ID or PROGRAM_ID columns in the Foreign Keys list of the table.

Indexes
In this topic you can identify all the indexes related to this table and the database columns that
implement this index sequentially.

LAD Consulting Localizations 11


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
Table Definition

The Table Definition section contains a detailed definition of each table in Oracle Receivables
Colombian Localizations. For each table, the following information are available: objective, column
description, primary key, unique key, check constraints, foreign key, indexes, quick codes, sequences
and database triggers.

CLL_F041_AR_MISC_CASH_D_EXT

Stores the additional information cash receipts distributions

Changes
No changes were applied to this table in this version.

Columns description
Name Null? Type Description
MISC_CASH_DISTRIBUTION_ID NOT NULL NUMBER (15) Third distribution associate
ATTRIBUTE1 NULL VARCHAR2(150) Third distribution associate
ATTRIBUTE2
U NULL VARCHAR2(150) Free attribute 1
ATTRIBUTE3 NULL VARCHAR2(150) Free attribute 2
n
ATTRIBUTE4 NULL VARCHAR2(150) Free attribute 3
i
ATTRIBUTE5 NULL VARCHAR2(150) Free attribute 4
q
ATTRIBUTE6 NULL VARCHAR2(150) Free attribute 5
u
ATTRIBUTE7 NULL VARCHAR2(150) Free attribute 6
e
ATTRIBUTE8 NULL VARCHAR2(150) Free attribute 7
ATTRIBUTE9 NULL VARCHAR2(150) Free attribute 8
K
ATTRIBUTE10 NULL VARCHAR2(150) Free attribute 9
e
ATTRIBUTE11 NULL VARCHAR2(150) Free attribute 10
y
ATTRIBUTE12 NULL VARCHAR2(150) Free attribute 11
ATTRIBUTE13
s NULL VARCHAR2(150) Free attribute 12
ATTRIBUTE14 NULL VARCHAR2(150) Free attribute 13
ATTRIBUTE15 NULL VARCHAR2(150) Free attribute 14
ATTRIBUTE_CATEGORY NULL VARCHAR2(150) Free attribute 15
CREATED_BY NOT NULL NUMBER () Free attribute 16
CREATION_DATE NOT NULL DATE Created By
LAST_UPDATE_DATE NOT NULL DATE Creation Date
LAST_UPDATED_BY NOT NULL NUMBER () Last Updated By
LAST_UPDATE_LOGIN NULL NUMBER () Last Update Date

Name Column
CLL_F041_AR_MISC_CASH_D_EXT_U1 MISC_CASH_DISTRIBUTION_ID

LAD Consulting Localizations 12


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_HZ_PARTIES_EXT

Colombian Customer Extension

Changes
No changes were applied to this table in this version.

Columns description
Name Null? Type Description
PARTY_ID NOT NULL NUMBER (15) Third Identification
ATTRIBUTE1 NULL VARCHAR2(150) Free attribute 1
ATTRIBUTE2
U NULL VARCHAR2(150) Free attribute 2
ATTRIBUTE3 NULL VARCHAR2(150) Free attribute 3
n
ATTRIBUTE4 NULL VARCHAR2(150) Free attribute 4
i
ATTRIBUTE5 NULL VARCHAR2(150) Free attribute 5
q
ATTRIBUTE6 NULL VARCHAR2(150) Free attribute 6
u
ATTRIBUTE7 NULL VARCHAR2(150) Free attribute 7
e
ATTRIBUTE8 NULL VARCHAR2(150) Free attribute 8
ATTRIBUTE9 NULL VARCHAR2(150) Free attribute 9
K
ATTRIBUTE10 NULL VARCHAR2(150) Free attribute 10
e
ATTRIBUTE11 NULL VARCHAR2(150) Free attribute 11
y
ATTRIBUTE12 NULL VARCHAR2(150) Free attribute 12
ATTRIBUTE13
s NULL VARCHAR2(150) Free attribute 13
ATTRIBUTE14 NULL VARCHAR2(150) Free attribute 14
ATTRIBUTE15 NULL VARCHAR2(150) Free attribute 15
ATTRIBUTE_CATEGORY NULL VARCHAR2(150) Free attribute 16
CREATED_BY NOT NULL NUMBER () Created By
CREATION_DATE NOT NULL DATE Creation Date
LAST_UPDATE_DATE NOT NULL DATE Last Updated By
LAST_UPDATED_BY NOT NULL NUMBER () Last Update Date
LAST_UPDATE_LOGIN NULL NUMBER () Last Update Login

Name Column
CLL_F043_HZ_PARTIES_EXT_U1 PARTY_ID

LAD Consulting Localizations 13


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_RA_CUSTOMERS_EXT

Colombian Customer Extension

Changes
No changes were applied to this table in this version.

Columns description
Name Null? Type Description
CUSTOMER_ID NOT NULL NUMBER (15) Customer Identification
ATTRIBUTE1 NULL VARCHAR2(150) Free attribute 1
ATTRIBUTE2
U NULL VARCHAR2(150) Free attribute 2
ATTRIBUTE3 NULL VARCHAR2(150) Free attribute 3
n
ATTRIBUTE4 NULL VARCHAR2(150) Free attribute 4
i
ATTRIBUTE5 NULL VARCHAR2(150) Free attribute 5
q
ATTRIBUTE6 NULL VARCHAR2(150) Free attribute 6
u
ATTRIBUTE7 NULL VARCHAR2(150) Free attribute 7
e
ATTRIBUTE8 NULL VARCHAR2(150) Free attribute 8
ATTRIBUTE9 NULL VARCHAR2(150) Free attribute 9
K
ATTRIBUTE10 NULL VARCHAR2(150) Free attribute 10
e
ATTRIBUTE11 NULL VARCHAR2(150) Free attribute 11
y
ATTRIBUTE12 NULL VARCHAR2(150) Free attribute 12
ATTRIBUTE13
s NULL VARCHAR2(150) Free attribute 13
ATTRIBUTE14 NULL VARCHAR2(150) Free attribute 14
ATTRIBUTE15 NULL VARCHAR2(150) Free attribute 15
ATTRIBUTE_CATEGORY NULL VARCHAR2(150) Free attribute 16
CREATED_BY NOT NULL NUMBER () Created By
CREATION_DATE NOT NULL DATE Creation Date
LAST_UPDATE_DATE NOT NULL DATE Last Updated By
LAST_UPDATED_BY NOT NULL NUMBER () Last Update Date
LAST_UPDATE_LOGIN NULL NUMBER () Last Update Login

Name Column
CLL_F043_RA_CUSTOMERS_EXT_U1 CUSTOMER_ID

CLL_F043_AR_HZ_PARTY_SITES_EXT

Colombian Customer Site Extension

Changes
No changes were applied to this table in this version.

Columns description
Name Null? Type Description
PARTY_SITE_ID NOT NULL NUMBER(0)
ATTRIBUTE1 NULL VARCHAR2(150)
ATTRIBUTE2 NULL VARCHAR2(150)
ATTRIBUTE3 NULL VARCHAR2(150)
ATTRIBUTE4 NULL VARCHAR2(150)
ATTRIBUTE5 NULL VARCHAR2(150)
ATTRIBUTE6 NULL VARCHAR2(150)
ATTRIBUTE7 NULL VARCHAR2(150)
ATTRIBUTE8 NULL VARCHAR2(150)

LAD Consulting Localizations 14


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
ATTRIBUTE9 NULL VARCHAR2(150)
ATTRIBUTE10 NULL VARCHAR2(150)
ATTRIBUTE11 NULL VARCHAR2(150)
ATTRIBUTE12 NULL VARCHAR2(150)
ATTRIBUTE13 NULL VARCHAR2(150)
ATTRIBUTE14 NULL VARCHAR2(150)
ATTRIBUTE15 NULL VARCHAR2(150)
ATTRIBUTE_CATEGORY NULL VARCHAR2(150)
CREATED_BYNOT NULL NUMBER(0)
CREATION_DATENOT NULL DATE(0)
LAST_UPDATED_BYNOT NULL NUMBER(0)
LAST_UPDATE_DATE NOT NULL DATE(0)

Name Column
CLL_F043_AR_HZ_PARTY_S_EXT_U1 PARTY_SITE_ID

CLL_F043_JL_ZZ_AR_TX_GRPS_EXT

Latin Tax Group Extension

Changes
No changes were applied to this table in this version.

Columns description
Name Null? Type Description
TAX_GROUP_RECORD_ID NOT NULL NUMBER(0)
ATTRIBUTE1 NULL VARCHAR2(150)
ATTRIBUTE2 NULL VARCHAR2(150)
ATTRIBUTE3 NULL VARCHAR2(150)
ATTRIBUTE4 NULL VARCHAR2(150)
ATTRIBUTE5 NULL VARCHAR2(150)
ATTRIBUTE6 NULL VARCHAR2(150)
ATTRIBUTE7 NULL VARCHAR2(150)
ATTRIBUTE8 NULL VARCHAR2(150)
ATTRIBUTE9 NULL VARCHAR2(150)
ATTRIBUTE10 NULL VARCHAR2(150)
ATTRIBUTE11 NULL VARCHAR2(150)
ATTRIBUTE12 NULL VARCHAR2(150)
ATTRIBUTE13 NULL VARCHAR2(150)
ATTRIBUTE14 NULL VARCHAR2(150)
ATTRIBUTE15 NULL VARCHAR2(150)
ATTRIBUTE_CATEGORY NULL VARCHAR2(150)
CREATED_BY NOT NULL NUMBER(0)
CREATION_DATE NOT NULL DATE(0)
LAST_UPDATED_BY NOT NULL NUMBER(0)
LAST_UPDATE_DATE NOT NULL DATE(0)
LAST_UPDATE_LOGIN NULL NUMBER(0)

Name Column
CLL_F043_JL_ZZ_AR_TX_GR_EXT_U1 TAX_GROUP_RECORD_ID

LAD Consulting Localizations 15


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_RA_TERMS_EXT

Colombian Payment Term Information Extension

Changes
No changes were applied to this table in this version.

Columns description
Name Null Type Description
TAX_RATE_ID NOT NULL NUMBER
ATTRIBUTE1 NULL VARCHAR2(150)
ATTRIBUTE2 NULL VARCHAR2(150)
ATTRIBUTE3 NULL VARCHAR2(150)
ATTRIBUTE4 NULL VARCHAR2(150)
ATTRIBUTE5 NULL VARCHAR2(150)
ATTRIBUTE6 NULL VARCHAR2(150)
ATTRIBUTE7 NULL VARCHAR2(150)
ATTRIBUTE8 NULL VARCHAR2(150)
ATTRIBUTE9 NULL VARCHAR2(150)
ATTRIBUTE10 NULL VARCHAR2(150)
ATTRIBUTE11 NULL VARCHAR2(150)
ATTRIBUTE12 NULL VARCHAR2(150)
ATTRIBUTE13 NULL VARCHAR2(150)
ATTRIBUTE14 NULL VARCHAR2(150)
ATTRIBUTE15 NULL VARCHAR2(150)
ATTRIBUTE_CATEGORY NULL VARCHAR2(150)
CREATED_BY NOT NULL NUMBER
CREATION_DATE NOT NULL DATE
LAST_UPDATED_BY NOT NULL NUMBER
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATE_LOGIN NULL NUMBER

Unique Key
Name Column
CLL_F043_RA_TERMS_EXT_U1 TERM_ID

LAD Consulting Localizations 16


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_CUST_TRX_TYPES_EXT

Colombia Transaction Types Extension

Changes
No changes were applied to this table in this version.

Columns description
Name Null Type Description
CUST_TRX_TYPE_ID NOT NULL NUMBER
ORG_ID NOT NULL NUMBER
ATTRIBUTE1 NULL VARCHAR2(150)
ATTRIBUTE2 NULL VARCHAR2(150)
ATTRIBUTE3 NULL VARCHAR2(150)
ATTRIBUTE4 NULL VARCHAR2(150)
ATTRIBUTE5 NULL VARCHAR2(150)
ATTRIBUTE6 NULL VARCHAR2(150)
ATTRIBUTE7 NULL VARCHAR2(150)
ATTRIBUTE8 NULL VARCHAR2(150)
ATTRIBUTE9 NULL VARCHAR2(150)
ATTRIBUTE10 NULL VARCHAR2(150)
ATTRIBUTE11 NULL VARCHAR2(150)
ATTRIBUTE12 NULL VARCHAR2(150)
ATTRIBUTE13 NULL VARCHAR2(150)
ATTRIBUTE14 NULL VARCHAR2(150)
ATTRIBUTE15 NULL VARCHAR2(150)
ATTRIBUTE_CATEGORY NULL VARCHAR2(150)
CREATED_BY NOT NULL NUMBER
CREATION_DATE NOT NULL DATE
LAST_UPDATED_BY NOT NULL NUMBER
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATE_LOGIN NULL NUMBER

Unique Key
Name Column
CUST_TRX_TYPE_ID,
CLL_F043_CUST_TRX_TYPES_U1 ORG_ID

LAD Consulting Localizations 17


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_AR_VAT_TAX_ALL_B_EXT

Colombian Tax Code Extension (AR)

Changes
No changes were applied to this table in this version.

Columns description
Name Null Type Description
VAT_TAX_ID NOT NULL NUMBER
ATTRIBUTE1 NULL VARCHAR2(150)
ATTRIBUTE2 NULL VARCHAR2(150)
ATTRIBUTE3 NULL VARCHAR2(150)
ATTRIBUTE4 NULL VARCHAR2(150)
ATTRIBUTE5 NULL VARCHAR2(150)
ATTRIBUTE6 NULL VARCHAR2(150)
ATTRIBUTE7 NULL VARCHAR2(150)
ATTRIBUTE8 NULL VARCHAR2(150)
ATTRIBUTE9 NULL VARCHAR2(150)
ATTRIBUTE10 NULL VARCHAR2(150)
ATTRIBUTE11 NULL VARCHAR2(150)
ATTRIBUTE12 NULL VARCHAR2(150)
ATTRIBUTE13 NULL VARCHAR2(150)
ATTRIBUTE14 NULL VARCHAR2(150)
ATTRIBUTE15 NULL VARCHAR2(150)
ATTRIBUTE_CATEGORY NULL VARCHAR2(150)
CREATED_BY NOT NULL NUMBER
CREATION_DATE NOT NULL DATE
LAST_UPDATED_BY NOT NULL NUMBER
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATE_LOGIN NULL NUMBER

Unique Key
Name Column
CLL_F043_AR_VAT_TAX_EXT_U1 VAT_TAX_ID

LAD Consulting Localizations 18


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_RA_BATCH_SOURCES_EXT

Colombian Transaction Sources Extension

Changes
No changes were applied to this table in this version.

Columns description
Name Null Type Description
BATCH_SOURCE_ID NOT NULL NUMBER
ORG_ID NULL NUMBER
ATTRIBUTE1 NULL VARCHAR2(150)
ATTRIBUTE2 NULL VARCHAR2(150)
ATTRIBUTE3 NULL VARCHAR2(150)
ATTRIBUTE4 NULL VARCHAR2(150)
ATTRIBUTE5 NULL VARCHAR2(150)
ATTRIBUTE6 NULL VARCHAR2(150)
ATTRIBUTE7 NULL VARCHAR2(150)
ATTRIBUTE8 NULL VARCHAR2(150)
ATTRIBUTE9 NULL VARCHAR2(150)
ATTRIBUTE10 NULL VARCHAR2(150)
ATTRIBUTE11 NULL VARCHAR2(150)
ATTRIBUTE12 NULL VARCHAR2(150)
ATTRIBUTE13 NULL VARCHAR2(150)
ATTRIBUTE14 NULL VARCHAR2(150)
ATTRIBUTE15 NULL VARCHAR2(150)
ATTRIBUTE_CATEGORY NULL VARCHAR2(150)
CREATED_BY NOT NULL NUMBER
CREATION_DATE NOT NULL DATE
LAST_UPDATED_BY NOT NULL NUMBER
LAST_UPDATE_DATE NOT NULL DATE

Unique Key
Name Column
BATCH_SOURCE_ID,
CLL_F043_RA_BATCH_SOUR_EXT_U1 ORG_ID

LAD Consulting Localizations 19


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_AR_CUST_TRX_LINES_EXT

Colombia Customer Invoice Line Extension

Changes
No changes were applied to this table in this version.

Columns description
Name Null Type Description
CUSTOMER_TRX_ID NOT NULL NUMBER
CUSTOMER_TRX_LINE_ID NOT NULL NUMBER
ATTRIBUTE1 NULL VARCHAR2(150)
ATTRIBUTE2 NULL VARCHAR2(150)
ATTRIBUTE3 NULL VARCHAR2(150)
ATTRIBUTE4 NULL VARCHAR2(150)
ATTRIBUTE5 NULL VARCHAR2(150)
ATTRIBUTE6 NULL VARCHAR2(150)
ATTRIBUTE7 NULL VARCHAR2(150)
ATTRIBUTE8 NULL VARCHAR2(150)
ATTRIBUTE9 NULL VARCHAR2(150)
ATTRIBUTE10 NULL VARCHAR2(150)
ATTRIBUTE11 NULL VARCHAR2(150)
ATTRIBUTE12 NULL VARCHAR2(150)
ATTRIBUTE13 NULL VARCHAR2(150)
ATTRIBUTE14 NULL VARCHAR2(150)
ATTRIBUTE15 NULL VARCHAR2(150)
ATTRIBUTE_CATEGORY NULL VARCHAR2(150)
CREATED_BY NOT NULL NUMBER
CREATION_DATE NOT NULL DATE
LAST_UPDATED_BY NOT NULL NUMBER
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATE_LOGIN NULL NUMBER

Unique Key
Name Column
CLL_F043_AR_CUST_TRX_LINES_U1 CUSTOMER_TRX_LINE_ID

LAD Consulting Localizations 20


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_AR_CUSTOMER_TRX_EXT

Colombia Customer Transaction Extension

Changes
No changes were applied to this table in this version.

Columns description
Name Null Type Description
CUSTOMER_TRX_ID NOT NULL NUMBER
ATTRIBUTE1 NULL VARCHAR2(150)
ATTRIBUTE2 NULL VARCHAR2(150)
ATTRIBUTE3 NULL VARCHAR2(150)
ATTRIBUTE4 NULL VARCHAR2(150)
ATTRIBUTE5 NULL VARCHAR2(150)
ATTRIBUTE6 NULL VARCHAR2(150)
ATTRIBUTE7 NULL VARCHAR2(150)
ATTRIBUTE8 NULL VARCHAR2(150)
ATTRIBUTE9 NULL VARCHAR2(150)
ATTRIBUTE10 NULL VARCHAR2(150)
ATTRIBUTE11 NULL VARCHAR2(150)
ATTRIBUTE12 NULL VARCHAR2(150)
ATTRIBUTE13 NULL VARCHAR2(150)
ATTRIBUTE14 NULL VARCHAR2(150)
ATTRIBUTE15 NULL VARCHAR2(150)
ATTRIBUTE_CATEGORY NULL VARCHAR2(150)
CREATED_BY NOT NULL NUMBER
CREATION_DATE NOT NULL DATE
LAST_UPDATED_BY NOT NULL NUMBER
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATE_LOGIN NULL NUMBER

Unique Key
Name Column
CLL_F043_AR_CUSTOMER_TRX_U1 CUSTOMER_TRX_ID

LAD Consulting Localizations 21


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_HZ_RELATIONSHIPS_EXT

Colombia Relationships Extension

Changes
No changes were applied to this table in this version.

Columns description
Name Null Type Description
RELATIONSHIP_ID NOT NULL NUMBER
OBJECT_ID NOT NULL NUMBER
ATTRIBUTE1 NULL VARCHAR2(150)
ATTRIBUTE2 NULL VARCHAR2(150)
ATTRIBUTE3 NULL VARCHAR2(150)
ATTRIBUTE4 NULL VARCHAR2(150)
ATTRIBUTE5 NULL VARCHAR2(150)
ATTRIBUTE6 NULL VARCHAR2(150)
ATTRIBUTE7 NULL VARCHAR2(150)
ATTRIBUTE8 NULL VARCHAR2(150)
ATTRIBUTE9 NULL VARCHAR2(150)
ATTRIBUTE10 NULL VARCHAR2(150)
ATTRIBUTE11 NULL VARCHAR2(150)
ATTRIBUTE12 NULL VARCHAR2(150)
ATTRIBUTE13 NULL VARCHAR2(150)
ATTRIBUTE14 NULL VARCHAR2(150)
ATTRIBUTE15 NULL VARCHAR2(150)
ATTRIBUTE_CATEGORY NULL VARCHAR2(150)
CREATED_BY NOT NULL NUMBER
CREATION_DATE NOT NULL DATE
LAST_UPDATED_BY NOT NULL NUMBER
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATE_LOGIN NULL NUMBER

Unique Key
Name Column
RELATIONSHIP_ID,
CLL_F043_HZ_RELATIONS_EXT_U1 OBJECT_ID

LAD Consulting Localizations 22


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_AR_REC_METHODS_EXT

Colombia Receivables Payment Methods Extension

Changes
No changes were applied to this table in this version.

Columns description
Name Null Type Description
RECEIPT_METHOD_ID NOT NULL NUMBER
ATTRIBUTE1 NULL VARCHAR2(150)
ATTRIBUTE2 NULL VARCHAR2(150)
ATTRIBUTE3 NULL VARCHAR2(150)
ATTRIBUTE4 NULL VARCHAR2(150)
ATTRIBUTE5 NULL VARCHAR2(150)
ATTRIBUTE6 NULL VARCHAR2(150)
ATTRIBUTE7 NULL VARCHAR2(150)
ATTRIBUTE8 NULL VARCHAR2(150)
ATTRIBUTE9 NULL VARCHAR2(150)
ATTRIBUTE10 NULL VARCHAR2(150)
ATTRIBUTE11 NULL VARCHAR2(150)
ATTRIBUTE12 NULL VARCHAR2(150)
ATTRIBUTE13 NULL VARCHAR2(150)
ATTRIBUTE14 NULL VARCHAR2(150)
ATTRIBUTE15 NULL VARCHAR2(150)
ATTRIBUTE_CATEGORY NULL VARCHAR2(150)
CREATED_BY NOT NULL NUMBER
CREATION_DATE NOT NULL DATE
LAST_UPDATED_BY NOT NULL NUMBER
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATE_LOGIN NULL NUMBER

Unique Key
Name Column
CLL_F043_AR_REC_METHODS_U1 RECEIPT_METHOD_ID

LAD Consulting Localizations 23


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_AR_CASH_RECEIPTS_EXT

Colombian Cash Receipts Extension

Changes
No changes were applied to this table in this version.

Columns description
Name Null Type Description
CASH_RECEIPT_ID NOT NULL NUMBER
ATTRIBUTE1 NULL VARCHAR2(150)
ATTRIBUTE2 NULL VARCHAR2(150)
ATTRIBUTE3 NULL VARCHAR2(150)
ATTRIBUTE4 NULL VARCHAR2(150)
ATTRIBUTE5 NULL VARCHAR2(150)
ATTRIBUTE6 NULL VARCHAR2(150)
ATTRIBUTE7 NULL VARCHAR2(150)
ATTRIBUTE8 NULL VARCHAR2(150)
ATTRIBUTE9 NULL VARCHAR2(150)
ATTRIBUTE10 NULL VARCHAR2(150)
ATTRIBUTE11 NULL VARCHAR2(150)
ATTRIBUTE12 NULL VARCHAR2(150)
ATTRIBUTE13 NULL VARCHAR2(150)
ATTRIBUTE14 NULL VARCHAR2(150)
ATTRIBUTE15 NULL VARCHAR2(150)
ATTRIBUTE_CATEGORY NULL VARCHAR2(150)
CREATED_BY NOT NULL NUMBER
CREATION_DATE NOT NULL DATE
LAST_UPDATED_BY NOT NULL NUMBER
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATE_LOGIN NULL NUMBER

Unique Key
Name Column
CLL_F043_AR_CASH_REC_EXT_U1 CASH_RECEIPT_ID

LAD Consulting Localizations 24


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
View Definition

The View Definition section contains a detailed definition of each view in Oracle
Colombian Legal Reports. You will see the following fields for each view:
objective, definition, column description, indexes and sequences.

CLL_F043_CUSTOMER_TRX_AWT_V
.

CREATE OR REPLACE FORCE VIEW "APPS"."CLL_F043_CUSTOMER_TRX_AWT_V" ("LEGAL_ENTITY_ID",


"LEGAL_ENTITY_NAME_INV", "LEGAL_ENTITY_IDENTIFIER_INV", "ADDRESS_INV", "PHONE_NUMBER_INV",
"EMAIL_ADDRESS_INV", "ORG_ID", "CUSTOMER_TRX_ID", "BILL_TO_CUSTOMER_ID", "TRX_DATE",
"PERIOD_M", "PERIOD_B", "PERIOD_T", "PERIOD_S", "PERIOD_A", "DOCUMENT_TYPE",
"DOCUMENT_NUMBER", "VERIFICATION_DIGIT", "CUSTOMER_NAME", "CUSTOMER_ADDRESS",
"CUSTOMER_PHONE", "CUSTOMER_EMAIL", "CITY_CODE", "CITY", "STATE_CODE", "STATE", "INV_AMOUNT",
"DM_AMOUNT", "CM_AMOUNT", "ADJ_AMOUNT", "VAT_RATE", "VAT_AMOUNT", "WITHHOLDING_BASE_AMOUNT",
"WITHHOLDING_RATE", "INV_WITHHOLDING_AMOUNT", "DM_WITHHOLDING_AMOUNT",
"CM_WITHHOLDING_AMOUNT", "WITHHOLDING_TAX_CODE", "WITHHOLDING_TAX_TYPE", "ECONOMIC_ACTIVITY")
AS
SELECT le.legal_entity_id legal_entity_id ,
le.legal_entity_name legal_entity_name_inv ,
le.legal_entity_identifier legal_entity_identifier_inv ,
le.address address_inv ,
le.phone_number phone_number_inv ,
le.email_address email_address_inv ,
rcta.org_id ,
rcta.customer_trx_id ,
rcta.bill_to_customer_id ,
rcta.trx_date ,
CEIL(TO_NUMBER(TO_CHAR(rcta.trx_date,'MM'))/1) period_m ,
CEIL(TO_NUMBER(TO_CHAR(rcta.trx_date,'MM'))/2) period_b ,
CEIL(TO_NUMBER(TO_CHAR(rcta.trx_date,'MM'))/3) period_t ,
CEIL(TO_NUMBER(TO_CHAR(rcta.trx_date,'MM'))/6) period_s ,
TO_NUMBER(TO_CHAR(rcta.trx_date,'YYYY')) period_a ,
cfhp.attribute1 document_type ,
hp.jgzz_fiscal_code document_number ,
hca.global_attribute12 verification_digit ,
hp.party_name customer_name ,
hz_format_pub.format_address (hl.location_id,NULL,NULL,', ') customer_address ,
REPLACE (hcp.phone_number,' ','') customer_phone ,
email.email_address customer_email ,
(SELECT gi.identifier_value
FROM hz_geographies g_city ,
hz_geographies g_state ,
hz_geography_identifiers gi
WHERE g_city.geography_element2_id = g_state.geography_id
AND g_city.country_code = g_state.country_code
AND g_city.geography_id = gi.geography_id
AND gi.identifier_subtype = 'CLL_F041_CODE'
AND g_state.country_code = hl.country
AND g_state.geography_type = 'STATE'
AND g_state.geography_name = hl.state
AND g_city.geography_type = 'CITY'
AND g_city.geography_name = hl.city
) city_code ,
hl.city city ,
(SELECT gi.identifier_value
FROM hz_geographies g_state ,
hz_geography_identifiers gi
WHERE g_state.geography_id = gi.geography_id
AND gi.identifier_subtype = 'CLL_F041_CODE'
AND g_state.country_code = hl.country
AND g_state.geography_type = 'STATE'
AND g_state.geography_name = hl.state
) state_code ,

LAD Consulting Localizations 25


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
hl.state state ,
NVL(DECODE(ctt.type,'INV',
(SELECT SUM(l.extended_amount)
FROM ra_customer_trx_lines_all l
WHERE l.customer_trx_id = rcta.customer_trx_id
),0),0) inv_amount ,
NVL(DECODE(ctt.type,'DM',
(SELECT SUM(l.extended_amount)
FROM ra_customer_trx_lines_all l
WHERE l.customer_trx_id = rcta.customer_trx_id
),0),0) dm_amount ,
NVL(DECODE(ctt.type,'CM',
(SELECT SUM(l.extended_amount)
FROM ra_customer_trx_lines_all l
WHERE l.customer_trx_id = rcta.customer_trx_id
),0),0) cm_amount ,
NVL(
(SELECT SUM(a.acctd_amount)
FROM ar_adjustments_all a
WHERE a.customer_trx_id = rcta.customer_trx_id
),0) adj_amount ,
NVL(tax_vat.tax_rate,0) vat_rate ,
SUM(NVL(tax_vat.tax_amt_funcl_curr, tax_vat.tax_amt)) vat_amount ,
0 withholding_base_amount ,
0 withholding_rate ,
0 inv_withholding_amount ,
0 dm_withholding_amount ,
0 cm_withholding_amount ,
NULL withholding_tax_code ,
NULL withholding_tax_type ,
cfas.attribute1 economic_activity
FROM ra_customer_trx_all rcta ,
ra_cust_trx_types_all ctt ,
hz_parties hp ,
cll_f043_hz_parties_ext cfhp ,
hz_party_sites hps ,
hz_locations hl ,
hz_cust_site_uses_all hcsua ,
hz_cust_acct_sites_all hcasa ,
hz_cust_accounts hca ,
hz_contact_points hcp ,
hz_contact_points email ,
zx_lines tax_vat ,
cll_f043_ar_hz_party_sites_ext cfas ,
cll_f043_legal_entities_v le
WHERE hp.party_id = hps.party_id
AND hp.party_id = cfhp.party_id(+)
AND hca.party_id = hp.party_id
AND hps.location_id = hl.location_id
AND hcasa.cust_acct_site_id = hcsua.cust_acct_site_id
AND hcasa.party_site_id = hps.party_site_id
AND hcasa.status = 'A'
AND hcsua.site_use_code ='BILL_TO'
-- AND hcsua.primary_flag ='Y'
AND hps.party_site_id = cfas.party_site_id(+)
AND rcta.complete_flag = 'Y'
AND rcta.bill_to_customer_id = hcasa.cust_account_id
AND rcta.bill_to_site_use_id = hcsua.site_use_id
AND ctt.cust_trx_type_id = rcta.cust_trx_type_id
AND ctt.org_id = rcta.org_id
AND ctt.type IN ('INV','DM','CM')
AND hcp.owner_table_name(+) = 'HZ_PARTIES'
AND hcp.contact_point_type(+) = 'PHONE'
AND hps.party_id = hcp.owner_table_id(+)
AND hcp.status(+) = 'A'
AND hcp.primary_flag(+) ='Y'
AND email.owner_table_name(+) = 'HZ_PARTIES'
AND email.contact_point_type(+) = 'EMAIL'
AND hps.party_id = email.owner_table_id(+)
AND email.status(+) = 'A'
AND email.primary_flag(+) ='Y'
AND hcasa.org_id = rcta.org_id
AND hcsua.org_id = rcta.org_id

LAD Consulting Localizations 26


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
AND le.legal_entity_id = rcta.legal_entity_id
AND tax_vat.trx_id(+) = rcta.customer_trx_id
AND tax_vat.application_id(+) = 222
AND tax_vat.tax(+) = 'VAT'
AND NVL(tax_vat.delete_flag(+),'N') != 'Y'
GROUP BY le.legal_entity_id ,
le.legal_entity_name ,
le.legal_entity_identifier ,
le.address ,
le.phone_number ,
le.email_address ,
cfhp.attribute1 --document_type
,
hp.jgzz_fiscal_code --document_number
,
hca.global_attribute12 --verification_digit
,
hp.party_name --customer_name
,
hl.location_id --customer_address
,
hcp.phone_number --customer_phone
,
email.email_address --customer_email
,
hl.country --city_code
,
hl.city ,
hl.state ,
rcta.org_id ,
rcta.customer_trx_id ,
rcta.bill_to_customer_id ,
rcta.trx_date ,
ctt.type ,
tax_vat.tax_rate --vat_rate
,
tax_vat.tax --withholding_tax_code
,
cfas.attribute1 --economic_activity
UNION ALL
SELECT le.legal_entity_id legal_entity_id ,
le.legal_entity_name legal_entity_name_inv ,
le.legal_entity_identifier legal_entity_identifier_inv ,
le.address address_inv ,
le.phone_number phone_number_inv ,
le.email_address email_address_inv ,
rcta.org_id ,
rcta.customer_trx_id ,
rcta.bill_to_customer_id ,
rcta.trx_date ,
CEIL(TO_NUMBER(TO_CHAR(rcta.trx_date,'MM'))/1) period_m ,
CEIL(TO_NUMBER(TO_CHAR(rcta.trx_date,'MM'))/2) period_b ,
CEIL(TO_NUMBER(TO_CHAR(rcta.trx_date,'MM'))/3) period_t ,
CEIL(TO_NUMBER(TO_CHAR(rcta.trx_date,'MM'))/6) period_s ,
TO_NUMBER(TO_CHAR(rcta.trx_date,'YYYY')) period_a ,
cfhp.attribute1 document_type ,
hp.jgzz_fiscal_code document_number ,
hca.global_attribute12 verification_digit ,
hp.party_name customer_name ,
hz_format_pub.format_address (hl.location_id,NULL,NULL,', ') customer_address ,
REPLACE (hcp.phone_number,' ','') customer_phone ,
email.email_address customer_email ,
(SELECT gi.identifier_value
FROM hz_geographies g_city ,
hz_geographies g_state ,
hz_geography_identifiers gi
WHERE g_city.geography_element2_id = g_state.geography_id
AND g_city.country_code = g_state.country_code
AND g_city.geography_id = gi.geography_id
AND gi.identifier_subtype = 'CLL_F041_CODE'
AND g_state.country_code = hl.country
AND g_state.geography_type = 'STATE'
AND g_state.geography_name = hl.state

LAD Consulting Localizations 27


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
AND g_city.geography_type = 'CITY'
AND g_city.geography_name = hl.city
) city_code ,
hl.city city ,
(SELECT gi.identifier_value
FROM hz_geographies g_state ,
hz_geography_identifiers gi
WHERE g_state.geography_id = gi.geography_id
AND gi.identifier_subtype = 'CLL_F041_CODE'
AND g_state.country_code = hl.country
AND g_state.geography_type = 'STATE'
AND g_state.geography_name = hl.state
) state_code ,
hl.state state ,
NVL(DECODE(ctt.type,'INV',
(SELECT SUM(l.extended_amount)
FROM ra_customer_trx_lines_all l
WHERE l.customer_trx_id = rcta.customer_trx_id
),0),0) inv_amount ,
NVL(DECODE(ctt.type,'DM',
(SELECT SUM(l.extended_amount)
FROM ra_customer_trx_lines_all l
WHERE l.customer_trx_id = rcta.customer_trx_id
),0),0) dm_amount ,
NVL(DECODE(ctt.type,'CM',
(SELECT SUM(l.extended_amount)
FROM ra_customer_trx_lines_all l
WHERE l.customer_trx_id = rcta.customer_trx_id
),0),0) cm_amount ,
NVL(
(SELECT SUM(a.acctd_amount)
FROM ar_adjustments_all a
WHERE a.customer_trx_id = rcta.customer_trx_id
),0) adj_amount ,
0 vat_rate ,
0 vat_amount ,
SUM(NVL(NVL(tax_ret.taxable_amt_funcl_curr,tax_ret.taxable_amt),0))
withholding_base_amount ,
NVL(tax_ret.tax_rate,0) withholding_rate ,
SUM(NVL(DECODE(ctt.type,'INV',NVL(tax_ret.tax_amt_funcl_curr,tax_ret.tax_amt),0),0))
inv_withholding_amount ,
SUM(NVL(DECODE(ctt.type,'DM',NVL(tax_ret.tax_amt_funcl_curr,tax_ret.tax_amt),0),0))
dm_withholding_amount ,
SUM(NVL(DECODE(ctt.type,'CM',NVL(tax_ret.tax_amt_funcl_curr,tax_ret.tax_amt),0),0))
cm_withholding_amount ,
tax_ret.tax withholding_tax_code ,
cll_reten.attribute1 withholding_tax_type ,
cfas.attribute1 economic_activity
FROM ra_customer_trx_all rcta ,
ra_cust_trx_types_all ctt ,
hz_parties hp ,
cll_f043_hz_parties_ext cfhp ,
hz_party_sites hps ,
hz_locations hl ,
hz_cust_site_uses_all hcsua ,
hz_cust_acct_sites_all hcasa ,
hz_cust_accounts hca ,
hz_contact_points hcp ,
hz_contact_points email ,
zx_lines tax_ret ,
jl_zz_ar_tx_groups_all tgr ,
jl_zz_ar_tx_categ_all txc ,
cll_f043_jl_zz_ar_tx_grps_ext cll_reten ,
cll_f043_ar_hz_party_sites_ext cfas ,
cll_f043_legal_entities_v le
WHERE hp.party_id = hps.party_id
AND hp.party_id = cfhp.party_id(+)
AND hca.party_id = hp.party_id
AND hps.location_id = hl.location_id
AND hcasa.cust_acct_site_id = hcsua.cust_acct_site_id
AND hcasa.party_site_id = hps.party_site_id
AND hcasa.status = 'A'
AND hcsua.site_use_code ='BILL_TO'

LAD Consulting Localizations 28


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
-- AND hcsua.primary_flag ='Y'
AND hps.party_site_id = cfas.party_site_id(+)
AND rcta.complete_flag = 'Y'
AND rcta.bill_to_customer_id = hcasa.cust_account_id
AND rcta.bill_to_site_use_id = hcsua.site_use_id
AND ctt.cust_trx_type_id = rcta.cust_trx_type_id
AND ctt.org_id = rcta.org_id
AND ctt.type IN ('INV','DM','CM')
AND hcp.owner_table_name(+) = 'HZ_PARTIES'
AND hcp.contact_point_type(+) = 'PHONE'
AND hps.party_id = hcp.owner_table_id(+)
AND hcp.status(+) = 'A'
AND hcp.primary_flag(+) ='Y'
AND email.owner_table_name(+) = 'HZ_PARTIES'
AND email.contact_point_type(+) = 'EMAIL'
AND hps.party_id = email.owner_table_id(+)
AND email.status(+) = 'A'
AND email.primary_flag(+) ='Y'
AND hcasa.org_id = rcta.org_id
AND hcsua.org_id = rcta.org_id
AND le.legal_entity_id = rcta.legal_entity_id
AND tgr.tax_category_id = txc.tax_category_id
AND tgr.org_id = txc.org_id
AND tax_ret.trx_id = rcta.customer_trx_id
AND tax_ret.application_id = 222
AND tax_ret.tax != 'VAT'
AND NVL(tax_ret.delete_flag(+),'N') != 'Y'
AND txc.tax_category = tax_ret.tax
AND tgr.tax_code = tax_ret.tax_rate_code
AND tgr.tax_group_record_id = cll_reten.tax_group_record_id
AND cll_reten.attribute1 IS NOT NULL
GROUP BY le.legal_entity_id ,
le.legal_entity_name ,
le.legal_entity_identifier ,
le.address ,
le.phone_number ,
le.email_address ,
cfhp.attribute1 --document_type
,
hp.jgzz_fiscal_code --document_number
,
hca.global_attribute12 --verification_digit
,
hp.party_name --customer_name
,
hl.location_id --customer_address
,
hcp.phone_number --customer_phone
,
email.email_address --customer_email
,
hl.country --city_code
,
hl.city ,
hl.state ,
rcta.org_id ,
rcta.customer_trx_id ,
rcta.bill_to_customer_id ,
rcta.trx_date ,
ctt.type ,
tax_ret.tax_rate --withholding_rate
,
tax_ret.tax --withholding_tax_code
,
cll_reten.attribute1 --awt.withholding_tax_type
,
cfas.attribute1 --economic_activity;
;

Columns description

Name Type

LAD Consulting Localizations 29


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
LEGAL_ENTITY_ID NUMBER(15)
LEGAL_ENTITY_NAME_INV VARCHAR2(240)
LEGAL_ENTITY_IDENTIFIER_INV VARCHAR2(30)
ADDRESS_INV VARCHAR2(905)
PHONE_NUMBER_INV VARCHAR2(40)
EMAIL_ADDRESS_INV VARCHAR2(2000)
ORG_ID NUMBER(15)
CUSTOMER_TRX_ID NUMBER(15)
BILL_TO_CUSTOMER_ID NUMBER(15)
TRX_DATE DATE
PERIOD_M NUMBER
PERIOD_B NUMBER
PERIOD_T NUMBER
PERIOD_S NUMBER
PERIOD_A NUMBER
DOCUMENT_TYPE VARCHAR2(150)
DOCUMENT_NUMBER VARCHAR2(20)
VERIFICATION_DIGIT VARCHAR2(150)
CUSTOMER_NAME VARCHAR2(360)
CUSTOMER_ADDRESS VARCHAR2(4000)
CUSTOMER_PHONE VARCHAR2(40)
CUSTOMER_EMAIL VARCHAR2(2000)
CITY_CODE VARCHAR2(360)
CITY VARCHAR2(60)
STATE_CODE VARCHAR2(360)
STATE VARCHAR2(60)
INV_AMOUNT NUMBER
DM_AMOUNT NUMBER
CM_AMOUNT NUMBER
ADJ_AMOUNT NUMBER
VAT_RATE NUMBER
VAT_AMOUNT NUMBER
WITHHOLDING_BASE_AMOUNT NUMBER
WITHHOLDING_RATE NUMBER
INV_WITHHOLDING_AMOUNT NUMBER
DM_WITHHOLDING_AMOUNT NUMBER
CM_WITHHOLDING_AMOUNT NUMBER
WITHHOLDING_TAX_CODE VARCHAR2(30)
WITHHOLDING_TAX_TYPE VARCHAR2(150)
ECONOMIC_ACTIVITY VARCHAR2(150)

CLL_F043_LEGAL_ENTITIES_V

CREATE OR REPLACE FORCE VIEW "APPS"."CLL_F043_LEGAL_ENTITIES_V" ("LEDGER_ID", "LEDGER_NAME",


"LEDGER_SHORT_NAME", "LEDGER_DESCRIPTION", "CURRENCY_CODE", "CURRENCY_NAME",
"CURRENCY_SYMBOL", "LEGAL_ENTITY_ID", "LEGAL_ENTITY_NAME", "LEGAL_ENTITY_IDENTIFIER",
"PARTY_ID", "GEOGRAPHY_ID", "LOCATION_ID", "LOCATION_CODE", "ADDRESS_LINE_1",
"ADDRESS_LINE_2", "ADDRESS_LINE_3", "REGION_1", "REGION_2", "REGION_3", "TOWN_OR_CITY",
"POSTAL_CODE", "COUNTRY", "COUNTRY_NAME", "ADDRESS", "REGISTRATION_ID",
"REGISTRATION_NUMBER", "REGISTERED_NAME", "JURISDICTION_ID", "LEGISLATIVE_CAT_CODE",
"JURISDICTION_NAME", "PHONE_NUMBER", "EMAIL_ADDRESS")
AS
SELECT gl.ledger_id ,
gl.NAME ledger_name ,
gl.short_name ledger_short_name ,

LAD Consulting Localizations 30


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
gl.description ledger_description ,
gl.currency_code currency_code ,
fcv.NAME currency_name ,
fcv.symbol currency_symbol ,
xep.legal_entity_id legal_entity_id ,
xep.NAME legal_entity_name ,
xep.legal_entity_identifier ,
xep.party_id party_id ,
xep.geography_id geography_id ,
hla.location_id location_id ,
hla.location_code location_code ,
hla.address_line_1 address_line_1 ,
hla.address_line_2 address_line_2 ,
hla.address_line_3 address_line_3 ,
hla.region_1 region_1 ,
hla.region_2 region_2 ,
hla.region_3 region_3 ,
hla.town_or_city town_or_city ,
hla.postal_code postal_code ,
hla.country country ,
hg.geography_name country_name ,
DECODE(NVL(hla.address_line_1,'*'),'*','',hla.address_line_1
||' ')
|| DECODE(NVL(hla.address_line_2,'*'),'*','',hla.address_line_2
||' ')
|| DECODE(NVL(hla.address_line_3,'*'),'*','',hla.address_line_3
||' ')
|| DECODE(NVL(hla.town_or_city,'*'),'*','',hla.town_or_city
||' ')
|| DECODE(NVL(hla.region_2,'*'),'*','',hla.region_2
||' ')
|| hla.postal_code address ,
xr.registration_id registration_id ,
xr.registration_number registration_number ,
xr.registered_name ,
xr.jurisdiction_id ,
xjv.legislative_cat_code ,
xjv.NAME jurisdiction_name ,
(SELECT per.primary_phone_number
FROM hz_relationships rel ,
hz_parties per ,
(SELECT 1 rec_type ,
MIN(rel.relationship_id) relationship_id ,
MAX(rel.relationship_id)
FROM hz_relationships rel ,
cll_f043_hz_relationships_ext rel_ext
WHERE rel.relationship_code = 'CONTACT_OF'
AND rel.relationship_type = 'CONTACT'
AND rel.directional_flag = 'F'
AND rel.subject_table_name = 'HZ_PARTIES'
AND rel.subject_type = 'PERSON'
AND rel.object_table_name = 'HZ_PARTIES'
AND SYSDATE BETWEEN rel.start_date AND rel.end_date
AND rel.status = 'A'
AND rel.relationship_id = rel_ext.relationship_id
AND rel.object_id = rel_ext.object_id
AND rel_ext.attribute1 = 'Y'
GROUP BY rel.object_id
UNION ALL
SELECT 2 rec_type ,
MIN(rel.relationship_id) relationship_id ,
MAX(rel.relationship_id)
FROM hz_relationships rel
WHERE rel.relationship_code = 'CONTACT_OF'
AND rel.relationship_type = 'CONTACT'
AND rel.directional_flag = 'F'
AND rel.subject_table_name = 'HZ_PARTIES'
AND rel.subject_type = 'PERSON'
AND rel.object_table_name = 'HZ_PARTIES'
AND SYSDATE BETWEEN rel.start_date AND rel.end_date
AND rel.status = 'A'
AND NOT EXISTS
(SELECT 1

LAD Consulting Localizations 31


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
FROM cll_f043_hz_relationships_ext rel_ext
WHERE rel.relationship_id = rel_ext.relationship_id
AND rel.object_id = rel_ext.object_id
AND rel_ext.attribute1 = 'Y'
)
GROUP BY rel.object_id
ORDER BY 1
) r
WHERE rel.relationship_id = r.relationship_id
AND rel.subject_id = per.party_id
AND r.relationship_id IS NOT NULL
AND rel.object_id = xep.party_id
AND ROWNUM = 1
) phone_number ,
(SELECT per.email_address
FROM hz_relationships rel ,
hz_parties per ,
(SELECT 1 rec_type ,
MIN(rel.relationship_id) relationship_id ,
MAX(rel.relationship_id)
FROM hz_relationships rel ,
cll_f043_hz_relationships_ext rel_ext
WHERE rel.relationship_code = 'CONTACT_OF'
AND rel.relationship_type = 'CONTACT'
AND rel.directional_flag = 'F'
AND rel.subject_table_name = 'HZ_PARTIES'
AND rel.subject_type = 'PERSON'
AND rel.object_table_name = 'HZ_PARTIES'
AND SYSDATE BETWEEN rel.start_date AND rel.end_date
AND rel.status = 'A'
AND rel.relationship_id = rel_ext.relationship_id
AND rel.object_id = rel_ext.object_id
AND rel_ext.attribute1 = 'Y'
GROUP BY rel.object_id
UNION ALL
SELECT 2 rec_type ,
MIN(rel.relationship_id) relationship_id ,
MAX(rel.relationship_id)
FROM hz_relationships rel
WHERE rel.relationship_code = 'CONTACT_OF'
AND rel.relationship_type = 'CONTACT'
AND rel.directional_flag = 'F'
AND rel.subject_table_name = 'HZ_PARTIES'
AND rel.subject_type = 'PERSON'
AND rel.object_table_name = 'HZ_PARTIES'
AND SYSDATE BETWEEN rel.start_date AND rel.end_date
AND rel.status = 'A'
AND NOT EXISTS
(SELECT 1
FROM cll_f043_hz_relationships_ext rel_ext
WHERE rel.relationship_id = rel_ext.relationship_id
AND rel.object_id = rel_ext.object_id
AND rel_ext.attribute1 = 'Y'
)
GROUP BY rel.object_id
ORDER BY 1
) r
WHERE rel.relationship_id = r.relationship_id
AND rel.subject_id = per.party_id
AND r.relationship_id IS NOT NULL
AND rel.object_id = xep.party_id
AND ROWNUM = 1
) email_address
FROM gl_ledgers gl ,
hr_locations_all hla ,
xle_entity_profiles xep ,
xle_registrations xr ,
xle_jurisdictions_vl xjv ,
gl_ledger_config_details glcd ,
gl_ledger_relationships glr ,
fnd_currencies_vl fcv ,
hz_geographies hg
WHERE xr.source_table = 'XLE_ENTITY_PROFILES'

LAD Consulting Localizations 32


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
AND xr.identifying_flag = 'Y'
AND gl.ledger_category_code = 'PRIMARY'
AND glcd.object_type_code = 'LEGAL_ENTITY'
AND NVL (xep.effective_to, SYSDATE) >= SYSDATE
AND xep.geography_id = hg.geography_id
AND hg.geography_type = 'COUNTRY'
AND xep.legal_entity_id = xr.source_id
AND xr.location_id = hla.location_id
AND xr.jurisdiction_id = xjv.jurisdiction_id
AND glcd.object_id = xep.legal_entity_id
AND glr.primary_ledger_id = gl.ledger_id
AND gl.ledger_category_code = glr.target_ledger_category_code
AND glcd.configuration_id = gl.configuration_id
AND gl.currency_code = fcv.currency_code ;

Columns description

Name Type
LEDGER_ID NUMBER(15)
LEDGER_NAME VARCHAR2(30)
LEDGER_SHORT_NAME VARCHAR2(20)
LEDGER_DESCRIPTION VARCHAR2(240)
CURRENCY_CODE VARCHAR2(15)
CURRENCY_NAME VARCHAR2(80)
CURRENCY_SYMBOL VARCHAR2(12)
LEGAL_ENTITY_ID NUMBER(15)
LEGAL_ENTITY_NAME VARCHAR2(240)
LEGAL_ENTITY_IDENTIFIER VARCHAR2(30)
PARTY_ID NUMBER(15)
GEOGRAPHY_ID NUMBER(15)
LOCATION_ID NUMBER(15)
LOCATION_CODE VARCHAR2(60)
ADDRESS_LINE_1 VARCHAR2(240)
ADDRESS_LINE_2 VARCHAR2(240)
ADDRESS_LINE_3 VARCHAR2(240)
REGION_1 VARCHAR2(120)
REGION_2 VARCHAR2(120)
REGION_3 VARCHAR2(120)
TOWN_OR_CITY VARCHAR2(30)
POSTAL_CODE VARCHAR2(30)
COUNTRY VARCHAR2(60)
COUNTRY_NAME VARCHAR2(360)
ADDRESS VARCHAR2(905)
REGISTRATION_ID NUMBER(15)
REGISTRATION_NUMBER VARCHAR2(30)
REGISTERED_NAME VARCHAR2(240)
JURISDICTION_ID NUMBER(15)
LEGISLATIVE_CAT_CODE VARCHAR2(30)
JURISDICTION_NAME VARCHAR2(240)
PHONE_NUMBER VARCHAR2(40)
EMAIL_ADDRESS VARCHAR2(2000)

LAD Consulting Localizations 33


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_CUST_TRX_LINES_V
Name: cll_f043_cust_trx_lines_v.xdf

Columns description

Name Type
CUSTOMER_TRX_ID NULL NUMBER
CUSTOMER_TRX_LINE_ID NULL VARCHAR2(40)
LINE_NUMBER NULL VARCHAR2(40)
DESCRIPTION NULL VARCHAR2(240)

CREATE OR REPLACE VIEW CLL_F043_CUST_TRX_LINES_V


(CUSTOMER_TRX_ID, CUSTOMER_TRX_LINE_ID, LINE_NUMBER, DESCRIPTION)
AS
SELECT customer_trx_id
, TO_CHAR (customer_trx_line_id) customer_trx_line_id
, TO_CHAR (line_number) line_number
, description
FROM ra_customer_trx_lines
WHERE line_type = 'LINE'
UNION ALL
SELECT -1
, 'Global'
, 'Global'
, 'Global'
FROM DUAL

LAD Consulting Localizations 34


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_EFD_AR_CREDIT_V
Name: cll_f043_efd_ar_credit_v.xdf

Columns description

Name Type
RESOLUTION_NUMBER NULL VARCHAR2(150)
AUT_START_DATE NULL VARCHAR2(150)
AUT_END_DATE NULL VARCHAR2(150)
PREFIX NULL VARCHAR2(150)
AUTHORIZED_NUMBER_TO NULL VARCHAR2(150)
AUTHORIZED_NUMBER_FROM NULL VARCHAR2(150)
INVOICE_AUTHORIZATION NULL VARCHAR2(150)
INVOICE_AUTHORIZATION_DATE NULL VARCHAR2(150)
INVOICE_AUTHORIZATION_KEY NULL VARCHAR2(150)
REASON_CODE NULL VARCHAR2(150)
REASON_CODE_DESCRIPTION NULL VARCHAR2(80)
CUSTOMER_TRX_ID NOT NULL NUMBER
TRX_NUMBER NOT NULL VARCHAR2(20)
DOCUMENT_SEQUENCE_NUMBER NULL VARCHAR2(170)
ISSUE_DATE NULL VARCHAR2(10)
ISSUE_TIME NULL VARCHAR2(8)
START_DATE NULL DATE
END_DATE NULL DATE
INVOICE_TYPE_CODE NULL VARCHAR2(150)
INVOICE_TYPE_MEANING NULL VARCHAR2(80)
PURCHASE_ORDER NULL VARCHAR2(50)
LEGAL_ENTITY_DOCUMENT_TYPE NULL VARCHAR2(150)
LEGAL_ENTITY_DOCUMENT_MEANING NULL VARCHAR2(80)
LEGAL_ENTITY_VERIF_DIGIT NULL VARCHAR2(150)
LEGAL_ENTITY_TYPE NULL VARCHAR2(150)
LEGAL_ENTITY_TYPE_MEANING NULL VARCHAR2(80)
REGIMEN_CODE NULL VARCHAR2(150)
REGIMEN_MEANING NULL VARCHAR2(80)
LEGAL_REGISTRATION_NUMBER NOT NULL VARCHAR2(30)
LEGAL_ENTITY_NAME NOT NULL VARCHAR2(240)
LEGAL_ENTITY_POSTAL_CODE NULL VARCHAR2(30)
LE_ADDRESS_LINE_1 NULL VARCHAR2(240)
LE_ADDRESS_LINE_2 NULL VARCHAR2(240)
LE_ADDRESS_LINE_3 NULL VARCHAR2(240)
LEGAL_ENTITY_COUNTRY NULL VARCHAR2(60)
LEGAL_ENTITY_COUNTRY_NAME NOT NULL VARCHAR2(360)
LEGAL_ENTITY_TOWN_OR_CITY NULL VARCHAR2(30)
LE_REGION_1 NULL VARCHAR2(120)
LE_REGION_2 NULL VARCHAR2(120)
LE_REGION_3 NULL VARCHAR2(120)
SHIP_TO_CONTACT_NAME NULL VARCHAR2(92)
PRIMARY_SALESREP_NAME NULL VARCHAR2(4000)
CUSTOMER_PARTY_TYPE NULL VARCHAR2(150)
CUSTOMER_PARTY_TYPE_MEANING NULL VARCHAR2(80)
CUSTOMER_DOCUMENT_TYPE NULL VARCHAR2(150)
CUSTOMER_DOCUMENT_TYPE_MEANING NULL VARCHAR2(80)
CUSTOMER_PARTY_NAME NOT NULL VARCHAR2(360)
CUSTOMER_NAME NOT NULL VARCHAR2(360)
CUSTOMER_TAXPAYER_ID NULL VARCHAR2(20)
CUSTOMER_TAXPAYER_VD NULL VARCHAR2(150)
CUSTOMER_POSTAL_CODE NULL VARCHAR2(60)

LAD Consulting Localizations 35


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CUSTOMER_STATE NULL VARCHAR2(60)
CUSTOMER_COUNTRY_CODE NOT NULL VARCHAR2(60)
CUSTOMER_COUNTRY NULL VARCHAR2(360)
CUSTOMER_CITY NULL VARCHAR2(60)
CUSTOMER_ADDRESS1 NOT NULL VARCHAR2(240)
CUSTOMER_ADDRESS2 NULL VARCHAR2(240)
CUSTOMER_ADDRESS3 NULL VARCHAR2(240)
CUSTOMER_ADDRESS4 NULL VARCHAR2(240)
CUSTOMER_REGIMEN_CODE NULL VARCHAR2(150)
CUSTOMER_REGIMEN_MEANING NULL VARCHAR2(80)
CUST_FIRST_NAME NULL VARCHAR2(150)
CUST_LAST_NAME NULL VARCHAR2(150)
CUST_PERSON_MIDDLE_NAME NULL VARCHAR2(60)
CUST_PERSON_NAME_SUFFIX NULL VARCHAR2(30)
CUST_PERSON_TITLE NULL VARCHAR2(60)
PAYING_CUSTOMER_NAME NULL VARCHAR2(360)
SHIP_DATE_ACTUAL NULL VARCHAR2(10)
SHIP_TIME_ACTUAL NULL VARCHAR2(8)
SHIP_REFERENCE NULL VARCHAR2(50)
SHIP_TO_POSTAL_CODE NULL VARCHAR2(180)
SHIP_TO_STATE NULL VARCHAR2(180)
SHIP_TO_COUNTRY_CODE NULL VARCHAR2(180)
SHIP_TO_COUNTRY NULL VARCHAR2(1080)
SHIP_TO_CITY NULL VARCHAR2(180)
RAA_SHIP_TO_ADDRESS1 NULL VARCHAR2(720)
RAA_SHIP_TO_ADDRESS2 NULL VARCHAR2(720)
RAA_SHIP_TO_ADDRESS3 NULL VARCHAR2(720)
RAA_SHIP_TO_ADDRESS4 NULL VARCHAR2(720)
FT_SHIP_TO_COUNTRY_CODE NULL VARCHAR2(240)
DELIVERY_TAXPAYER_ID NULL VARCHAR2(60)
DELIVERY_TAXPAYER_VD NULL VARCHAR2(450)
DELIVERY_FREIGHT_CODE NULL VARCHAR2(25)
DELIVERY_PARTY_NAME NULL VARCHAR2(360)
DELIVERY_PARTY_DOCUMENT_TYPE NULL VARCHAR2(150)
CARRIER_ADDRESS1 NULL VARCHAR2(240)
CARRIER_ADDRESS2 NULL VARCHAR2(240)
CARRIER_ADDRESS3 NULL VARCHAR2(240)
CARRIER_ADDRESS4 NULL VARCHAR2(240)
CARRIER_POSTAL_CODE NULL VARCHAR2(60)
CARRIER_STATE NULL VARCHAR2(60)
CARRIER_COUNTRY_CODE NULL VARCHAR2(60)
CARRIER_COUNTRY NULL VARCHAR2(360)
CARRIER_CITY NULL VARCHAR2(60)
CARRIER_CONTACT_FIRST_NAME NULL VARCHAR2(150)
CARRIER_CONTACT_LAST_NAME NULL VARCHAR2(150)
CARRIER_PERSON_MIDDLE_NAME NULL VARCHAR2(60)
CARRIER_PERSON_NAME_SUFFIX NULL VARCHAR2(30)
CARRIER_PERSON_TITLE NULL VARCHAR2(60)
SHIP_COUNTRY_FROM NULL VARCHAR2(60)
SPECIAL_TERM NULL VARCHAR2(80)
INCOTERM NULL VARCHAR2(30)
SHIP_TO_LOCATION NULL VARCHAR2(120)
PAY_METHOD_TYPE NULL VARCHAR2(150)
TOTAL_NET_AMOUNT NULL VARCHAR2(45)
TOTAL_EXCLUDED_AMOUNT NULL VARCHAR2(45)
TOTAL_EXEMPT_AMOUNT NULL VARCHAR2(45)
TOTAL_TAXABLE_AMOUNT NULL VARCHAR2(45)
TOTAL_TAX_AMOUNT NULL VARCHAR2(45)

LAD Consulting Localizations 36


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
DISCOUNT_TOTAL_AMOUNT NULL VARCHAR2(45)
AMOUNT_RECEIVABLE NULL VARCHAR2(45)
APPLY_DATE NULL VARCHAR2(45)
AMOUNT_DUE_ORIGINAL NULL VARCHAR2(45)
AMOUNT_APPLIED NULL VARCHAR2(45)
AMOUNT_LINE_ITEMS_ORIGINAL NULL VARCHAR2(45)
TAX_ORIGINAL NULL VARCHAR2(45)
FREIGHT_ORIGINAL NULL VARCHAR2(45)
AMOUNT_ADJUSTED NULL VARCHAR2(45)
RECEIPT_NUMBER NULL VARCHAR2(45)
SALES_ORDER NULL VARCHAR2(45)
REF_DOCUMENT_SEQUENCE_NUMBER NULL VARCHAR2(4000)
REF_CUSTOMER_TRX_ID NULL VARCHAR2(4000)
CUST_TRX_TYPE_ID NOT NULL NUMBER
LEGAL_ENTITY_ID NULL NUMBER
ORG_ID NULL NUMBER
STATUS_TRX NULL VARCHAR2(30)
CUST_TRX_TYPE_NAME NULL VARCHAR2(20)
CUST_TRX_TYPE_DESC NULL VARCHAR2(80)
CUST_TRX_TYPE NULL VARCHAR2(20)
SET_OF_BOOKS_ID NOT NULL NUMBER
BATCH_SOURCE_ID NULL NUMBER
BATCH_SOURCE_NAME NOT NULL VARCHAR2(50)
BATCH_SOURCE_DESC NULL VARCHAR2(240)
INVOICE_CURRENCY_CODE NULL VARCHAR2(15)
FUNCTIONAL_CURRENCY_CODE NOT NULL VARCHAR2(15)
LEGAL_ENTITY_CURRENCY_CODE NULL VARCHAR2(15)
INVOICE_CURRENCY_AMOUNT NULL NUMBER
INVOICE_FUNCL_CURR_AMOUNT NULL NUMBER
GL_DATE NULL DATE
SOLD_TO_CUSTOMER_ID NULL NUMBER
BILL_TO_CUSTOMER_ID NULL NUMBER
SHIP_TO_CUSTOMER_ID NULL NUMBER
BILL_TO_SITE_USE_ID NULL NUMBER
SHIP_TO_SITE_USE_ID NULL NUMBER
TERM_ID NULL NUMBER
TERM_NAME NULL VARCHAR2(15)
TERM_DESCRIPTION NULL VARCHAR2(240)
COMMENTS NULL VARCHAR2(1760)
INTERNAL_NOTES NULL VARCHAR2(240)
PREVIOUS_CUSTOMER_TRX_ID NULL NUMBER
EXCHANGE_RATE_TYPE NULL VARCHAR2(30)
EXCHANGE_DATE NULL DATE
EXCHANGE_RATE NULL NUMBER
FOB_POINT NULL VARCHAR2(30)
WAYBILL_NUMBER NULL VARCHAR2(50)
RECEIPT_METHOD_ID NULL NUMBER
TRX_CREATION_DATE NOT NULL DATE
TRX_CREATED_BY NOT NULL NUMBER
TRX_LAST_UPDATE_DATE NOT NULL DATE
TRX_LAST_UPDATED_BY NOT NULL NUMBER
TRX_LAST_UPDATE_LOGIN NULL NUMBER
RA_CUST_ATTRIBUTE_CATEGORY NULL VARCHAR2(30)
RA_CUST_ATTRIBUTE1 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE2 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE3 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE4 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE5 NULL VARCHAR2(150)

LAD Consulting Localizations 37


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
RA_CUST_ATTRIBUTE6 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE7 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE8 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE10 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE11 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE12 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE13 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE14 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE15 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTR_CATEGORY NULL VARCHAR2(30)
RA_CUST_GLOBAL_ATTRIBUTE1 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE2 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE3 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE4 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE5 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE6 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE7 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE8 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE10 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE11 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE12 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE13 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE14 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE15 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE16 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE17 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE18 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE19 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE20 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE21 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE22 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE23 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE24 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE25 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE26 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE27 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE28 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE29 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE30 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE_CATEGORY NULL VARCHAR2(30)
RA_CUST_TRX_ATTRIBUTE1 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE2 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE3 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE4 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE5 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE6 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE7 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE8 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE10 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE11 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE12 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE13 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE14 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE15 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE_CATEGORY NULL VARCHAR2(30)
RA_BATC_ATTRIBUTE1 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE2 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE3 NULL VARCHAR2(150)

LAD Consulting Localizations 38


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
RA_BATC_ATTRIBUTE4 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE5 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE6 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE7 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE8 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE10 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE11 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE12 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE13 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE14 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE15 NULL VARCHAR2(150)

CREATE OR REPLACE VIEW CLL_F043_EFD_AR_CREDIT_V


(RESOLUTION_NUMBER, AUT_START_DATE, AUT_END_DATE, PREFIX, AUTHORIZED_NUMBER_TO,
AUTHORIZED_NUMBER_FROM, INVOICE_AUTHORIZATION, INVOICE_AUTHORIZATION_DATE,
INVOICE_AUTHORIZATION_KEY, REASON_CODE,
REASON_CODE_DESCRIPTION, CUSTOMER_TRX_ID, TRX_NUMBER, DOCUMENT_SEQUENCE_NUMBER, ISSUE_DATE,
ISSUE_TIME, START_DATE, END_DATE, INVOICE_TYPE_CODE, INVOICE_TYPE_MEANING,
PURCHASE_ORDER, LEGAL_ENTITY_DOCUMENT_TYPE, LEGAL_ENTITY_DOCUMENT_MEANING,
LEGAL_ENTITY_VERIF_DIGIT, LEGAL_ENTITY_TYPE,
LEGAL_ENTITY_TYPE_MEANING, REGIMEN_CODE, REGIMEN_MEANING, LEGAL_REGISTRATION_NUMBER,
LEGAL_ENTITY_NAME,
LEGAL_ENTITY_POSTAL_CODE, LE_ADDRESS_LINE_1, LE_ADDRESS_LINE_2, LE_ADDRESS_LINE_3,
LEGAL_ENTITY_COUNTRY,
LEGAL_ENTITY_COUNTRY_NAME, LEGAL_ENTITY_TOWN_OR_CITY, LE_REGION_1, LE_REGION_2, LE_REGION_3,
SHIP_TO_CONTACT_NAME, PRIMARY_SALESREP_NAME, CUSTOMER_PARTY_TYPE,
CUSTOMER_PARTY_TYPE_MEANING, CUSTOMER_DOCUMENT_TYPE,
CUSTOMER_DOCUMENT_TYPE_MEANING, CUSTOMER_PARTY_NAME, CUSTOMER_NAME, CUSTOMER_TAXPAYER_ID,
CUSTOMER_TAXPAYER_VD,
CUSTOMER_POSTAL_CODE, CUSTOMER_STATE, CUSTOMER_COUNTRY_CODE, CUSTOMER_COUNTRY,
CUSTOMER_CITY,
CUSTOMER_ADDRESS1, CUSTOMER_ADDRESS2, CUSTOMER_ADDRESS3, CUSTOMER_ADDRESS4,
CUSTOMER_REGIMEN_CODE,
CUSTOMER_REGIMEN_MEANING, CUST_FIRST_NAME, CUST_LAST_NAME, CUST_PERSON_MIDDLE_NAME,
CUST_PERSON_NAME_SUFFIX,
CUST_PERSON_TITLE, PAYING_CUSTOMER_NAME, SHIP_DATE_ACTUAL, SHIP_TIME_ACTUAL, SHIP_REFERENCE,
SHIP_TO_POSTAL_CODE, SHIP_TO_STATE, SHIP_TO_COUNTRY_CODE, SHIP_TO_COUNTRY, SHIP_TO_CITY,
RAA_SHIP_TO_ADDRESS1, RAA_SHIP_TO_ADDRESS2, RAA_SHIP_TO_ADDRESS3, RAA_SHIP_TO_ADDRESS4,
FT_SHIP_TO_COUNTRY_CODE,
DELIVERY_TAXPAYER_ID, DELIVERY_TAXPAYER_VD, DELIVERY_FREIGHT_CODE, DELIVERY_PARTY_NAME,
DELIVERY_PARTY_DOCUMENT_TYPE,
CARRIER_ADDRESS1, CARRIER_ADDRESS2, CARRIER_ADDRESS3, CARRIER_ADDRESS4, CARRIER_POSTAL_CODE,
CARRIER_STATE, CARRIER_COUNTRY_CODE, CARRIER_COUNTRY, CARRIER_CITY,
CARRIER_CONTACT_FIRST_NAME,
CARRIER_CONTACT_LAST_NAME, CARRIER_PERSON_MIDDLE_NAME, CARRIER_PERSON_NAME_SUFFIX,
CARRIER_PERSON_TITLE, SHIP_COUNTRY_FROM,
SPECIAL_TERM, INCOTERM, SHIP_TO_LOCATION, PAY_METHOD_TYPE, TOTAL_NET_AMOUNT,
TOTAL_EXCLUDED_AMOUNT, TOTAL_EXEMPT_AMOUNT, TOTAL_TAXABLE_AMOUNT, TOTAL_TAX_AMOUNT,
DISCOUNT_TOTAL_AMOUNT,
AMOUNT_RECEIVABLE, APPLY_DATE, AMOUNT_DUE_ORIGINAL, AMOUNT_APPLIED,
AMOUNT_LINE_ITEMS_ORIGINAL,
TAX_ORIGINAL, FREIGHT_ORIGINAL, AMOUNT_ADJUSTED, RECEIPT_NUMBER, SALES_ORDER,
REF_DOCUMENT_SEQUENCE_NUMBER, REF_CUSTOMER_TRX_ID, CUST_TRX_TYPE_ID, LEGAL_ENTITY_ID,
ORG_ID,
STATUS_TRX, CUST_TRX_TYPE_NAME, CUST_TRX_TYPE_DESC, CUST_TRX_TYPE, SET_OF_BOOKS_ID,
BATCH_SOURCE_ID, BATCH_SOURCE_NAME, BATCH_SOURCE_DESC, INVOICE_CURRENCY_CODE,
FUNCTIONAL_CURRENCY_CODE,
LEGAL_ENTITY_CURRENCY_CODE, INVOICE_CURRENCY_AMOUNT, INVOICE_FUNCL_CURR_AMOUNT, GL_DATE,
SOLD_TO_CUSTOMER_ID,
BILL_TO_CUSTOMER_ID, SHIP_TO_CUSTOMER_ID, BILL_TO_SITE_USE_ID, SHIP_TO_SITE_USE_ID, TERM_ID,
TERM_NAME, TERM_DESCRIPTION, COMMENTS, INTERNAL_NOTES, PREVIOUS_CUSTOMER_TRX_ID,
EXCHANGE_RATE_TYPE, EXCHANGE_DATE, EXCHANGE_RATE, FOB_POINT, WAYBILL_NUMBER,
RECEIPT_METHOD_ID, TRX_CREATION_DATE, TRX_CREATED_BY, TRX_LAST_UPDATE_DATE,
TRX_LAST_UPDATED_BY,
TRX_LAST_UPDATE_LOGIN, RA_CUST_ATTRIBUTE_CATEGORY, RA_CUST_ATTRIBUTE1, RA_CUST_ATTRIBUTE2,
RA_CUST_ATTRIBUTE3,
RA_CUST_ATTRIBUTE4, RA_CUST_ATTRIBUTE5, RA_CUST_ATTRIBUTE6, RA_CUST_ATTRIBUTE7,
RA_CUST_ATTRIBUTE8,
RA_CUST_ATTRIBUTE10, RA_CUST_ATTRIBUTE11, RA_CUST_ATTRIBUTE12, RA_CUST_ATTRIBUTE13,
RA_CUST_ATTRIBUTE14,

LAD Consulting Localizations 39


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
RA_CUST_ATTRIBUTE15, RA_CUST_GLOBAL_ATTR_CATEGORY, RA_CUST_GLOBAL_ATTRIBUTE1,
RA_CUST_GLOBAL_ATTRIBUTE2, RA_CUST_GLOBAL_ATTRIBUTE3,
RA_CUST_GLOBAL_ATTRIBUTE4, RA_CUST_GLOBAL_ATTRIBUTE5, RA_CUST_GLOBAL_ATTRIBUTE6,
RA_CUST_GLOBAL_ATTRIBUTE7, RA_CUST_GLOBAL_ATTRIBUTE8,
RA_CUST_GLOBAL_ATTRIBUTE10, RA_CUST_GLOBAL_ATTRIBUTE11, RA_CUST_GLOBAL_ATTRIBUTE12,
RA_CUST_GLOBAL_ATTRIBUTE13, RA_CUST_GLOBAL_ATTRIBUTE14,
RA_CUST_GLOBAL_ATTRIBUTE15, RA_CUST_GLOBAL_ATTRIBUTE16, RA_CUST_GLOBAL_ATTRIBUTE17,
RA_CUST_GLOBAL_ATTRIBUTE18, RA_CUST_GLOBAL_ATTRIBUTE19,
RA_CUST_GLOBAL_ATTRIBUTE20, RA_CUST_GLOBAL_ATTRIBUTE21, RA_CUST_GLOBAL_ATTRIBUTE22,
RA_CUST_GLOBAL_ATTRIBUTE23, RA_CUST_GLOBAL_ATTRIBUTE24,
RA_CUST_GLOBAL_ATTRIBUTE25, RA_CUST_GLOBAL_ATTRIBUTE26, RA_CUST_GLOBAL_ATTRIBUTE27,
RA_CUST_GLOBAL_ATTRIBUTE28, RA_CUST_GLOBAL_ATTRIBUTE29,
RA_CUST_GLOBAL_ATTRIBUTE30, RA_CUST_TRX_ATTRIBUTE_CATEGORY, RA_CUST_TRX_ATTRIBUTE1,
RA_CUST_TRX_ATTRIBUTE2, RA_CUST_TRX_ATTRIBUTE3,
RA_CUST_TRX_ATTRIBUTE4, RA_CUST_TRX_ATTRIBUTE5, RA_CUST_TRX_ATTRIBUTE6,
RA_CUST_TRX_ATTRIBUTE7, RA_CUST_TRX_ATTRIBUTE8,
RA_CUST_TRX_ATTRIBUTE10, RA_CUST_TRX_ATTRIBUTE11, RA_CUST_TRX_ATTRIBUTE12,
RA_CUST_TRX_ATTRIBUTE13, RA_CUST_TRX_ATTRIBUTE14,
RA_CUST_TRX_ATTRIBUTE15, RA_BATC_ATTRIBUTE_CATEGORY, RA_BATC_ATTRIBUTE1, RA_BATC_ATTRIBUTE2,
RA_BATC_ATTRIBUTE3,
RA_BATC_ATTRIBUTE4, RA_BATC_ATTRIBUTE5, RA_BATC_ATTRIBUTE6, RA_BATC_ATTRIBUTE7,
RA_BATC_ATTRIBUTE8,
RA_BATC_ATTRIBUTE10, RA_BATC_ATTRIBUTE11, RA_BATC_ATTRIBUTE12, RA_BATC_ATTRIBUTE13,
RA_BATC_ATTRIBUTE14,
RA_BATC_ATTRIBUTE15)
AS
SELECT cfr.attribute2 resolution_number
, cfr.attribute3 aut_start_date
, cfr.attribute4 aut_end_date
, cfr.attribute1 prefix
, cfr.attribute5 authorized_number_to
, cfr.attribute6 authorized_number_from
, cfac.attribute1 invoice_authorization
, cfac.attribute2 invoice_authorization_date
, cfac.attribute3 invoice_authorization_key
, cfac.attribute4 reason_code
, DECODE (cfac.attribute_category
, 'Credit Note', (SELECT meaning
FROM fnd_lookup_values_vl
WHERE cfac.attribute_category =
'Credit Note'
AND lookup_type =
'CLL_F043_CREDIT_TYPE_REASON'
AND lookup_code = cfac.attribute4)
, 'Debit Note', (SELECT meaning
FROM fnd_lookup_values_vl
WHERE cfac.attribute_category = 'Debit Note'
AND lookup_type =
'CLL_F043_DEBIT_TYPE_REASON'
AND lookup_code = cfac.attribute4)
) reason_code_description
, rcta.customer_trx_id
, rcta.trx_number
, cfr.attribute1
|| rcta.trx_number document_sequence_number
, TO_CHAR (rcta.trx_date, 'YYYY-MM-DD') issue_date
, TO_CHAR (rcta.trx_date, 'HH24:MI:SS') issue_time
, (SELECT start_date
FROM gl_period_statuses gps
WHERE gps.application_id = 101
AND gps.set_of_books_id = rcta.set_of_books_id
AND rctlgda.gl_date BETWEEN gps.start_date AND gps.end_date
AND adjustment_period_flag = 'N') start_date
, (SELECT end_date
FROM gl_period_statuses gps
WHERE gps.application_id = 101
AND gps.set_of_books_id = rcta.set_of_books_id
AND adjustment_period_flag = 'N'
AND rctlgda.gl_date BETWEEN gps.start_date AND gps.end_date)
end_date
, cfct.attribute1 invoice_type_code
, (SELECT meaning
FROM fnd_lookup_values_vl

LAD Consulting Localizations 40


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
WHERE lookup_type LIKE 'CLL_F043_INVOICE_TYPE_CODES'
AND lookup_code = cfct.attribute1
AND ROWNUM = 1) invoice_type_meaning
, rcta.purchase_order
, cfel.xle_reg_attribute1 legal_entity_document_type
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_NATURE'
AND lookup_code = cfel.xle_reg_attribute1
AND ROWNUM = 1) legal_entity_document_meaning
, cfel.xle_reg_attribute2 legal_entity_verif_digit
, cfel.xle_reg_attribute3 legal_entity_type
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_NATURE'
AND lookup_code = cfel.xle_reg_attribute3
AND ROWNUM = 1) legal_entity_type_meaning
, cfel.xle_reg_attribute4 regimen_code
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_REGIMEN'
AND lookup_code = cfel.xle_reg_attribute4
AND ROWNUM = 1) regimen_meaning
, cfel.registration_number legal_registration_number
, cfel.legal_entity_name
, cfel.postal_code legal_entity_postal_code
, cfel.address_line_1 le_address_line_1
, cfel.address_line_2 le_address_line_2
, cfel.address_line_3 le_address_line_3
, cfel.country legal_entity_country
, cfel.geography_name legal_entity_country_name
, cfel.town_or_city legal_entity_town_or_city
, cfel.region_1 le_region_1
, cfel.region_2 le_region_2
, cfel.region_3 le_region_3
, DECODE (SUBSTRB (raco_ship_party.person_last_name
, 1
, 50
)
, NULL, SUBSTRB (raco_ship_party.person_first_name
, 1
, 40
)
, SUBSTRB (raco_ship_party.person_last_name
, 1
, 50
)
|| ', '
|| SUBSTRB (raco_ship_party.person_first_name
, 1
, 40
)
) ship_to_contact_name
, arpt_sql_func_util.get_salesrep_name_number
(rcta.primary_salesrep_id
, 'NAME'
, rcta.org_id
) primary_salesrep_name
, bill_to.party_attribute3 customer_party_type
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_NATURE'
AND lookup_code = bill_to.party_attribute3
AND ROWNUM = 1) customer_party_type_meaning
, bill_to.party_attribute1 customer_document_type
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_DOCUMENT_TYPE'
AND lookup_code = bill_to.party_attribute1
AND ROWNUM = 1) customer_document_type_meaning
, bill_to.party_name customer_party_name
, bill_to.party_name customer_name
, bill_to.taxpayer_id customer_taxpayer_id

LAD Consulting Localizations 41


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
,
bill_to.customer_taxpayer_vd
,
bill_to.postal_code customer_postal_code
,
bill_to.state customer_state
,
bill_to.country customer_country_code
,
bill_to.country_name customer_country
,
bill_to.city customer_city
,
bill_to.address1 customer_address1
,
bill_to.address2 customer_address2
,
bill_to.address3 customer_address3
,
bill_to.address4 customer_address4
,
bill_to.party_attribute4 customer_regimen_code
,
(SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_REGIMEN'
AND lookup_code = bill_to.party_attribute4
AND ROWNUM = 1) customer_regimen_meaning
, bill_to.person_first_name cust_first_name
, bill_to.person_last_name cust_last_name
, bill_to.person_middle_name cust_person_middle_name
, bill_to.person_name_suffix cust_person_name_suffix
, bill_to.person_title cust_person_title
, rac_paying_party.party_name paying_customer_name
, TO_CHAR (rcta.ship_date_actual, 'YYYY-MM-DD') ship_date_actual
, TO_CHAR (rcta.ship_date_actual, 'HH24:MI:SS') ship_time_actual
, rcta.waybill_number ship_reference
-- , ship_to.taxpayer_id customer_taxpayer_id
-- , ship_to.customer_taxpayer_vd
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'POSTAL_CODE'),1,60) ship_to_postal_code
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'STATE'),1,60) ship_to_state
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'COUNTRY'),1,60) ship_to_country_code
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'COUNTRY_NAME'),1,360) ship_to_country
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'CITY'),1,60) ship_to_city
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'ADDRESS1'),1,240) raa_ship_to_address1
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'ADDRESS2'),1,240) raa_ship_to_address2
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'ADDRESS3'),1,240) raa_ship_to_address3
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'ADDRESS4'),1,240) raa_ship_to_address4
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'FT_TO_COUNTRY_CODE'),1,80) ft_ship_to_country_code
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'TAXPAYER_ID'),1,20) delivery_taxpayer_id
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'CUSTOMER_TAXPAYER_VD'),1,150) delivery_taxpayer_vd
, ofv.freight_code delivery_freight_code
, whs_to.party_name delivery_party_name
, whs_to.party_attribute1 delivery_party_document_type
, whs_to.address1 carrier_address1
, whs_to.address2 carrier_address2
, whs_to.address3 carrier_address3
, whs_to.address4 carrier_address4
, whs_to.postal_code carrier_postal_code
, whs_to.state carrier_state
, whs_to.country carrier_country_code

LAD Consulting Localizations 42


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
, whs_to.country_name carrier_country
, whs_to.city carrier_city
, whs_to.person_first_name carrier_contact_first_name
, whs_to.person_last_name carrier_contact_last_name
, whs_to.person_middle_name carrier_person_middle_name
, whs_to.person_name_suffix carrier_person_name_suffix
, whs_to.person_title carrier_person_title
, cfel.country ship_country_from
, ofv.description special_term
, rcta.fob_point incoterm
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'CUSTOMER_LOCATION'),1,40) ship_to_location
, cfarm.attribute1 pay_method_type
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_NET_AMOUNT'),1,15) total_net_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_EXCLUDED_AMOUNT'),1,15) total_excluded_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_EXEMPT_AMOUNT'),1,15) total_exempt_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_TAXABLE_AMOUNT'),1,15) total_taxable_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_TAX_AMOUNT'),1,15) total_tax_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'DISCOUNT_TOTAL_LINE_AMOUNT'),1,15) discount_total_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_AMOUNT_RECEIVABLE'),1,15) amount_receivable
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'APPLY_DATE'),1,15) apply_date
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'AMOUNT_DUE_ORIGINAL'),1,15) amount_due_original
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'AMOUNT_APPLIED'),1,15) amount_applied
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'AMOUNT_LINE_ITEMS_ORIGINAL'),1,15) amount_line_items_original
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TAX_ORIGINAL'),1,15) tax_original
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'FREIGHT_ORIGINAL'),1,15) freight_original
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'AMOUNT_ADJUSTED'),1,15) amount_adjusted
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'RECEIPT_NUMBER'),1,15) receipt_number
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'SALES_ORDER'),1,15) sales_order
, cll_f043_efd_utility_pkg.get_customer_trx_reference
(rcta.customer_trx_id
, rcta.trx_number
, rcta.previous_customer_trx_id
, 'REF_DOCUMENT_SEQUENCE_NUMBER'
) ref_document_sequence_number
, cll_f043_efd_utility_pkg.get_customer_trx_reference
(rcta.customer_trx_id
, rcta.trx_number
, rcta.previous_customer_trx_id
, 'REF_CUSTOMER_TRX_ID'

LAD Consulting Localizations 43


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
) ref_customer_trx_id
, rcta.cust_trx_type_id
, rcta.legal_entity_id
, rcta.org_id
, rcta.status_trx
, rctta.NAME cust_trx_type_name
, rctta.description cust_trx_type_desc
, rctta.TYPE cust_trx_type
, rcta.set_of_books_id
, rcta.batch_source_id
, rbsa.NAME batch_source_name
, rbsa.description batch_source_desc
, rcta.invoice_currency_code
, gsob.currency_code functional_currency_code
, cfel.legal_entity_currency_code
, rctlgda.amount invoice_currency_amount
, rctlgda.acctd_amount invoice_funcl_curr_amount
, rctlgda.gl_date
, rcta.sold_to_customer_id
, rcta.bill_to_customer_id
, rcta.ship_to_customer_id
, rcta.bill_to_site_use_id
, rcta.ship_to_site_use_id
, rtv.term_id
, rtv.NAME term_name
, rtv.description term_description
, rcta.comments
, rcta.internal_notes
, rcta.previous_customer_trx_id
, rcta.exchange_rate_type
, rcta.exchange_date
, rcta.exchange_rate
, rcta.fob_point
, rcta.waybill_number
, rcta.receipt_method_id
, rcta.creation_date trx_creation_date
, rcta.created_by trx_created_by
, rcta.last_update_date trx_last_update_date
, rcta.last_updated_by trx_last_updated_by
, rcta.last_update_login trx_last_update_login
, rcta.attribute_category ra_cust_attribute_category
, rcta.attribute1 ra_cust_attribute1
, rcta.attribute2 ra_cust_attribute2
, rcta.attribute3 ra_cust_attribute3
, rcta.attribute4 ra_cust_attribute4
, rcta.attribute5 ra_cust_attribute5
, rcta.attribute6 ra_cust_attribute6
, rcta.attribute7 ra_cust_attribute7
, rcta.attribute8 ra_cust_attribute8
, rcta.attribute10 ra_cust_attribute10
, rcta.attribute11 ra_cust_attribute11
, rcta.attribute12 ra_cust_attribute12
, rcta.attribute13 ra_cust_attribute13
, rcta.attribute14 ra_cust_attribute14
, rcta.attribute15 ra_cust_attribute15
, rcta.global_attribute_category ra_cust_global_attr_category
, rcta.global_attribute1 ra_cust_global_attribute1
, rcta.global_attribute2 ra_cust_global_attribute2
, rcta.global_attribute3 ra_cust_global_attribute3
, rcta.global_attribute4 ra_cust_global_attribute4
, rcta.global_attribute5 ra_cust_global_attribute5
, rcta.global_attribute6 ra_cust_global_attribute6
, rcta.global_attribute7 ra_cust_global_attribute7
, rcta.global_attribute8 ra_cust_global_attribute8
, rcta.global_attribute10 ra_cust_global_attribute10
, rcta.global_attribute11 ra_cust_global_attribute11
, rcta.global_attribute12 ra_cust_global_attribute12
, rcta.global_attribute13 ra_cust_global_attribute13
, rcta.global_attribute14 ra_cust_global_attribute14
, rcta.global_attribute15 ra_cust_global_attribute15
, rcta.global_attribute16 ra_cust_global_attribute16
, rcta.global_attribute17 ra_cust_global_attribute17
, rcta.global_attribute18 ra_cust_global_attribute18

LAD Consulting Localizations 44


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
, rcta.global_attribute19 ra_cust_global_attribute19
, rcta.global_attribute20 ra_cust_global_attribute20
, rcta.global_attribute21 ra_cust_global_attribute21
, rcta.global_attribute22 ra_cust_global_attribute22
, rcta.global_attribute23 ra_cust_global_attribute23
, rcta.global_attribute24 ra_cust_global_attribute24
, rcta.global_attribute25 ra_cust_global_attribute25
, rcta.global_attribute26 ra_cust_global_attribute26
, rcta.global_attribute27 ra_cust_global_attribute27
, rcta.global_attribute28 ra_cust_global_attribute28
, rcta.global_attribute29 ra_cust_global_attribute29
, rcta.global_attribute30 ra_cust_global_attribute30
, rctta.attribute_category ra_cust_trx_attribute_category
, rctta.attribute1 ra_cust_trx_attribute1
, rctta.attribute2 ra_cust_trx_attribute2
, rctta.attribute3 ra_cust_trx_attribute3
, rctta.attribute4 ra_cust_trx_attribute4
, rctta.attribute5 ra_cust_trx_attribute5
, rctta.attribute6 ra_cust_trx_attribute6
, rctta.attribute7 ra_cust_trx_attribute7
, rctta.attribute8 ra_cust_trx_attribute8
, rctta.attribute10 ra_cust_trx_attribute10
, rctta.attribute11 ra_cust_trx_attribute11
, rctta.attribute12 ra_cust_trx_attribute12
, rctta.attribute13 ra_cust_trx_attribute13
, rctta.attribute14 ra_cust_trx_attribute14
, rctta.attribute15 ra_cust_trx_attribute15
, rbsa.attribute_category ra_batc_attribute_category
, rbsa.attribute1 ra_batc_attribute1
, rbsa.attribute2 ra_batc_attribute2
, rbsa.attribute3 ra_batc_attribute3
, rbsa.attribute4 ra_batc_attribute4
, rbsa.attribute5 ra_batc_attribute5
, rbsa.attribute6 ra_batc_attribute6
, rbsa.attribute7 ra_batc_attribute7
, rbsa.attribute8 ra_batc_attribute8
, rbsa.attribute10 ra_batc_attribute10
, rbsa.attribute11 ra_batc_attribute11
, rbsa.attribute12 ra_batc_attribute12
, rbsa.attribute13 ra_batc_attribute13
, rbsa.attribute14 ra_batc_attribute14
, rbsa.attribute15 ra_batc_attribute15
FROM ra_cust_trx_line_gl_dist_all rctlgda
, ra_customer_trx_all rcta
, ra_cust_trx_types_all rctta
, ra_batch_sources_all rbsa
, gl_ledgers gsob
, cll_f043_ra_batch_sources_ext cfr
, cll_f043_cust_trx_types_ext cfct
, cll_f043_efd_legal_entities_v cfel
, hz_cust_account_roles raco_ship
, hz_relationships raco_ship_rel
, hz_parties raco_ship_party
, hz_cust_accounts rac_paying
, hz_parties rac_paying_party
, cll_f043_efd_party_locations_v bill_to
, org_freight_vl ofv
, cll_f043_efd_party_locations_v whs_to
, cll_f043_ar_rec_methods_ext cfarm
, cll_f043_ar_customer_trx_ext cfac
, ra_terms_vl rtv
, cll_f043_ra_terms_ext cfrtv
WHERE rctlgda.account_class = 'REC'
AND rctlgda.latest_rec_flag = 'Y'
AND rcta.complete_flag = 'Y'
AND rcta.customer_trx_id = rctlgda.customer_trx_id
AND rcta.customer_trx_id = cfac.customer_trx_id(+)
AND rcta.cust_trx_type_id = rctta.cust_trx_type_id
AND rcta.batch_source_id = rbsa.batch_source_id
AND rcta.org_id = rbsa.org_id
AND rcta.org_id = rctta.org_id
AND rcta.set_of_books_id = gsob.ledger_id
AND rbsa.batch_source_id = cfr.batch_source_id

LAD Consulting Localizations 45


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
AND rbsa.org_id = cfr.org_id
AND rctta.TYPE = 'CM' --Solo Notas de creditos
--La extension de source se marca que factura deben ser electronica
AND cfr.attribute7 = 'Y'
AND rctta.cust_trx_type_id = cfct.cust_trx_type_id(+)
AND rctta.org_id = cfct.org_id(+)
AND cfel.legal_entity_id = rcta.legal_entity_id
AND rcta.ship_to_contact_id = raco_ship.cust_account_role_id(+)
AND raco_ship.party_id = raco_ship_rel.party_id(+)
AND raco_ship_rel.subject_table_name(+) = 'HZ_PARTIES'
AND raco_ship_rel.object_table_name(+) = 'HZ_PARTIES'
AND raco_ship_rel.directional_flag(+) = 'F'
AND raco_ship.role_type(+) = 'CONTACT'
AND raco_ship_rel.subject_id = raco_ship_party.party_id(+)
AND rcta.bill_to_customer_id = bill_to.customer_id
AND rcta.bill_to_site_use_id = bill_to.site_use_id
AND rcta.paying_customer_id = rac_paying.cust_account_id(+)
AND rac_paying.party_id = rac_paying_party.party_id(+)
AND ofv.party_id = whs_to.party_id(+)
AND rcta.ship_via = ofv.freight_code(+)
AND rcta.org_id = ofv.organization_id(+)
AND rcta.term_id = rtv.term_id(+)
AND rcta.term_id = cfrtv.term_id(+)
AND rcta.receipt_method_id = cfarm.receipt_method_id(+)
AND cll_f043_efd_doctype_reqs_pkg.set_null_total_attinfo
(rcta.customer_trx_id) =
rcta.customer_trx_id

LAD Consulting Localizations 46


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_EFD_AR_DEBIT_V
Name: cll_f043_efd_ar_debit_v.xdf

Columns description

Name Type
RESOLUTION_NUMBER NULL VARCHAR2(150)
AUT_START_DATE NULL VARCHAR2(150)
AUT_END_DATE NULL VARCHAR2(150)
PREFIX NULL VARCHAR2(150)
AUTHORIZED_NUMBER_TO NULL VARCHAR2(150)
AUTHORIZED_NUMBER_FROM NULL VARCHAR2(150)
INVOICE_AUTHORIZATION NULL VARCHAR2(150)
INVOICE_AUTHORIZATION_DATE NULL VARCHAR2(150)
INVOICE_AUTHORIZATION_KEY NULL VARCHAR2(150)
REASON_CODE NULL VARCHAR2(150)
REASON_CODE_DESCRIPTION NULL VARCHAR2(80)
CUSTOMER_TRX_ID NOT NULL NUMBER
TRX_NUMBER NOT NULL VARCHAR2(20)
DOCUMENT_SEQUENCE_NUMBER NULL VARCHAR2(170)
ISSUE_DATE NULL VARCHAR2(10)
ISSUE_TIME NULL VARCHAR2(8)
START_DATE NULL DATE
END_DATE NULL DATE
INVOICE_TYPE_CODE NULL VARCHAR2(150)
INVOICE_TYPE_MEANING NULL VARCHAR2(80)
PURCHASE_ORDER NULL VARCHAR2(50)
LEGAL_ENTITY_DOCUMENT_TYPE NULL VARCHAR2(150)
LEGAL_ENTITY_DOCUMENT_MEANING NULL VARCHAR2(80)
LEGAL_ENTITY_VERIF_DIGIT NULL VARCHAR2(150)
LEGAL_ENTITY_TYPE NULL VARCHAR2(150)
LEGAL_ENTITY_TYPE_MEANING NULL VARCHAR2(80)
REGIMEN_CODE NULL VARCHAR2(150)
REGIMEN_MEANING NULL VARCHAR2(80)
LEGAL_REGISTRATION_NUMBER NOT NULL VARCHAR2(30)
LEGAL_ENTITY_NAME NOT NULL VARCHAR2(240)
LEGAL_ENTITY_POSTAL_CODE NULL VARCHAR2(30)
LE_ADDRESS_LINE_1 NULL VARCHAR2(240)
LE_ADDRESS_LINE_2 NULL VARCHAR2(240)
LE_ADDRESS_LINE_3 NULL VARCHAR2(240)
LEGAL_ENTITY_COUNTRY NULL VARCHAR2(60)
LEGAL_ENTITY_COUNTRY_NAME NOT NULL VARCHAR2(360)
LEGAL_ENTITY_TOWN_OR_CITY NULL VARCHAR2(30)
LE_REGION_1 NULL VARCHAR2(120)
LE_REGION_2 NULL VARCHAR2(120)
LE_REGION_3 NULL VARCHAR2(120)
SHIP_TO_CONTACT_NAME NULL VARCHAR2(92)
PRIMARY_SALESREP_NAME NULL VARCHAR2(4000)
CUSTOMER_PARTY_TYPE NULL VARCHAR2(150)
CUSTOMER_PARTY_TYPE_MEANING NULL VARCHAR2(80)
CUSTOMER_DOCUMENT_TYPE NULL VARCHAR2(150)
CUSTOMER_DOCUMENT_TYPE_MEANING NULL VARCHAR2(80)
CUSTOMER_PARTY_NAME NOT NULL VARCHAR2(360)
CUSTOMER_NAME NOT NULL VARCHAR2(360)
CUSTOMER_TAXPAYER_ID NULL VARCHAR2(20)
CUSTOMER_TAXPAYER_VD NULL VARCHAR2(150)
CUSTOMER_POSTAL_CODE NULL VARCHAR2(60)

LAD Consulting Localizations 47


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CUSTOMER_STATE NULL VARCHAR2(60)
CUSTOMER_COUNTRY_CODE NOT NULL VARCHAR2(60)
CUSTOMER_COUNTRY NULL VARCHAR2(360)
CUSTOMER_CITY NULL VARCHAR2(60)
CUSTOMER_ADDRESS1 NOT NULL VARCHAR2(240)
CUSTOMER_ADDRESS2 NULL VARCHAR2(240)
CUSTOMER_ADDRESS3 NULL VARCHAR2(240)
CUSTOMER_ADDRESS4 NULL VARCHAR2(240)
CUSTOMER_REGIMEN_CODE NULL VARCHAR2(150)
CUSTOMER_REGIMEN_MEANING NULL VARCHAR2(80)
CUST_FIRST_NAME NULL VARCHAR2(150)
CUST_LAST_NAME NULL VARCHAR2(150)
CUST_PERSON_MIDDLE_NAME NULL VARCHAR2(60)
CUST_PERSON_NAME_SUFFIX NULL VARCHAR2(30)
CUST_PERSON_TITLE NULL VARCHAR2(60)
PAYING_CUSTOMER_NAME NULL VARCHAR2(360)
SHIP_DATE_ACTUAL NULL VARCHAR2(10)
SHIP_TIME_ACTUAL NULL VARCHAR2(8)
SHIP_REFERENCE NULL VARCHAR2(50)
SHIP_TO_POSTAL_CODE NULL VARCHAR2(180)
SHIP_TO_STATE NULL VARCHAR2(180)
SHIP_TO_COUNTRY_CODE NULL VARCHAR2(180)
SHIP_TO_COUNTRY NULL VARCHAR2(1080)
SHIP_TO_CITY NULL VARCHAR2(180)
RAA_SHIP_TO_ADDRESS1 NULL VARCHAR2(720)
RAA_SHIP_TO_ADDRESS2 NULL VARCHAR2(720)
RAA_SHIP_TO_ADDRESS3 NULL VARCHAR2(720)
RAA_SHIP_TO_ADDRESS4 NULL VARCHAR2(720)
FT_SHIP_TO_COUNTRY_CODE NULL VARCHAR2(240)
DELIVERY_TAXPAYER_ID NULL VARCHAR2(60)
DELIVERY_TAXPAYER_VD NULL VARCHAR2(450)
DELIVERY_FREIGHT_CODE NULL VARCHAR2(25)
DELIVERY_PARTY_NAME NULL VARCHAR2(360)
DELIVERY_PARTY_DOCUMENT_TYPE NULL VARCHAR2(150)
CARRIER_ADDRESS1 NULL VARCHAR2(240)
CARRIER_ADDRESS2 NULL VARCHAR2(240)
CARRIER_ADDRESS3 NULL VARCHAR2(240)
CARRIER_ADDRESS4 NULL VARCHAR2(240)
CARRIER_POSTAL_CODE NULL VARCHAR2(60)
CARRIER_STATE NULL VARCHAR2(60)
CARRIER_COUNTRY_CODE NULL VARCHAR2(60)
CARRIER_COUNTRY NULL VARCHAR2(360)
CARRIER_CITY NULL VARCHAR2(60)
CARRIER_CONTACT_FIRST_NAME NULL VARCHAR2(150)
CARRIER_CONTACT_LAST_NAME NULL VARCHAR2(150)
CARRIER_PERSON_MIDDLE_NAME NULL VARCHAR2(60)
CARRIER_PERSON_NAME_SUFFIX NULL VARCHAR2(30)
CARRIER_PERSON_TITLE NULL VARCHAR2(60)
SHIP_COUNTRY_FROM NULL VARCHAR2(60)
SPECIAL_TERM NULL VARCHAR2(80)
INCOTERM NULL VARCHAR2(30)
SHIP_TO_LOCATION NULL VARCHAR2(120)
PAY_METHOD_TYPE NULL VARCHAR2(150)
TOTAL_NET_AMOUNT NULL VARCHAR2(45)
TOTAL_EXCLUDED_AMOUNT NULL VARCHAR2(45)
TOTAL_EXEMPT_AMOUNT NULL VARCHAR2(45)
TOTAL_TAXABLE_AMOUNT NULL VARCHAR2(45)
TOTAL_TAX_AMOUNT NULL VARCHAR2(45)

LAD Consulting Localizations 48


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
DISCOUNT_TOTAL_AMOUNT NULL VARCHAR2(45)
AMOUNT_RECEIVABLE NULL VARCHAR2(45)
APPLY_DATE NULL VARCHAR2(45)
AMOUNT_DUE_ORIGINAL NULL VARCHAR2(45)
AMOUNT_APPLIED NULL VARCHAR2(45)
AMOUNT_LINE_ITEMS_ORIGINAL NULL VARCHAR2(45)
TAX_ORIGINAL NULL VARCHAR2(45)
FREIGHT_ORIGINAL NULL VARCHAR2(45)
AMOUNT_ADJUSTED NULL VARCHAR2(45)
RECEIPT_NUMBER NULL VARCHAR2(45)
SALES_ORDER NULL VARCHAR2(45)
REF_DOCUMENT_SEQUENCE_NUMBER NULL VARCHAR2(4000)
REF_CUSTOMER_TRX_ID NULL VARCHAR2(4000)
CUST_TRX_TYPE_ID NOT NULL NUMBER
LEGAL_ENTITY_ID NULL NUMBER
ORG_ID NULL NUMBER
STATUS_TRX NULL VARCHAR2(30)
CUST_TRX_TYPE_NAME NULL VARCHAR2(20)
CUST_TRX_TYPE_DESC NULL VARCHAR2(80)
CUST_TRX_TYPE NULL VARCHAR2(20)
SET_OF_BOOKS_ID NOT NULL NUMBER
BATCH_SOURCE_ID NULL NUMBER
BATCH_SOURCE_NAME NOT NULL VARCHAR2(50)
BATCH_SOURCE_DESC NULL VARCHAR2(240)
INVOICE_CURRENCY_CODE NULL VARCHAR2(15)
FUNCTIONAL_CURRENCY_CODE NOT NULL VARCHAR2(15)
LEGAL_ENTITY_CURRENCY_CODE NULL VARCHAR2(15)
INVOICE_CURRENCY_AMOUNT NULL NUMBER
INVOICE_FUNCL_CURR_AMOUNT NULL NUMBER
GL_DATE NULL DATE
SOLD_TO_CUSTOMER_ID NULL NUMBER
BILL_TO_CUSTOMER_ID NULL NUMBER
SHIP_TO_CUSTOMER_ID NULL NUMBER
BILL_TO_SITE_USE_ID NULL NUMBER
SHIP_TO_SITE_USE_ID NULL NUMBER
TERM_ID NULL NUMBER
TERM_NAME NULL VARCHAR2(15)
TERM_DESCRIPTION NULL VARCHAR2(240)
COMMENTS NULL VARCHAR2(1760)
INTERNAL_NOTES NULL VARCHAR2(240)
PREVIOUS_CUSTOMER_TRX_ID NULL NUMBER
EXCHANGE_RATE_TYPE NULL VARCHAR2(30)
EXCHANGE_DATE NULL DATE
EXCHANGE_RATE NULL NUMBER
FOB_POINT NULL VARCHAR2(30)
WAYBILL_NUMBER NULL VARCHAR2(50)
RECEIPT_METHOD_ID NULL NUMBER
TRX_CREATION_DATE NOT NULL DATE
TRX_CREATED_BY NOT NULL NUMBER
TRX_LAST_UPDATE_DATE NOT NULL DATE
TRX_LAST_UPDATED_BY NOT NULL NUMBER
TRX_LAST_UPDATE_LOGIN NULL NUMBER
RA_CUST_ATTRIBUTE_CATEGORY NULL VARCHAR2(30)
RA_CUST_ATTRIBUTE1 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE2 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE3 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE4 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE5 NULL VARCHAR2(150)

LAD Consulting Localizations 49


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
RA_CUST_ATTRIBUTE6 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE7 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE8 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE10 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE11 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE12 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE13 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE14 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE15 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTR_CATEGORY NULL VARCHAR2(30)
RA_CUST_GLOBAL_ATTRIBUTE1 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE2 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE3 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE4 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE5 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE6 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE7 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE8 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE10 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE11 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE12 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE13 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE14 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE15 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE16 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE17 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE18 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE19 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE20 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE21 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE22 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE23 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE24 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE25 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE26 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE27 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE28 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE29 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE30 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE_CATEGORY NULL VARCHAR2(30)
RA_CUST_TRX_ATTRIBUTE1 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE2 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE3 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE4 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE5 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE6 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE7 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE8 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE10 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE11 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE12 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE13 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE14 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE15 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE_CATEGORY NULL VARCHAR2(30)
RA_BATC_ATTRIBUTE1 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE2 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE3 NULL VARCHAR2(150)

LAD Consulting Localizations 50


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
RA_BATC_ATTRIBUTE4 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE5 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE6 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE7 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE8 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE10 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE11 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE12 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE13 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE14 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE15 NULL VARCHAR2(150)

CREATE OR REPLACE VIEW CLL_F043_EFD_AR_DEBIT_V


(RESOLUTION_NUMBER, AUT_START_DATE, AUT_END_DATE, PREFIX, AUTHORIZED_NUMBER_TO,
AUTHORIZED_NUMBER_FROM, INVOICE_AUTHORIZATION, INVOICE_AUTHORIZATION_DATE,
INVOICE_AUTHORIZATION_KEY, REASON_CODE,
REASON_CODE_DESCRIPTION, CUSTOMER_TRX_ID, TRX_NUMBER, DOCUMENT_SEQUENCE_NUMBER, ISSUE_DATE,
ISSUE_TIME, START_DATE, END_DATE, INVOICE_TYPE_CODE, INVOICE_TYPE_MEANING,
PURCHASE_ORDER, LEGAL_ENTITY_DOCUMENT_TYPE, LEGAL_ENTITY_DOCUMENT_MEANING,
LEGAL_ENTITY_VERIF_DIGIT, LEGAL_ENTITY_TYPE,
LEGAL_ENTITY_TYPE_MEANING, REGIMEN_CODE, REGIMEN_MEANING, LEGAL_REGISTRATION_NUMBER,
LEGAL_ENTITY_NAME,
LEGAL_ENTITY_POSTAL_CODE, LE_ADDRESS_LINE_1, LE_ADDRESS_LINE_2, LE_ADDRESS_LINE_3,
LEGAL_ENTITY_COUNTRY,
LEGAL_ENTITY_COUNTRY_NAME, LEGAL_ENTITY_TOWN_OR_CITY, LE_REGION_1, LE_REGION_2, LE_REGION_3,
SHIP_TO_CONTACT_NAME, PRIMARY_SALESREP_NAME, CUSTOMER_PARTY_TYPE,
CUSTOMER_PARTY_TYPE_MEANING, CUSTOMER_DOCUMENT_TYPE,
CUSTOMER_DOCUMENT_TYPE_MEANING, CUSTOMER_PARTY_NAME, CUSTOMER_NAME, CUSTOMER_TAXPAYER_ID,
CUSTOMER_TAXPAYER_VD,
CUSTOMER_POSTAL_CODE, CUSTOMER_STATE, CUSTOMER_COUNTRY_CODE, CUSTOMER_COUNTRY,
CUSTOMER_CITY,
CUSTOMER_ADDRESS1, CUSTOMER_ADDRESS2, CUSTOMER_ADDRESS3, CUSTOMER_ADDRESS4,
CUSTOMER_REGIMEN_CODE,
CUSTOMER_REGIMEN_MEANING, CUST_FIRST_NAME, CUST_LAST_NAME, CUST_PERSON_MIDDLE_NAME,
CUST_PERSON_NAME_SUFFIX,
CUST_PERSON_TITLE, PAYING_CUSTOMER_NAME, SHIP_DATE_ACTUAL, SHIP_TIME_ACTUAL, SHIP_REFERENCE,
SHIP_TO_POSTAL_CODE, SHIP_TO_STATE, SHIP_TO_COUNTRY_CODE, SHIP_TO_COUNTRY, SHIP_TO_CITY,
RAA_SHIP_TO_ADDRESS1, RAA_SHIP_TO_ADDRESS2, RAA_SHIP_TO_ADDRESS3, RAA_SHIP_TO_ADDRESS4,
FT_SHIP_TO_COUNTRY_CODE,
DELIVERY_TAXPAYER_ID, DELIVERY_TAXPAYER_VD, DELIVERY_FREIGHT_CODE, DELIVERY_PARTY_NAME,
DELIVERY_PARTY_DOCUMENT_TYPE,
CARRIER_ADDRESS1, CARRIER_ADDRESS2, CARRIER_ADDRESS3, CARRIER_ADDRESS4, CARRIER_POSTAL_CODE,
CARRIER_STATE, CARRIER_COUNTRY_CODE, CARRIER_COUNTRY, CARRIER_CITY,
CARRIER_CONTACT_FIRST_NAME,
CARRIER_CONTACT_LAST_NAME, CARRIER_PERSON_MIDDLE_NAME, CARRIER_PERSON_NAME_SUFFIX,
CARRIER_PERSON_TITLE, SHIP_COUNTRY_FROM,
SPECIAL_TERM, INCOTERM, SHIP_TO_LOCATION, PAY_METHOD_TYPE, TOTAL_NET_AMOUNT,
TOTAL_EXCLUDED_AMOUNT, TOTAL_EXEMPT_AMOUNT, TOTAL_TAXABLE_AMOUNT, TOTAL_TAX_AMOUNT,
DISCOUNT_TOTAL_AMOUNT,
AMOUNT_RECEIVABLE, APPLY_DATE, AMOUNT_DUE_ORIGINAL, AMOUNT_APPLIED,
AMOUNT_LINE_ITEMS_ORIGINAL,
TAX_ORIGINAL, FREIGHT_ORIGINAL, AMOUNT_ADJUSTED, RECEIPT_NUMBER, SALES_ORDER,
REF_DOCUMENT_SEQUENCE_NUMBER, REF_CUSTOMER_TRX_ID, CUST_TRX_TYPE_ID, LEGAL_ENTITY_ID,
ORG_ID,
STATUS_TRX, CUST_TRX_TYPE_NAME, CUST_TRX_TYPE_DESC, CUST_TRX_TYPE, SET_OF_BOOKS_ID,
BATCH_SOURCE_ID, BATCH_SOURCE_NAME, BATCH_SOURCE_DESC, INVOICE_CURRENCY_CODE,
FUNCTIONAL_CURRENCY_CODE,
LEGAL_ENTITY_CURRENCY_CODE, INVOICE_CURRENCY_AMOUNT, INVOICE_FUNCL_CURR_AMOUNT, GL_DATE,
SOLD_TO_CUSTOMER_ID,
BILL_TO_CUSTOMER_ID, SHIP_TO_CUSTOMER_ID, BILL_TO_SITE_USE_ID, SHIP_TO_SITE_USE_ID, TERM_ID,
TERM_NAME, TERM_DESCRIPTION, COMMENTS, INTERNAL_NOTES, PREVIOUS_CUSTOMER_TRX_ID,
EXCHANGE_RATE_TYPE, EXCHANGE_DATE, EXCHANGE_RATE, FOB_POINT, WAYBILL_NUMBER,
RECEIPT_METHOD_ID, TRX_CREATION_DATE, TRX_CREATED_BY, TRX_LAST_UPDATE_DATE,
TRX_LAST_UPDATED_BY,
TRX_LAST_UPDATE_LOGIN, RA_CUST_ATTRIBUTE_CATEGORY, RA_CUST_ATTRIBUTE1, RA_CUST_ATTRIBUTE2,
RA_CUST_ATTRIBUTE3,
RA_CUST_ATTRIBUTE4, RA_CUST_ATTRIBUTE5, RA_CUST_ATTRIBUTE6, RA_CUST_ATTRIBUTE7,
RA_CUST_ATTRIBUTE8,
RA_CUST_ATTRIBUTE10, RA_CUST_ATTRIBUTE11, RA_CUST_ATTRIBUTE12, RA_CUST_ATTRIBUTE13,
RA_CUST_ATTRIBUTE14,

LAD Consulting Localizations 51


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
RA_CUST_ATTRIBUTE15, RA_CUST_GLOBAL_ATTR_CATEGORY, RA_CUST_GLOBAL_ATTRIBUTE1,
RA_CUST_GLOBAL_ATTRIBUTE2, RA_CUST_GLOBAL_ATTRIBUTE3,
RA_CUST_GLOBAL_ATTRIBUTE4, RA_CUST_GLOBAL_ATTRIBUTE5, RA_CUST_GLOBAL_ATTRIBUTE6,
RA_CUST_GLOBAL_ATTRIBUTE7, RA_CUST_GLOBAL_ATTRIBUTE8,
RA_CUST_GLOBAL_ATTRIBUTE10, RA_CUST_GLOBAL_ATTRIBUTE11, RA_CUST_GLOBAL_ATTRIBUTE12,
RA_CUST_GLOBAL_ATTRIBUTE13, RA_CUST_GLOBAL_ATTRIBUTE14,
RA_CUST_GLOBAL_ATTRIBUTE15, RA_CUST_GLOBAL_ATTRIBUTE16, RA_CUST_GLOBAL_ATTRIBUTE17,
RA_CUST_GLOBAL_ATTRIBUTE18, RA_CUST_GLOBAL_ATTRIBUTE19,
RA_CUST_GLOBAL_ATTRIBUTE20, RA_CUST_GLOBAL_ATTRIBUTE21, RA_CUST_GLOBAL_ATTRIBUTE22,
RA_CUST_GLOBAL_ATTRIBUTE23, RA_CUST_GLOBAL_ATTRIBUTE24,
RA_CUST_GLOBAL_ATTRIBUTE25, RA_CUST_GLOBAL_ATTRIBUTE26, RA_CUST_GLOBAL_ATTRIBUTE27,
RA_CUST_GLOBAL_ATTRIBUTE28, RA_CUST_GLOBAL_ATTRIBUTE29,
RA_CUST_GLOBAL_ATTRIBUTE30, RA_CUST_TRX_ATTRIBUTE_CATEGORY, RA_CUST_TRX_ATTRIBUTE1,
RA_CUST_TRX_ATTRIBUTE2, RA_CUST_TRX_ATTRIBUTE3,
RA_CUST_TRX_ATTRIBUTE4, RA_CUST_TRX_ATTRIBUTE5, RA_CUST_TRX_ATTRIBUTE6,
RA_CUST_TRX_ATTRIBUTE7, RA_CUST_TRX_ATTRIBUTE8,
RA_CUST_TRX_ATTRIBUTE10, RA_CUST_TRX_ATTRIBUTE11, RA_CUST_TRX_ATTRIBUTE12,
RA_CUST_TRX_ATTRIBUTE13, RA_CUST_TRX_ATTRIBUTE14,
RA_CUST_TRX_ATTRIBUTE15, RA_BATC_ATTRIBUTE_CATEGORY, RA_BATC_ATTRIBUTE1, RA_BATC_ATTRIBUTE2,
RA_BATC_ATTRIBUTE3,
RA_BATC_ATTRIBUTE4, RA_BATC_ATTRIBUTE5, RA_BATC_ATTRIBUTE6, RA_BATC_ATTRIBUTE7,
RA_BATC_ATTRIBUTE8,
RA_BATC_ATTRIBUTE10, RA_BATC_ATTRIBUTE11, RA_BATC_ATTRIBUTE12, RA_BATC_ATTRIBUTE13,
RA_BATC_ATTRIBUTE14,
RA_BATC_ATTRIBUTE15)
AS
SELECT cfr.attribute2 resolution_number
, cfr.attribute3 aut_start_date
, cfr.attribute4 aut_end_date
, cfr.attribute1 prefix
, cfr.attribute5 authorized_number_to
, cfr.attribute6 authorized_number_from
, cfac.attribute1 invoice_authorization
, cfac.attribute2 invoice_authorization_date
, cfac.attribute3 invoice_authorization_key
, cfac.attribute4 reason_code
, DECODE (cfac.attribute_category
, 'Credit Note', (SELECT meaning
FROM fnd_lookup_values_vl
WHERE cfac.attribute_category =
'Credit Note'
AND lookup_type =
'CLL_F043_CREDIT_TYPE_REASON'
AND lookup_code = cfac.attribute4)
, 'Debit Note', (SELECT meaning
FROM fnd_lookup_values_vl
WHERE cfac.attribute_category = 'Debit Note'
AND lookup_type =
'CLL_F043_DEBIT_TYPE_REASON'
AND lookup_code = cfac.attribute4)
) reason_code_description
, rcta.customer_trx_id
, rcta.trx_number
, cfr.attribute1
|| rcta.trx_number document_sequence_number
, TO_CHAR (rcta.trx_date, 'YYYY-MM-DD') issue_date
, TO_CHAR (rcta.trx_date, 'HH24:MI:SS') issue_time
, (SELECT start_date
FROM gl_period_statuses gps
WHERE gps.application_id = 101
AND gps.set_of_books_id = rcta.set_of_books_id
AND rctlgda.gl_date BETWEEN gps.start_date AND gps.end_date
AND adjustment_period_flag = 'N') start_date
, (SELECT end_date
FROM gl_period_statuses gps
WHERE gps.application_id = 101
AND gps.set_of_books_id = rcta.set_of_books_id
AND adjustment_period_flag = 'N'
AND rctlgda.gl_date BETWEEN gps.start_date AND gps.end_date)
end_date
, cfct.attribute1 invoice_type_code
, (SELECT meaning
FROM fnd_lookup_values_vl

LAD Consulting Localizations 52


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
WHERE lookup_type LIKE 'CLL_F043_INVOICE_TYPE_CODES'
AND lookup_code = cfct.attribute1
AND ROWNUM = 1) invoice_type_meaning
, rcta.purchase_order
, cfel.xle_reg_attribute1 legal_entity_document_type
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_NATURE'
AND lookup_code = cfel.xle_reg_attribute1
AND ROWNUM = 1) legal_entity_document_meaning
, cfel.xle_reg_attribute2 legal_entity_verif_digit
, cfel.xle_reg_attribute3 legal_entity_type
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_NATURE'
AND lookup_code = cfel.xle_reg_attribute3
AND ROWNUM = 1) legal_entity_type_meaning
, cfel.xle_reg_attribute4 regimen_code
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_REGIMEN'
AND lookup_code = cfel.xle_reg_attribute4
AND ROWNUM = 1) regimen_meaning
, cfel.registration_number legal_registration_number
, cfel.legal_entity_name
, cfel.postal_code legal_entity_postal_code
, cfel.address_line_1 le_address_line_1
, cfel.address_line_2 le_address_line_2
, cfel.address_line_3 le_address_line_3
, cfel.country legal_entity_country
, cfel.geography_name legal_entity_country_name
, cfel.town_or_city legal_entity_town_or_city
, cfel.region_1 le_region_1
, cfel.region_2 le_region_2
, cfel.region_3 le_region_3
, DECODE (SUBSTRB (raco_ship_party.person_last_name
, 1
, 50
)
, NULL, SUBSTRB (raco_ship_party.person_first_name
, 1
, 40
)
, SUBSTRB (raco_ship_party.person_last_name
, 1
, 50
)
|| ', '
|| SUBSTRB (raco_ship_party.person_first_name
, 1
, 40
)
) ship_to_contact_name
, arpt_sql_func_util.get_salesrep_name_number
(rcta.primary_salesrep_id
, 'NAME'
, rcta.org_id
) primary_salesrep_name
, bill_to.party_attribute3 customer_party_type
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_NATURE'
AND lookup_code = bill_to.party_attribute3
AND ROWNUM = 1) customer_party_type_meaning
, bill_to.party_attribute1 customer_document_type
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_DOCUMENT_TYPE'
AND lookup_code = bill_to.party_attribute1
AND ROWNUM = 1) customer_document_type_meaning
, bill_to.party_name customer_party_name
, bill_to.party_name customer_name
, bill_to.taxpayer_id customer_taxpayer_id

LAD Consulting Localizations 53


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
,
bill_to.customer_taxpayer_vd
,
bill_to.postal_code customer_postal_code
,
bill_to.state customer_state
,
bill_to.country customer_country_code
,
bill_to.country_name customer_country
,
bill_to.city customer_city
,
bill_to.address1 customer_address1
,
bill_to.address2 customer_address2
,
bill_to.address3 customer_address3
,
bill_to.address4 customer_address4
,
bill_to.party_attribute4 customer_regimen_code
,
(SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_REGIMEN'
AND lookup_code = bill_to.party_attribute4
AND ROWNUM = 1) customer_regimen_meaning
, bill_to.person_first_name cust_first_name
, bill_to.person_last_name cust_last_name
, bill_to.person_middle_name cust_person_middle_name
, bill_to.person_name_suffix cust_person_name_suffix
, bill_to.person_title cust_person_title
, rac_paying_party.party_name paying_customer_name
, TO_CHAR (rcta.ship_date_actual, 'YYYY-MM-DD') ship_date_actual
, TO_CHAR (rcta.ship_date_actual, 'HH24:MI:SS') ship_time_actual
, rcta.waybill_number ship_reference
-- , ship_to.taxpayer_id customer_taxpayer_id
-- , ship_to.customer_taxpayer_vd
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'POSTAL_CODE'),1,60) ship_to_postal_code
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'STATE'),1,60) ship_to_state
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'COUNTRY'),1,60) ship_to_country_code
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'COUNTRY_NAME'),1,360) ship_to_country
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'CITY'),1,60) ship_to_city
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'ADDRESS1'),1,240) raa_ship_to_address1
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'ADDRESS2'),1,240) raa_ship_to_address2
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'ADDRESS3'),1,240) raa_ship_to_address3
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'ADDRESS4'),1,240) raa_ship_to_address4
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'FT_TO_COUNTRY_CODE'),1,80) ft_ship_to_country_code
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'TAXPAYER_ID'),1,20) delivery_taxpayer_id
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'CUSTOMER_TAXPAYER_VD'),1,150) delivery_taxpayer_vd
, ofv.freight_code delivery_freight_code
, whs_to.party_name delivery_party_name
, whs_to.party_attribute1 delivery_party_document_type
, whs_to.address1 carrier_address1
, whs_to.address2 carrier_address2
, whs_to.address3 carrier_address3
, whs_to.address4 carrier_address4
, whs_to.postal_code carrier_postal_code
, whs_to.state carrier_state
, whs_to.country carrier_country_code

LAD Consulting Localizations 54


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
, whs_to.country_name carrier_country
, whs_to.city carrier_city
, whs_to.person_first_name carrier_contact_first_name
, whs_to.person_last_name carrier_contact_last_name
, whs_to.person_middle_name carrier_person_middle_name
, whs_to.person_name_suffix carrier_person_name_suffix
, whs_to.person_title carrier_person_title
, cfel.country ship_country_from
, ofv.description special_term
, rcta.fob_point incoterm
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'CUSTOMER_LOCATION'),1,40) ship_to_location
, cfarm.attribute1 pay_method_type
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_NET_AMOUNT'),1,15) total_net_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_EXCLUDED_AMOUNT'),1,15) total_excluded_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_EXEMPT_AMOUNT'),1,15) total_exempt_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_TAXABLE_AMOUNT'),1,15) total_taxable_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_TAX_AMOUNT'),1,15) total_tax_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'DISCOUNT_TOTAL_LINE_AMOUNT'),1,15) discount_total_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_AMOUNT_RECEIVABLE'),1,15) amount_receivable
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'APPLY_DATE'),1,15) apply_date
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'AMOUNT_DUE_ORIGINAL'),1,15) amount_due_original
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'AMOUNT_APPLIED'),1,15) amount_applied
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'AMOUNT_LINE_ITEMS_ORIGINAL'),1,15) amount_line_items_original
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TAX_ORIGINAL'),1,15) tax_original
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'FREIGHT_ORIGINAL'),1,15) freight_original
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'AMOUNT_ADJUSTED'),1,15) amount_adjusted
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'RECEIPT_NUMBER'),1,15) receipt_number
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'SALES_ORDER'),1,15) sales_order
, cll_f043_efd_utility_pkg.get_customer_trx_reference
(rcta.customer_trx_id
, rcta.trx_number
, rcta.previous_customer_trx_id
, 'REF_DOCUMENT_SEQUENCE_NUMBER'
) ref_document_sequence_number
, cll_f043_efd_utility_pkg.get_customer_trx_reference
(rcta.customer_trx_id
, rcta.trx_number
, rcta.previous_customer_trx_id
, 'REF_CUSTOMER_TRX_ID'

LAD Consulting Localizations 55


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
) ref_customer_trx_id
, rcta.cust_trx_type_id
, rcta.legal_entity_id
, rcta.org_id
, rcta.status_trx
, rctta.NAME cust_trx_type_name
, rctta.description cust_trx_type_desc
, rctta.TYPE cust_trx_type
, rcta.set_of_books_id
, rcta.batch_source_id
, rbsa.NAME batch_source_name
, rbsa.description batch_source_desc
, rcta.invoice_currency_code
, gsob.currency_code functional_currency_code
, cfel.legal_entity_currency_code
, rctlgda.amount invoice_currency_amount
, rctlgda.acctd_amount invoice_funcl_curr_amount
, rctlgda.gl_date
, rcta.sold_to_customer_id
, rcta.bill_to_customer_id
, rcta.ship_to_customer_id
, rcta.bill_to_site_use_id
, rcta.ship_to_site_use_id
, rtv.term_id
, rtv.NAME term_name
, rtv.description term_description
, rcta.comments
, rcta.internal_notes
, rcta.previous_customer_trx_id
, rcta.exchange_rate_type
, rcta.exchange_date
, rcta.exchange_rate
, rcta.fob_point
, rcta.waybill_number
, rcta.receipt_method_id
, rcta.creation_date trx_creation_date
, rcta.created_by trx_created_by
, rcta.last_update_date trx_last_update_date
, rcta.last_updated_by trx_last_updated_by
, rcta.last_update_login trx_last_update_login
, rcta.attribute_category ra_cust_attribute_category
, rcta.attribute1 ra_cust_attribute1
, rcta.attribute2 ra_cust_attribute2
, rcta.attribute3 ra_cust_attribute3
, rcta.attribute4 ra_cust_attribute4
, rcta.attribute5 ra_cust_attribute5
, rcta.attribute6 ra_cust_attribute6
, rcta.attribute7 ra_cust_attribute7
, rcta.attribute8 ra_cust_attribute8
, rcta.attribute10 ra_cust_attribute10
, rcta.attribute11 ra_cust_attribute11
, rcta.attribute12 ra_cust_attribute12
, rcta.attribute13 ra_cust_attribute13
, rcta.attribute14 ra_cust_attribute14
, rcta.attribute15 ra_cust_attribute15
, rcta.global_attribute_category ra_cust_global_attr_category
, rcta.global_attribute1 ra_cust_global_attribute1
, rcta.global_attribute2 ra_cust_global_attribute2
, rcta.global_attribute3 ra_cust_global_attribute3
, rcta.global_attribute4 ra_cust_global_attribute4
, rcta.global_attribute5 ra_cust_global_attribute5
, rcta.global_attribute6 ra_cust_global_attribute6
, rcta.global_attribute7 ra_cust_global_attribute7
, rcta.global_attribute8 ra_cust_global_attribute8
, rcta.global_attribute10 ra_cust_global_attribute10
, rcta.global_attribute11 ra_cust_global_attribute11
, rcta.global_attribute12 ra_cust_global_attribute12
, rcta.global_attribute13 ra_cust_global_attribute13
, rcta.global_attribute14 ra_cust_global_attribute14
, rcta.global_attribute15 ra_cust_global_attribute15
, rcta.global_attribute16 ra_cust_global_attribute16
, rcta.global_attribute17 ra_cust_global_attribute17
, rcta.global_attribute18 ra_cust_global_attribute18

LAD Consulting Localizations 56


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
, rcta.global_attribute19 ra_cust_global_attribute19
, rcta.global_attribute20 ra_cust_global_attribute20
, rcta.global_attribute21 ra_cust_global_attribute21
, rcta.global_attribute22 ra_cust_global_attribute22
, rcta.global_attribute23 ra_cust_global_attribute23
, rcta.global_attribute24 ra_cust_global_attribute24
, rcta.global_attribute25 ra_cust_global_attribute25
, rcta.global_attribute26 ra_cust_global_attribute26
, rcta.global_attribute27 ra_cust_global_attribute27
, rcta.global_attribute28 ra_cust_global_attribute28
, rcta.global_attribute29 ra_cust_global_attribute29
, rcta.global_attribute30 ra_cust_global_attribute30
, rctta.attribute_category ra_cust_trx_attribute_category
, rctta.attribute1 ra_cust_trx_attribute1
, rctta.attribute2 ra_cust_trx_attribute2
, rctta.attribute3 ra_cust_trx_attribute3
, rctta.attribute4 ra_cust_trx_attribute4
, rctta.attribute5 ra_cust_trx_attribute5
, rctta.attribute6 ra_cust_trx_attribute6
, rctta.attribute7 ra_cust_trx_attribute7
, rctta.attribute8 ra_cust_trx_attribute8
, rctta.attribute10 ra_cust_trx_attribute10
, rctta.attribute11 ra_cust_trx_attribute11
, rctta.attribute12 ra_cust_trx_attribute12
, rctta.attribute13 ra_cust_trx_attribute13
, rctta.attribute14 ra_cust_trx_attribute14
, rctta.attribute15 ra_cust_trx_attribute15
, rbsa.attribute_category ra_batc_attribute_category
, rbsa.attribute1 ra_batc_attribute1
, rbsa.attribute2 ra_batc_attribute2
, rbsa.attribute3 ra_batc_attribute3
, rbsa.attribute4 ra_batc_attribute4
, rbsa.attribute5 ra_batc_attribute5
, rbsa.attribute6 ra_batc_attribute6
, rbsa.attribute7 ra_batc_attribute7
, rbsa.attribute8 ra_batc_attribute8
, rbsa.attribute10 ra_batc_attribute10
, rbsa.attribute11 ra_batc_attribute11
, rbsa.attribute12 ra_batc_attribute12
, rbsa.attribute13 ra_batc_attribute13
, rbsa.attribute14 ra_batc_attribute14
, rbsa.attribute15 ra_batc_attribute15
FROM ra_cust_trx_line_gl_dist_all rctlgda
, ra_customer_trx_all rcta
, ra_cust_trx_types_all rctta
, ra_batch_sources_all rbsa
, gl_ledgers gsob
, cll_f043_ra_batch_sources_ext cfr
, cll_f043_cust_trx_types_ext cfct
, cll_f043_efd_legal_entities_v cfel
, hz_cust_account_roles raco_ship
, hz_relationships raco_ship_rel
, hz_parties raco_ship_party
, hz_cust_accounts rac_paying
, hz_parties rac_paying_party
, cll_f043_efd_party_locations_v bill_to
, org_freight_vl ofv
, cll_f043_efd_party_locations_v whs_to
, cll_f043_ar_rec_methods_ext cfarm
, cll_f043_ar_customer_trx_ext cfac
, ra_terms_vl rtv
, cll_f043_ra_terms_ext cfrtv
WHERE rctlgda.account_class = 'REC'
AND rctlgda.latest_rec_flag = 'Y'
AND rcta.complete_flag = 'Y'
AND rcta.customer_trx_id = rctlgda.customer_trx_id
AND rcta.customer_trx_id = cfac.customer_trx_id(+)
AND rcta.cust_trx_type_id = rctta.cust_trx_type_id
AND rcta.batch_source_id = rbsa.batch_source_id
AND rcta.org_id = rbsa.org_id
AND rcta.org_id = rctta.org_id
AND rcta.set_of_books_id = gsob.ledger_id
AND rbsa.batch_source_id = cfr.batch_source_id

LAD Consulting Localizations 57


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
AND rbsa.org_id = cfr.org_id
AND rctta.TYPE = 'DM'
--Solo Notas de Debitos
--La extension de source se marca que factura deben ser electronica
AND cfr.attribute7 = 'Y'
AND rctta.cust_trx_type_id = cfct.cust_trx_type_id(+)
AND rctta.org_id = cfct.org_id(+)
AND cfel.legal_entity_id = rcta.legal_entity_id
AND rcta.ship_to_contact_id = raco_ship.cust_account_role_id(+)
AND raco_ship.party_id = raco_ship_rel.party_id(+)
AND raco_ship_rel.subject_table_name(+) = 'HZ_PARTIES'
AND raco_ship_rel.object_table_name(+) = 'HZ_PARTIES'
AND raco_ship_rel.directional_flag(+) = 'F'
AND raco_ship.role_type(+) = 'CONTACT'
AND raco_ship_rel.subject_id = raco_ship_party.party_id(+)
AND rcta.bill_to_customer_id = bill_to.customer_id
AND rcta.bill_to_site_use_id = bill_to.site_use_id
AND rcta.paying_customer_id = rac_paying.cust_account_id(+)
AND rac_paying.party_id = rac_paying_party.party_id(+)
AND ofv.party_id = whs_to.party_id(+)
AND rcta.ship_via = ofv.freight_code(+)
AND rcta.org_id = ofv.organization_id(+)
AND rcta.term_id = rtv.term_id(+)
AND rcta.term_id = cfrtv.term_id(+)
AND rcta.receipt_method_id = cfarm.receipt_method_id(+)
AND cll_f043_efd_doctype_reqs_pkg.set_null_total_attinfo
(rcta.customer_trx_id) =
rcta.customer_trx_id
/

LAD Consulting Localizations 58


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_EFD_AR_INVOICES_V
Name: cll_f043_efd_ar_invoices_v.xdf

Columns description

Name Type
RESOLUTION_NUMBER NULL VARCHAR2(150)
AUT_START_DATE NULL VARCHAR2(150)
AUT_END_DATE NULL VARCHAR2(150)
PREFIX NULL VARCHAR2(150)
AUTHORIZED_NUMBER_TO NULL VARCHAR2(150)
AUTHORIZED_NUMBER_FROM NULL VARCHAR2(150)
INVOICE_AUTHORIZATION NULL VARCHAR2(150)
INVOICE_AUTHORIZATION_DATE NULL VARCHAR2(150)
INVOICE_AUTHORIZATION_KEY NULL VARCHAR2(150)
INVOICE_NOTE_TYPE_REASON NULL VARCHAR2(150)
CUSTOMER_TRX_ID NOT NULL NUMBER
TRX_NUMBER NOT NULL VARCHAR2(20)
DOCUMENT_SEQUENCE_NUMBER NULL VARCHAR2(170)
ISSUE_DATE NULL VARCHAR2(10)
ISSUE_TIME NULL VARCHAR2(8)
START_DATE NULL DATE
END_DATE NULL DATE
INVOICE_TYPE_CODE NULL VARCHAR2(150)
INVOICE_TYPE_MEANING NULL VARCHAR2(80)
PURCHASE_ORDER NULL VARCHAR2(50)
LEGAL_ENTITY_DOCUMENT_TYPE NULL VARCHAR2(150)
LEGAL_ENTITY_DOCUMENT_MEANING NULL VARCHAR2(80)
LEGAL_ENTITY_VERIF_DIGIT NULL VARCHAR2(150)
LEGAL_ENTITY_TYPE NULL VARCHAR2(150)
LEGAL_ENTITY_TYPE_MEANING NULL VARCHAR2(80)
REGIMEN_CODE NULL VARCHAR2(150)
REGIMEN_MEANING NULL VARCHAR2(80)
LEGAL_REGISTRATION_NUMBER NOT NULL VARCHAR2(30)
LEGAL_ENTITY_NAME NOT NULL VARCHAR2(240)
LEGAL_ENTITY_POSTAL_CODE NULL VARCHAR2(30)
LE_ADDRESS_LINE_1 NULL VARCHAR2(240)
LE_ADDRESS_LINE_2 NULL VARCHAR2(240)
LE_ADDRESS_LINE_3 NULL VARCHAR2(240)
LEGAL_ENTITY_COUNTRY NULL VARCHAR2(60)
LEGAL_ENTITY_COUNTRY_NAME NOT NULL VARCHAR2(360)
LEGAL_ENTITY_TOWN_OR_CITY NULL VARCHAR2(30)
LE_REGION_1 NULL VARCHAR2(120)
LE_REGION_2 NULL VARCHAR2(120)
LE_REGION_3 NULL VARCHAR2(120)
SHIP_TO_CONTACT_NAME NULL VARCHAR2(92)
PRIMARY_SALESREP_NAME NULL VARCHAR2(4000)
CUSTOMER_PARTY_TYPE NULL VARCHAR2(150)
CUSTOMER_PARTY_TYPE_MEANING NULL VARCHAR2(80)
CUSTOMER_DOCUMENT_TYPE NULL VARCHAR2(150)
CUSTOMER_DOCUMENT_TYPE_MEANING NULL VARCHAR2(80)
CUSTOMER_PARTY_NAME NOT NULL VARCHAR2(360)
CUSTOMER_NAME NOT NULL VARCHAR2(360)
CUSTOMER_TAXPAYER_ID NULL VARCHAR2(20)
CUSTOMER_TAXPAYER_VD NULL VARCHAR2(150)
CUSTOMER_POSTAL_CODE NULL VARCHAR2(60)
CUSTOMER_STATE NULL VARCHAR2(60)

LAD Consulting Localizations 59


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CUSTOMER_COUNTRY_CODE NOT NULL VARCHAR2(60)
CUSTOMER_COUNTRY NULL VARCHAR2(360)
CUSTOMER_CITY NULL VARCHAR2(60)
CUSTOMER_ADDRESS1 NOT NULL VARCHAR2(240)
CUSTOMER_ADDRESS2 NULL VARCHAR2(240)
CUSTOMER_ADDRESS3 NULL VARCHAR2(240)
CUSTOMER_ADDRESS4 NULL VARCHAR2(240)
CUSTOMER_REGIMEN_CODE NULL VARCHAR2(150)
CUSTOMER_REGIMEN_MEANING NULL VARCHAR2(80)
CUST_FIRST_NAME NULL VARCHAR2(150)
CUST_LAST_NAME NULL VARCHAR2(150)
CUST_PERSON_MIDDLE_NAME NULL VARCHAR2(60)
CUST_PERSON_NAME_SUFFIX NULL VARCHAR2(30)
CUST_PERSON_TITLE NULL VARCHAR2(60)
PAYING_CUSTOMER_NAME NULL VARCHAR2(360)
SHIP_DATE_ACTUAL NULL VARCHAR2(10)
SHIP_TIME_ACTUAL NULL VARCHAR2(8)
SHIP_REFERENCE NULL VARCHAR2(50)
SHIP_TO_POSTAL_CODE NULL VARCHAR2(180)
SHIP_TO_STATE NULL VARCHAR2(180)
SHIP_TO_COUNTRY_CODE NULL VARCHAR2(180)
SHIP_TO_COUNTRY NULL VARCHAR2(1080)
SHIP_TO_CITY NULL VARCHAR2(180)
RAA_SHIP_TO_ADDRESS1 NULL VARCHAR2(720)
RAA_SHIP_TO_ADDRESS2 NULL VARCHAR2(720)
RAA_SHIP_TO_ADDRESS3 NULL VARCHAR2(720)
RAA_SHIP_TO_ADDRESS4 NULL VARCHAR2(720)
FT_SHIP_TO_COUNTRY_CODE NULL VARCHAR2(240)
DELIVERY_TAXPAYER_ID NULL VARCHAR2(60)
DELIVERY_TAXPAYER_VD NULL VARCHAR2(450)
DELIVERY_FREIGHT_CODE NULL VARCHAR2(25)
DELIVERY_PARTY_NAME NULL VARCHAR2(360)
DELIVERY_PARTY_DOCUMENT_TYPE NULL VARCHAR2(150)
CARRIER_ADDRESS1 NULL VARCHAR2(240)
CARRIER_ADDRESS2 NULL VARCHAR2(240)
CARRIER_ADDRESS3 NULL VARCHAR2(240)
CARRIER_ADDRESS4 NULL VARCHAR2(240)
CARRIER_POSTAL_CODE NULL VARCHAR2(60)
CARRIER_STATE NULL VARCHAR2(60)
CARRIER_COUNTRY_CODE NULL VARCHAR2(60)
CARRIER_COUNTRY NULL VARCHAR2(360)
CARRIER_CITY NULL VARCHAR2(60)
CARRIER_CONTACT_FIRST_NAME NULL VARCHAR2(150)
CARRIER_CONTACT_LAST_NAME NULL VARCHAR2(150)
CARRIER_PERSON_MIDDLE_NAME NULL VARCHAR2(60)
CARRIER_PERSON_NAME_SUFFIX NULL VARCHAR2(30)
CARRIER_PERSON_TITLE NULL VARCHAR2(60)
SHIP_COUNTRY_FROM NULL VARCHAR2(60)
SPECIAL_TERM NULL VARCHAR2(80)
INCOTERM NULL VARCHAR2(30)
SHIP_TO_LOCATION NULL VARCHAR2(120)
PAY_METHOD_TYPE NULL VARCHAR2(150)
TOTAL_NET_AMOUNT NULL VARCHAR2(45)
TOTAL_EXCLUDED_AMOUNT NULL VARCHAR2(45)
TOTAL_EXEMPT_AMOUNT NULL VARCHAR2(45)
TOTAL_TAXABLE_AMOUNT NULL VARCHAR2(45)
TOTAL_TAX_AMOUNT NULL VARCHAR2(45)
DISCOUNT_TOTAL_AMOUNT NULL VARCHAR2(45)

LAD Consulting Localizations 60


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
AMOUNT_RECEIVABLE NULL VARCHAR2(45)
APPLY_DATE NULL VARCHAR2(45)
AMOUNT_DUE_ORIGINAL NULL VARCHAR2(45)
AMOUNT_APPLIED NULL VARCHAR2(45)
AMOUNT_LINE_ITEMS_ORIGINAL NULL VARCHAR2(45)
TAX_ORIGINAL NULL VARCHAR2(45)
FREIGHT_ORIGINAL NULL VARCHAR2(45)
AMOUNT_ADJUSTED NULL VARCHAR2(45)
RECEIPT_NUMBER NULL VARCHAR2(45)
SALES_ORDER NULL VARCHAR2(45)
CUST_TRX_TYPE_ID NOT NULL NUMBER
LEGAL_ENTITY_ID NULL NUMBER
ORG_ID NULL NUMBER
STATUS_TRX NULL VARCHAR2(30)
CUST_TRX_TYPE_NAME NULL VARCHAR2(20)
CUST_TRX_TYPE_DESC NULL VARCHAR2(80)
CUST_TRX_TYPE NULL VARCHAR2(20)
SET_OF_BOOKS_ID NOT NULL NUMBER
BATCH_SOURCE_ID NULL NUMBER
BATCH_SOURCE_NAME NOT NULL VARCHAR2(50)
BATCH_SOURCE_DESC NULL VARCHAR2(240)
INVOICE_CURRENCY_CODE NULL VARCHAR2(15)
FUNCTIONAL_CURRENCY_CODE NOT NULL VARCHAR2(15)
LEGAL_ENTITY_CURRENCY_CODE NULL VARCHAR2(15)
INVOICE_CURRENCY_AMOUNT NULL NUMBER
INVOICE_FUNCL_CURR_AMOUNT NULL NUMBER
GL_DATE NULL DATE
SOLD_TO_CUSTOMER_ID NULL NUMBER
BILL_TO_CUSTOMER_ID NULL NUMBER
SHIP_TO_CUSTOMER_ID NULL NUMBER
BILL_TO_SITE_USE_ID NULL NUMBER
SHIP_TO_SITE_USE_ID NULL NUMBER
TERM_ID NULL NUMBER
TERM_NAME NULL VARCHAR2(15)
TERM_DESCRIPTION NULL VARCHAR2(240)
COMMENTS NULL VARCHAR2(1760)
INTERNAL_NOTES NULL VARCHAR2(240)
PREVIOUS_CUSTOMER_TRX_ID NULL NUMBER
REASON_CODE NULL VARCHAR2(30)
EXCHANGE_RATE_TYPE NULL VARCHAR2(30)
EXCHANGE_DATE NULL DATE
EXCHANGE_RATE NULL NUMBER
FOB_POINT NULL VARCHAR2(30)
WAYBILL_NUMBER NULL VARCHAR2(50)
RECEIPT_METHOD_ID NULL NUMBER
TRX_CREATION_DATE NOT NULL DATE
TRX_CREATED_BY NOT NULL NUMBER
TRX_LAST_UPDATE_DATE NOT NULL DATE
TRX_LAST_UPDATED_BY NOT NULL NUMBER
TRX_LAST_UPDATE_LOGIN NULL NUMBER
RA_CUST_ATTRIBUTE_CATEGORY NULL VARCHAR2(30)
RA_CUST_ATTRIBUTE1 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE2 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE3 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE4 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE5 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE6 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE7 NULL VARCHAR2(150)

LAD Consulting Localizations 61


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
RA_CUST_ATTRIBUTE8 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE10 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE11 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE12 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE13 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE14 NULL VARCHAR2(150)
RA_CUST_ATTRIBUTE15 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTR_CATEGORY NULL VARCHAR2(30)
RA_CUST_GLOBAL_ATTRIBUTE1 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE2 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE3 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE4 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE5 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE6 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE7 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE8 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE10 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE11 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE12 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE13 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE14 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE15 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE16 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE17 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE18 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE19 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE20 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE21 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE22 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE23 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE24 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE25 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE26 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE27 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE28 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE29 NULL VARCHAR2(150)
RA_CUST_GLOBAL_ATTRIBUTE30 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE_CATEGORY NULL VARCHAR2(30)
RA_CUST_TRX_ATTRIBUTE1 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE2 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE3 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE4 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE5 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE6 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE7 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE8 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE10 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE11 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE12 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE13 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE14 NULL VARCHAR2(150)
RA_CUST_TRX_ATTRIBUTE15 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE_CATEGORY NULL VARCHAR2(30)
RA_BATC_ATTRIBUTE1 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE2 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE3 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE4 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE5 NULL VARCHAR2(150)

LAD Consulting Localizations 62


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
RA_BATC_ATTRIBUTE6 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE7 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE8 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE10 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE11 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE12 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE13 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE14 NULL VARCHAR2(150)
RA_BATC_ATTRIBUTE15 NULL VARCHAR2(150)

CREATE OR REPLACE VIEW CLL_F043_EFD_AR_INVOICES_V


(RESOLUTION_NUMBER, AUT_START_DATE, AUT_END_DATE, PREFIX, AUTHORIZED_NUMBER_TO,
AUTHORIZED_NUMBER_FROM, INVOICE_AUTHORIZATION, INVOICE_AUTHORIZATION_DATE,
INVOICE_AUTHORIZATION_KEY, INVOICE_NOTE_TYPE_REASON,
CUSTOMER_TRX_ID, TRX_NUMBER, DOCUMENT_SEQUENCE_NUMBER, ISSUE_DATE, ISSUE_TIME,
START_DATE, END_DATE, INVOICE_TYPE_CODE, INVOICE_TYPE_MEANING, PURCHASE_ORDER,
LEGAL_ENTITY_DOCUMENT_TYPE, LEGAL_ENTITY_DOCUMENT_MEANING, LEGAL_ENTITY_VERIF_DIGIT,
LEGAL_ENTITY_TYPE, LEGAL_ENTITY_TYPE_MEANING,
REGIMEN_CODE, REGIMEN_MEANING, LEGAL_REGISTRATION_NUMBER, LEGAL_ENTITY_NAME,
LEGAL_ENTITY_POSTAL_CODE,
LE_ADDRESS_LINE_1, LE_ADDRESS_LINE_2, LE_ADDRESS_LINE_3, LEGAL_ENTITY_COUNTRY,
LEGAL_ENTITY_COUNTRY_NAME,
LEGAL_ENTITY_TOWN_OR_CITY, LE_REGION_1, LE_REGION_2, LE_REGION_3, SHIP_TO_CONTACT_NAME,
PRIMARY_SALESREP_NAME, CUSTOMER_PARTY_TYPE, CUSTOMER_PARTY_TYPE_MEANING,
CUSTOMER_DOCUMENT_TYPE, CUSTOMER_DOCUMENT_TYPE_MEANING,
CUSTOMER_PARTY_NAME, CUSTOMER_NAME, CUSTOMER_TAXPAYER_ID, CUSTOMER_TAXPAYER_VD,
CUSTOMER_POSTAL_CODE,
CUSTOMER_STATE, CUSTOMER_COUNTRY_CODE, CUSTOMER_COUNTRY, CUSTOMER_CITY, CUSTOMER_ADDRESS1,
CUSTOMER_ADDRESS2, CUSTOMER_ADDRESS3, CUSTOMER_ADDRESS4, CUSTOMER_REGIMEN_CODE,
CUSTOMER_REGIMEN_MEANING,
CUST_FIRST_NAME, CUST_LAST_NAME, CUST_PERSON_MIDDLE_NAME, CUST_PERSON_NAME_SUFFIX,
CUST_PERSON_TITLE,
PAYING_CUSTOMER_NAME, SHIP_DATE_ACTUAL, SHIP_TIME_ACTUAL, SHIP_REFERENCE,
SHIP_TO_POSTAL_CODE,
SHIP_TO_STATE, SHIP_TO_COUNTRY_CODE, SHIP_TO_COUNTRY, SHIP_TO_CITY, RAA_SHIP_TO_ADDRESS1,
RAA_SHIP_TO_ADDRESS2, RAA_SHIP_TO_ADDRESS3, RAA_SHIP_TO_ADDRESS4, FT_SHIP_TO_COUNTRY_CODE,
DELIVERY_TAXPAYER_ID,
DELIVERY_TAXPAYER_VD, DELIVERY_FREIGHT_CODE, DELIVERY_PARTY_NAME,
DELIVERY_PARTY_DOCUMENT_TYPE, CARRIER_ADDRESS1,
CARRIER_ADDRESS2, CARRIER_ADDRESS3, CARRIER_ADDRESS4, CARRIER_POSTAL_CODE, CARRIER_STATE,
CARRIER_COUNTRY_CODE, CARRIER_COUNTRY, CARRIER_CITY, CARRIER_CONTACT_FIRST_NAME,
CARRIER_CONTACT_LAST_NAME,
CARRIER_PERSON_MIDDLE_NAME, CARRIER_PERSON_NAME_SUFFIX, CARRIER_PERSON_TITLE,
SHIP_COUNTRY_FROM, SPECIAL_TERM,
INCOTERM, SHIP_TO_LOCATION, PAY_METHOD_TYPE, TOTAL_NET_AMOUNT, TOTAL_EXCLUDED_AMOUNT,
TOTAL_EXEMPT_AMOUNT, TOTAL_TAXABLE_AMOUNT, TOTAL_TAX_AMOUNT, DISCOUNT_TOTAL_AMOUNT,
AMOUNT_RECEIVABLE,
APPLY_DATE, AMOUNT_DUE_ORIGINAL, AMOUNT_APPLIED, AMOUNT_LINE_ITEMS_ORIGINAL, TAX_ORIGINAL,
FREIGHT_ORIGINAL, AMOUNT_ADJUSTED, RECEIPT_NUMBER, SALES_ORDER, CUST_TRX_TYPE_ID,
LEGAL_ENTITY_ID, ORG_ID, STATUS_TRX, CUST_TRX_TYPE_NAME, CUST_TRX_TYPE_DESC,
CUST_TRX_TYPE, SET_OF_BOOKS_ID, BATCH_SOURCE_ID, BATCH_SOURCE_NAME, BATCH_SOURCE_DESC,
INVOICE_CURRENCY_CODE, FUNCTIONAL_CURRENCY_CODE, LEGAL_ENTITY_CURRENCY_CODE,
INVOICE_CURRENCY_AMOUNT, INVOICE_FUNCL_CURR_AMOUNT,
GL_DATE, SOLD_TO_CUSTOMER_ID, BILL_TO_CUSTOMER_ID, SHIP_TO_CUSTOMER_ID, BILL_TO_SITE_USE_ID,
SHIP_TO_SITE_USE_ID, TERM_ID, TERM_NAME, TERM_DESCRIPTION, COMMENTS,
INTERNAL_NOTES, PREVIOUS_CUSTOMER_TRX_ID, REASON_CODE, EXCHANGE_RATE_TYPE, EXCHANGE_DATE,
EXCHANGE_RATE, FOB_POINT, WAYBILL_NUMBER, RECEIPT_METHOD_ID, TRX_CREATION_DATE,
TRX_CREATED_BY, TRX_LAST_UPDATE_DATE, TRX_LAST_UPDATED_BY, TRX_LAST_UPDATE_LOGIN,
RA_CUST_ATTRIBUTE_CATEGORY,
RA_CUST_ATTRIBUTE1, RA_CUST_ATTRIBUTE2, RA_CUST_ATTRIBUTE3, RA_CUST_ATTRIBUTE4,
RA_CUST_ATTRIBUTE5,
RA_CUST_ATTRIBUTE6, RA_CUST_ATTRIBUTE7, RA_CUST_ATTRIBUTE8, RA_CUST_ATTRIBUTE10,
RA_CUST_ATTRIBUTE11,
RA_CUST_ATTRIBUTE12, RA_CUST_ATTRIBUTE13, RA_CUST_ATTRIBUTE14, RA_CUST_ATTRIBUTE15,
RA_CUST_GLOBAL_ATTR_CATEGORY,
RA_CUST_GLOBAL_ATTRIBUTE1, RA_CUST_GLOBAL_ATTRIBUTE2, RA_CUST_GLOBAL_ATTRIBUTE3,
RA_CUST_GLOBAL_ATTRIBUTE4, RA_CUST_GLOBAL_ATTRIBUTE5,
RA_CUST_GLOBAL_ATTRIBUTE6, RA_CUST_GLOBAL_ATTRIBUTE7, RA_CUST_GLOBAL_ATTRIBUTE8,
RA_CUST_GLOBAL_ATTRIBUTE10, RA_CUST_GLOBAL_ATTRIBUTE11,
RA_CUST_GLOBAL_ATTRIBUTE12, RA_CUST_GLOBAL_ATTRIBUTE13, RA_CUST_GLOBAL_ATTRIBUTE14,
RA_CUST_GLOBAL_ATTRIBUTE15, RA_CUST_GLOBAL_ATTRIBUTE16,

LAD Consulting Localizations 63


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
RA_CUST_GLOBAL_ATTRIBUTE17, RA_CUST_GLOBAL_ATTRIBUTE18, RA_CUST_GLOBAL_ATTRIBUTE19,
RA_CUST_GLOBAL_ATTRIBUTE20, RA_CUST_GLOBAL_ATTRIBUTE21,
RA_CUST_GLOBAL_ATTRIBUTE22, RA_CUST_GLOBAL_ATTRIBUTE23, RA_CUST_GLOBAL_ATTRIBUTE24,
RA_CUST_GLOBAL_ATTRIBUTE25, RA_CUST_GLOBAL_ATTRIBUTE26,
RA_CUST_GLOBAL_ATTRIBUTE27, RA_CUST_GLOBAL_ATTRIBUTE28, RA_CUST_GLOBAL_ATTRIBUTE29,
RA_CUST_GLOBAL_ATTRIBUTE30, RA_CUST_TRX_ATTRIBUTE_CATEGORY,
RA_CUST_TRX_ATTRIBUTE1, RA_CUST_TRX_ATTRIBUTE2, RA_CUST_TRX_ATTRIBUTE3,
RA_CUST_TRX_ATTRIBUTE4, RA_CUST_TRX_ATTRIBUTE5,
RA_CUST_TRX_ATTRIBUTE6, RA_CUST_TRX_ATTRIBUTE7, RA_CUST_TRX_ATTRIBUTE8,
RA_CUST_TRX_ATTRIBUTE10, RA_CUST_TRX_ATTRIBUTE11,
RA_CUST_TRX_ATTRIBUTE12, RA_CUST_TRX_ATTRIBUTE13, RA_CUST_TRX_ATTRIBUTE14,
RA_CUST_TRX_ATTRIBUTE15, RA_BATC_ATTRIBUTE_CATEGORY,
RA_BATC_ATTRIBUTE1, RA_BATC_ATTRIBUTE2, RA_BATC_ATTRIBUTE3, RA_BATC_ATTRIBUTE4,
RA_BATC_ATTRIBUTE5,
RA_BATC_ATTRIBUTE6, RA_BATC_ATTRIBUTE7, RA_BATC_ATTRIBUTE8, RA_BATC_ATTRIBUTE10,
RA_BATC_ATTRIBUTE11,
RA_BATC_ATTRIBUTE12, RA_BATC_ATTRIBUTE13, RA_BATC_ATTRIBUTE14, RA_BATC_ATTRIBUTE15)
AS
SELECT cfr.attribute2 resolution_number
, cfr.attribute3 aut_start_date
, cfr.attribute4 aut_end_date
, cfr.attribute1 prefix
, cfr.attribute5 authorized_number_to
, cfr.attribute6 authorized_number_from
, cfac.attribute1 invoice_authorization
, cfac.attribute2 invoice_authorization_date
, cfac.attribute3 invoice_authorization_key
, cfac.attribute4 invoice_note_type_reason
, rcta.customer_trx_id
, rcta.trx_number
, cfr.attribute1
|| rcta.trx_number document_sequence_number
, TO_CHAR (rcta.trx_date, 'YYYY-MM-DD') issue_date
, TO_CHAR (rcta.trx_date, 'HH24:MI:SS') issue_time
, (SELECT start_date
FROM gl_period_statuses gps
WHERE gps.application_id = 101
AND gps.set_of_books_id = rcta.set_of_books_id
AND rctlgda.gl_date BETWEEN gps.start_date AND gps.end_date
AND adjustment_period_flag = 'N') start_date
, (SELECT end_date
FROM gl_period_statuses gps
WHERE gps.application_id = 101
AND gps.set_of_books_id = rcta.set_of_books_id
AND adjustment_period_flag = 'N'
AND rctlgda.gl_date BETWEEN gps.start_date AND gps.end_date)
end_date
, cfct.attribute1 invoice_type_code
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F043_INVOICE_TYPE_CODES'
AND lookup_code = cfct.attribute1
AND ROWNUM = 1) invoice_type_meaning
, rcta.purchase_order
, cfel.xle_reg_attribute1 legal_entity_document_type
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_NATURE'
AND lookup_code = cfel.xle_reg_attribute1
AND ROWNUM = 1) legal_entity_document_meaning
, cfel.xle_reg_attribute2 legal_entity_verif_digit
, cfel.xle_reg_attribute3 legal_entity_type
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_NATURE'
AND lookup_code = cfel.xle_reg_attribute3
AND ROWNUM = 1) legal_entity_type_meaning
, cfel.xle_reg_attribute4 regimen_code
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_REGIMEN'
AND lookup_code = cfel.xle_reg_attribute4
AND ROWNUM = 1) regimen_meaning

LAD Consulting Localizations 64


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
, cfel.registration_number legal_registration_number
, cfel.legal_entity_name
, cfel.postal_code legal_entity_postal_code
, cfel.address_line_1 le_address_line_1
, cfel.address_line_2 le_address_line_2
, cfel.address_line_3 le_address_line_3
, cfel.country legal_entity_country
, cfel.geography_name legal_entity_country_name
, cfel.town_or_city legal_entity_town_or_city
, cfel.region_1 le_region_1
, cfel.region_2 le_region_2
, cfel.region_3 le_region_3
, DECODE (SUBSTRB (raco_ship_party.person_last_name
, 1
, 50
)
, NULL, SUBSTRB (raco_ship_party.person_first_name
, 1
, 40
)
, SUBSTRB (raco_ship_party.person_last_name
, 1
, 50
)
|| ', '
|| SUBSTRB (raco_ship_party.person_first_name
, 1
, 40
)
) ship_to_contact_name
, arpt_sql_func_util.get_salesrep_name_number
(rcta.primary_salesrep_id
, 'NAME'
, rcta.org_id
) primary_salesrep_name
, bill_to.party_attribute3 customer_party_type
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_NATURE'
AND lookup_code = bill_to.party_attribute3
AND ROWNUM = 1) customer_party_type_meaning
, bill_to.party_attribute1 customer_document_type
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_DOCUMENT_TYPE'
AND lookup_code = bill_to.party_attribute1
AND ROWNUM = 1) customer_document_type_meaning
, bill_to.party_name customer_party_name
, bill_to.party_name customer_name
, bill_to.taxpayer_id customer_taxpayer_id
, bill_to.customer_taxpayer_vd
, bill_to.postal_code customer_postal_code
, bill_to.state customer_state
, bill_to.country customer_country_code
, bill_to.country_name customer_country
, bill_to.city customer_city
, bill_to.address1 customer_address1
, bill_to.address2 customer_address2
, bill_to.address3 customer_address3
, bill_to.address4 customer_address4
, bill_to.party_attribute4 customer_regimen_code
, (SELECT meaning
FROM fnd_lookup_values_vl
WHERE lookup_type LIKE 'CLL_F041_REGIMEN'
AND lookup_code = bill_to.party_attribute4
AND ROWNUM = 1) customer_regimen_meaning
, bill_to.person_first_name cust_first_name
, bill_to.person_last_name cust_last_name
, bill_to.person_middle_name cust_person_middle_name
, bill_to.person_name_suffix cust_person_name_suffix
, bill_to.person_title cust_person_title
, rac_paying_party.party_name paying_customer_name
, TO_CHAR (rcta.ship_date_actual, 'YYYY-MM-DD') ship_date_actual

LAD Consulting Localizations 65


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
, TO_CHAR (rcta.ship_date_actual, 'HH24:MI:SS') ship_time_actual
, rcta.waybill_number ship_reference
-- , ship_to.taxpayer_id customer_taxpayer_id
-- , ship_to.customer_taxpayer_vd
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'POSTAL_CODE'),1,60) ship_to_postal_code
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'STATE'),1,60) ship_to_state
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'COUNTRY'),1,60) ship_to_country_code
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'COUNTRY_NAME'),1,360) ship_to_country
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'CITY'),1,60) ship_to_city
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'ADDRESS1'),1,240) raa_ship_to_address1
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'ADDRESS2'),1,240) raa_ship_to_address2
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'ADDRESS3'),1,240) raa_ship_to_address3
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'ADDRESS4'),1,240) raa_ship_to_address4
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'FT_TO_COUNTRY_CODE'),1,80) ft_ship_to_country_code
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'TAXPAYER_ID'),1,20) delivery_taxpayer_id
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'CUSTOMER_TAXPAYER_VD'),1,150) delivery_taxpayer_vd
, ofv.freight_code delivery_freight_code
, whs_to.party_name delivery_party_name
, whs_to.party_attribute1 delivery_party_document_type
, whs_to.address1 carrier_address1
, whs_to.address2 carrier_address2
, whs_to.address3 carrier_address3
, whs_to.address4 carrier_address4
, whs_to.postal_code carrier_postal_code
, whs_to.state carrier_state
, whs_to.country carrier_country_code
, whs_to.country_name carrier_country
, whs_to.city carrier_city
, whs_to.person_first_name carrier_contact_first_name
, whs_to.person_last_name carrier_contact_last_name
, whs_to.person_middle_name carrier_person_middle_name
, whs_to.person_name_suffix carrier_person_name_suffix
, whs_to.person_title carrier_person_title
, cfel.country ship_country_from
, ofv.description special_term
, rcta.fob_point incoterm
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_location_info(rcta.ship_to_customer_id,
rcta.ship_to_site_use_id, 'CUSTOMER_LOCATION'),1,40) ship_to_location
, cfarm.attribute1 pay_method_type
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_NET_AMOUNT'),1,15) total_net_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_EXCLUDED_AMOUNT'),1,15) total_excluded_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_EXEMPT_AMOUNT'),1,15) total_exempt_amount

LAD Consulting Localizations 66


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_TAXABLE_AMOUNT'),1,15) total_taxable_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_TAX_AMOUNT'),1,15) total_tax_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'DISCOUNT_TOTAL_LINE_AMOUNT'),1,15) discount_total_amount
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TOTAL_AMOUNT_RECEIVABLE'),1,15) amount_receivable
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'APPLY_DATE'),1,15) apply_date
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'AMOUNT_DUE_ORIGINAL'),1,15) amount_due_original
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'AMOUNT_APPLIED'),1,15) amount_applied
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'AMOUNT_LINE_ITEMS_ORIGINAL'),1,15) amount_line_items_original
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'TAX_ORIGINAL'),1,15) tax_original
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'FREIGHT_ORIGINAL'),1,15) freight_original
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'AMOUNT_ADJUSTED'),1,15) amount_adjusted
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'RECEIPT_NUMBER'),1,15) receipt_number
,
SUBSTR(cll_f043_efd_doctype_reqs_pkg.get_invoice_total_amount_info(rcta.customer_trx_id,
'SALES_ORDER'),1,15) sales_order
, rcta.cust_trx_type_id
, rcta.legal_entity_id
, rcta.org_id
, rcta.status_trx
, rctta.NAME cust_trx_type_name
, rctta.description cust_trx_type_desc
, rctta.TYPE cust_trx_type
, rcta.set_of_books_id
, rcta.batch_source_id
, rbsa.NAME batch_source_name
, rbsa.description batch_source_desc
, rcta.invoice_currency_code
, gsob.currency_code functional_currency_code
, cfel.legal_entity_currency_code
, rctlgda.amount invoice_currency_amount
, rctlgda.acctd_amount invoice_funcl_curr_amount
, rctlgda.gl_date
, rcta.sold_to_customer_id
, rcta.bill_to_customer_id
, rcta.ship_to_customer_id
, rcta.bill_to_site_use_id
, rcta.ship_to_site_use_id
, rtv.term_id
, rtv.NAME term_name
, rtv.description term_description
, rcta.comments
, rcta.internal_notes
, rcta.previous_customer_trx_id
, rcta.reason_code
, rcta.exchange_rate_type
, rcta.exchange_date
, rcta.exchange_rate
, rcta.fob_point
, rcta.waybill_number

LAD Consulting Localizations 67


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
, rcta.receipt_method_id
, rcta.creation_date trx_creation_date
, rcta.created_by trx_created_by
, rcta.last_update_date trx_last_update_date
, rcta.last_updated_by trx_last_updated_by
, rcta.last_update_login trx_last_update_login
, rcta.attribute_category ra_cust_attribute_category
, rcta.attribute1 ra_cust_attribute1
, rcta.attribute2 ra_cust_attribute2
, rcta.attribute3 ra_cust_attribute3
, rcta.attribute4 ra_cust_attribute4
, rcta.attribute5 ra_cust_attribute5
, rcta.attribute6 ra_cust_attribute6
, rcta.attribute7 ra_cust_attribute7
, rcta.attribute8 ra_cust_attribute8
, rcta.attribute10 ra_cust_attribute10
, rcta.attribute11 ra_cust_attribute11
, rcta.attribute12 ra_cust_attribute12
, rcta.attribute13 ra_cust_attribute13
, rcta.attribute14 ra_cust_attribute14
, rcta.attribute15 ra_cust_attribute15
, rcta.global_attribute_category ra_cust_global_attr_category
, rcta.global_attribute1 ra_cust_global_attribute1
, rcta.global_attribute2 ra_cust_global_attribute2
, rcta.global_attribute3 ra_cust_global_attribute3
, rcta.global_attribute4 ra_cust_global_attribute4
, rcta.global_attribute5 ra_cust_global_attribute5
, rcta.global_attribute6 ra_cust_global_attribute6
, rcta.global_attribute7 ra_cust_global_attribute7
, rcta.global_attribute8 ra_cust_global_attribute8
, rcta.global_attribute10 ra_cust_global_attribute10
, rcta.global_attribute11 ra_cust_global_attribute11
, rcta.global_attribute12 ra_cust_global_attribute12
, rcta.global_attribute13 ra_cust_global_attribute13
, rcta.global_attribute14 ra_cust_global_attribute14
, rcta.global_attribute15 ra_cust_global_attribute15
, rcta.global_attribute16 ra_cust_global_attribute16
, rcta.global_attribute17 ra_cust_global_attribute17
, rcta.global_attribute18 ra_cust_global_attribute18
, rcta.global_attribute19 ra_cust_global_attribute19
, rcta.global_attribute20 ra_cust_global_attribute20
, rcta.global_attribute21 ra_cust_global_attribute21
, rcta.global_attribute22 ra_cust_global_attribute22
, rcta.global_attribute23 ra_cust_global_attribute23
, rcta.global_attribute24 ra_cust_global_attribute24
, rcta.global_attribute25 ra_cust_global_attribute25
, rcta.global_attribute26 ra_cust_global_attribute26
, rcta.global_attribute27 ra_cust_global_attribute27
, rcta.global_attribute28 ra_cust_global_attribute28
, rcta.global_attribute29 ra_cust_global_attribute29
, rcta.global_attribute30 ra_cust_global_attribute30
, rctta.attribute_category ra_cust_trx_attribute_category
, rctta.attribute1 ra_cust_trx_attribute1
, rctta.attribute2 ra_cust_trx_attribute2
, rctta.attribute3 ra_cust_trx_attribute3
, rctta.attribute4 ra_cust_trx_attribute4
, rctta.attribute5 ra_cust_trx_attribute5
, rctta.attribute6 ra_cust_trx_attribute6
, rctta.attribute7 ra_cust_trx_attribute7
, rctta.attribute8 ra_cust_trx_attribute8
, rctta.attribute10 ra_cust_trx_attribute10
, rctta.attribute11 ra_cust_trx_attribute11
, rctta.attribute12 ra_cust_trx_attribute12
, rctta.attribute13 ra_cust_trx_attribute13
, rctta.attribute14 ra_cust_trx_attribute14
, rctta.attribute15 ra_cust_trx_attribute15
, rbsa.attribute_category ra_batc_attribute_category
, rbsa.attribute1 ra_batc_attribute1
, rbsa.attribute2 ra_batc_attribute2
, rbsa.attribute3 ra_batc_attribute3
, rbsa.attribute4 ra_batc_attribute4
, rbsa.attribute5 ra_batc_attribute5
, rbsa.attribute6 ra_batc_attribute6

LAD Consulting Localizations 68


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
,
rbsa.attribute7 ra_batc_attribute7
,
rbsa.attribute8 ra_batc_attribute8
,
rbsa.attribute10 ra_batc_attribute10
,
rbsa.attribute11 ra_batc_attribute11
,
rbsa.attribute12 ra_batc_attribute12
,
rbsa.attribute13 ra_batc_attribute13
,
rbsa.attribute14 ra_batc_attribute14
,
rbsa.attribute15 ra_batc_attribute15
FROM ra_cust_trx_line_gl_dist_all rctlgda
, ra_customer_trx_all rcta
, ra_cust_trx_types_all rctta
, ra_batch_sources_all rbsa
, gl_ledgers gsob
, cll_f043_ra_batch_sources_ext cfr
, cll_f043_cust_trx_types_ext cfct
, cll_f043_efd_legal_entities_v cfel
, hz_cust_account_roles raco_ship
, hz_relationships raco_ship_rel
, hz_parties raco_ship_party
, hz_cust_accounts rac_paying
, hz_parties rac_paying_party
, cll_f043_efd_party_locations_v bill_to
, org_freight_vl ofv
, cll_f043_efd_party_locations_v whs_to
, cll_f043_ar_rec_methods_ext cfarm
, cll_f043_ar_customer_trx_ext cfac
, ra_terms_vl rtv
, cll_f043_ra_terms_ext cfrtv
WHERE rctlgda.account_class = 'REC'
AND rctlgda.latest_rec_flag = 'Y'
AND rcta.complete_flag = 'Y'
AND rcta.customer_trx_id = rctlgda.customer_trx_id
AND rcta.customer_trx_id = cfac.customer_trx_id(+)
AND rcta.cust_trx_type_id = rctta.cust_trx_type_id
AND rcta.batch_source_id = rbsa.batch_source_id
AND rcta.org_id = rbsa.org_id
AND rcta.org_id = rctta.org_id
AND rcta.set_of_books_id = gsob.ledger_id
AND rbsa.batch_source_id = cfr.batch_source_id
AND rbsa.org_id = cfr.org_id
AND rctta.TYPE = 'INV' --Solo facturas
--La extension de source se marca que factura deben ser electronica
AND cfr.attribute7 = 'Y'
AND rctta.cust_trx_type_id = cfct.cust_trx_type_id(+)
AND rctta.org_id = cfct.org_id(+)
AND cfel.legal_entity_id = rcta.legal_entity_id
AND rcta.ship_to_contact_id = raco_ship.cust_account_role_id(+)
AND raco_ship.party_id = raco_ship_rel.party_id(+)
AND raco_ship_rel.subject_table_name(+) = 'HZ_PARTIES'
AND raco_ship_rel.object_table_name(+) = 'HZ_PARTIES'
AND raco_ship_rel.directional_flag(+) = 'F'
AND raco_ship.role_type(+) = 'CONTACT'
AND raco_ship_rel.subject_id = raco_ship_party.party_id(+)
AND rcta.bill_to_customer_id = bill_to.customer_id
AND rcta.bill_to_site_use_id = bill_to.site_use_id
AND rcta.paying_customer_id = rac_paying.cust_account_id(+)
AND rac_paying.party_id = rac_paying_party.party_id(+)
AND ofv.party_id = whs_to.party_id(+)
AND rcta.ship_via = ofv.freight_code(+)
AND rcta.org_id = ofv.organization_id(+)
AND rcta.term_id = rtv.term_id(+)
AND rcta.term_id = cfrtv.term_id(+)
AND rcta.receipt_method_id = cfarm.receipt_method_id(+)
AND cll_f043_efd_doctype_reqs_pkg.set_null_total_attinfo
(rcta.customer_trx_id) =
rcta.customer_trx_id
/

LAD Consulting Localizations 69


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_EFD_AR_INV_LINES_V
Name: cll_f043_efd_ar_inv_lines_v.xdf

Columns description

Name Type
CUSTOMER_TRX_ID NULL NUMBER
CUSTOMER_TRX_LINE_ID NULL NUMBER
LINE_NUMBER NULL NUMBER
INVENTORY_ITEM_ID NULL NUMBER
ITEM_CODE NULL VARCHAR2(240)
LINE_ITEM_DESCRIPTION NULL VARCHAR2(240)
LINE_UOM_CODE NULL VARCHAR2(240)
QUANTITY_INVOICED NULL NUMBER
QUANTITY_CREDITED NULL NUMBER
QUANTITY NULL NUMBER
UNIT_SELLING_PRICE NULL NUMBER
ITEM_AMOUNT NULL NUMBER
TOTAL_LINE_AMOUNT NULL NUMBER
TOTAL_LINE_FUNCT_CURR_AMT NULL NUMBER
DISCOUNT_GLOBAL_AMOUNT NULL NUMBER
DISCOUNT_LINE_AMOUNT NULL NUMBER
DISCOUNT_PARENT_TRX_ID NULL NUMBER
DISCOUNT_PARENT_TRX_LINE_ID NULL NUMBER

CREATE OR REPLACE VIEW CLL_F043_EFD_AR_INV_LINES_V


(CUSTOMER_TRX_ID, CUSTOMER_TRX_LINE_ID, LINE_NUMBER, INVENTORY_ITEM_ID, ITEM_CODE,
LINE_ITEM_DESCRIPTION, LINE_UOM_CODE, QUANTITY_INVOICED, QUANTITY_CREDITED, QUANTITY,
UNIT_SELLING_PRICE, ITEM_AMOUNT, TOTAL_LINE_AMOUNT, TOTAL_LINE_FUNCT_CURR_AMT,
DISCOUNT_GLOBAL_AMOUNT,
DISCOUNT_LINE_AMOUNT, DISCOUNT_PARENT_TRX_ID, DISCOUNT_PARENT_TRX_LINE_ID)
AS
SELECT cfectlv.customer_trx_id
, cfectlv.customer_trx_line_id
, cfectlv.line_number
, cfectlv.inventory_item_id
, cll_f258_efd_utility_pkg.get_inventory_item_info
(cfectlv.organization_id
, cfectlv.inventory_item_id
, cfectlv.line_item_description
, cfectlv.line_uom_code
, 'ITEM_CODE'
) item_code
, cll_f258_efd_utility_pkg.get_inventory_item_info
(cfectlv.organization_id
, cfectlv.inventory_item_id
, cfectlv.line_item_description
, cfectlv.line_uom_code
, 'ITEM_DESCRIPTION'
) line_item_description
, cll_f258_efd_utility_pkg.get_inventory_item_info
(cfectlv.organization_id
, cfectlv.inventory_item_id
, cfectlv.line_item_description
, cfectlv.line_uom_code
, 'ITEM_PRIMARY_UOM_CODE'
) line_uom_code
, cfectlv.quantity_invoiced
, cfectlv.quantity_credited
, cfectlv.quantity
, cfectlv.unit_selling_price
, cfectlv.item_amount
, cfectlv.total_line_amount
, cfectlv.total_line_funct_curr_amt
--Discount
, cll_f258_efd_utility_pkg.get_discount_info
LAD Consulting Localizations 70
Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
(cfectlv.customer_trx_id
, cfectlv.customer_trx_line_id
, cfectlv.item_amount
, 'DISCOUNT_GLOBAL_AMOUNT'
) discount_global_amount
, cll_f258_efd_utility_pkg.get_discount_info
(cfectlv.customer_trx_id
, cfectlv.customer_trx_line_id
, cfectlv.item_amount
, 'DISCOUNT_LINE_AMOUNT'
) discount_line_amount
, cll_f258_efd_utility_pkg.get_discount_info
(cfectlv.customer_trx_id
, cfectlv.customer_trx_line_id
, cfectlv.item_amount
, 'DISCOUNT_PARENT_TRX_ID'
) discount_parent_trx_id
, cll_f258_efd_utility_pkg.get_discount_info
(cfectlv.customer_trx_id
, cfectlv.customer_trx_line_id
, cfectlv.item_amount
, 'DISCOUNT_PARENT_TRX_LINE_ID'
) discount_parent_trx_line_id
FROM cll_f043_efd_cust_trx_lines_v cfectlv
WHERE cll_f043_efd_utility_pkg.set_null_attinfo
(cfectlv.customer_trx_line_id) =
cfectlv.customer_trx_line_id

LAD Consulting Localizations 71


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_EFD_AR_TRAN_LINES_V
Name: cll_f043_efd_ar_tran_lines_v.xdf

Columns description

Name Type
CUSTOMER_TRX_ID NOT NULL NUMBER
CUSTOMER_TRX_LINE_ID NOT NULL NUMBER
LINE_NUMBER NOT NULL NUMBER
INVENTORY_ITEM_ID NULL NUMBER
ITEM_CODE NULL VARCHAR2(40)
LINE_UOM_CODE NULL VARCHAR2(3)
LINE_ITEM_DESCRIPTION NULL VARCHAR2(240)
QUANTITY_INVOICED NULL NUMBER
QUANTITY_CREDITED NULL NUMBER
QUANTITY NULL NUMBER
UNIT_SELLING_PRICE NULL NUMBER
ITEM_AMOUNT NULL NUMBER
TOTAL_LINE_AMOUNT NULL NUMBER
TOTAL_LINE_FUNCT_CURR_AMT NULL NUMBER
DISCOUNT_GLOBAL_AMOUNT NULL VARCHAR2(4000)
DISCOUNT_LINE_AMOUNT NULL VARCHAR2(4000)
DISCOUNT_REFERENCE NULL VARCHAR2(4000)
SET_OF_BOOKS_ID NOT NULL NUMBER
SALES_ORDER NULL VARCHAR2(50)
SALES_ORDER_REVISION NULL NUMBER
SALES_ORDER_LINE NULL VARCHAR2(30)
SALES_ORDER_DATE NULL DATE
LINE_TYPE NOT NULL VARCHAR2(20)
EXTENDED_AMOUNT NOT NULL NUMBER
REVENUE_AMOUNT NULL NUMBER
LINK_TO_CUST_TRX_LINE_ID NULL NUMBER
VAT_TAX_ID NULL NUMBER
REASON_CODE NULL VARCHAR2(30)
TAXABLE_AMOUNT NULL NUMBER
AMOUNT_INCLUDES_TAX_FLAG NULL VARCHAR2(1)
MEMO_LINE_ID NULL NUMBER
GLOBAL_ATTRIBUTE4 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE5 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE6 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE7 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE8 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE9 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE10 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE11 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE12 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE3 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE13 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE14 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE15 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE16 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE17 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE18 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE19 NULL VARCHAR2(150)
GLOBAL_ATTRIBUTE20 NULL VARCHAR2(150)
ORGANIZATION_ID NULL NUMBER
CREATION_DATE NOT NULL DATE

LAD Consulting Localizations 72


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CREATED_BY NOT NULL NUMBER
LAST_UPDATE_DATE NOT NULL DATE
LAST_UPDATED_BY NOT NULL NUMBER
LAST_UPDATE_LOGIN NULL NUMBER

CREATE OR REPLACE VIEW CLL_F043_EFD_AR_TRAN_LINES_V


(CUSTOMER_TRX_ID, CUSTOMER_TRX_LINE_ID, LINE_NUMBER, INVENTORY_ITEM_ID, ITEM_CODE,
LINE_UOM_CODE, LINE_ITEM_DESCRIPTION, QUANTITY_INVOICED, QUANTITY_CREDITED, QUANTITY,
UNIT_SELLING_PRICE, ITEM_AMOUNT, TOTAL_LINE_AMOUNT, TOTAL_LINE_FUNCT_CURR_AMT,
DISCOUNT_GLOBAL_AMOUNT,
DISCOUNT_LINE_AMOUNT, DISCOUNT_REFERENCE, SET_OF_BOOKS_ID, SALES_ORDER,
SALES_ORDER_REVISION,
SALES_ORDER_LINE, SALES_ORDER_DATE, LINE_TYPE, EXTENDED_AMOUNT, REVENUE_AMOUNT,
LINK_TO_CUST_TRX_LINE_ID, VAT_TAX_ID, REASON_CODE, TAXABLE_AMOUNT, AMOUNT_INCLUDES_TAX_FLAG,
MEMO_LINE_ID, GLOBAL_ATTRIBUTE4, GLOBAL_ATTRIBUTE5, GLOBAL_ATTRIBUTE6, GLOBAL_ATTRIBUTE7,
GLOBAL_ATTRIBUTE8, GLOBAL_ATTRIBUTE9, GLOBAL_ATTRIBUTE10, GLOBAL_ATTRIBUTE11,
GLOBAL_ATTRIBUTE12,
GLOBAL_ATTRIBUTE3, GLOBAL_ATTRIBUTE13, GLOBAL_ATTRIBUTE14, GLOBAL_ATTRIBUTE15,
GLOBAL_ATTRIBUTE16,
GLOBAL_ATTRIBUTE17, GLOBAL_ATTRIBUTE18, GLOBAL_ATTRIBUTE19, GLOBAL_ATTRIBUTE20,
ORGANIZATION_ID,
CREATION_DATE, CREATED_BY, LAST_UPDATE_DATE, LAST_UPDATED_BY, LAST_UPDATE_LOGIN)
AS
SELECT rctla.customer_trx_id
, rctla.customer_trx_line_id
, rctla.line_number
, rctla.inventory_item_id
, (SELECT concatenated_segments
FROM mtl_system_items_b_kfv msibk
WHERE msibk.organization_id = rctla.warehouse_id
AND msibk.inventory_item_id = rctla.inventory_item_id
)
item_code
, rctla.uom_code line_uom_code
, rctla.description line_item_description
, rctla.quantity_invoiced
, rctla.quantity_credited
, NVL(rctla.quantity_credited, rctla.quantity_invoiced) quantity
, NVL(rctla.gross_unit_selling_price,rctla.unit_selling_price ) unit_selling_price
, NVL(rctla.gross_extended_amount,rctla.extended_amount) item_amount
, rctlgda.amount total_line_amount
, rctlgda.acctd_amount
total_line_funct_curr_amt
--Discount
, cll_f043_efd_utility_pkg.get_discount_info
( rctla.customer_trx_id
, rctla.customer_trx_line_id
, NVL(rctla.gross_extended_amount,rctla.extended_amount)
, 'DISCOUNT_GLOBAL_AMOUNT'
)
discount_global_amount
, cll_f043_efd_utility_pkg.get_discount_info
( rctla.customer_trx_id
, rctla.customer_trx_line_id
, NVL(rctla.gross_extended_amount,rctla.extended_amount)
, 'DISCOUNT_LINE_AMOUNT'
) discount_line_amount
, cll_f043_efd_utility_pkg.get_discount_info
( rctla.customer_trx_id
, rctla.customer_trx_line_id
, NVL(rctla.gross_extended_amount,rctla.extended_amount)
, 'DISCOUNT_REFERENCE'
) DISCOUNT_REFERENCE
, rctla.set_of_books_id
, rctla.sales_order
, rctla.sales_order_revision
, rctla.sales_order_line
, rctla.sales_order_date
, rctla.line_type
, rctla.extended_amount
, rctla.revenue_amount
, rctla.link_to_cust_trx_line_id

LAD Consulting Localizations 73


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
, rctla.vat_tax_id
, rctla.reason_code
, rctla.taxable_amount
, rctla.amount_includes_tax_flag
, rctla.memo_line_id
, rctla.global_attribute4
, rctla.global_attribute5
, rctla.global_attribute6
, rctla.global_attribute7
, rctla.global_attribute8
, rctla.global_attribute9
, rctla.global_attribute10
, rctla.global_attribute11
, rctla.global_attribute12
, rctla.global_attribute3
, rctla.global_attribute13
, rctla.global_attribute14
, rctla.global_attribute15
, rctla.global_attribute16
, rctla.global_attribute17
, rctla.global_attribute18
, rctla.global_attribute19
, rctla.global_attribute20
, rctla.warehouse_id organization_id
, rctla.creation_date
, rctla.created_by
, rctla.last_update_date
, rctla.last_updated_by
, rctla.last_update_login
FROM ra_customer_trx_lines_all rctla
, ra_cust_trx_line_gl_dist_all rctlgda
, ra_customer_trx_all rcta
, cll_f043_ra_batch_sources_ext cfr
WHERE rctla.line_type IN ('LINE','FREIGHT')
AND rctlgda.account_class IN ('REV','FREIGHT')
AND rctla.customer_trx_id = rctlgda.customer_trx_id
AND rcta.customer_trx_id = rctla.customer_trx_id
AND rcta.batch_source_id = cfr.batch_source_id
AND rcta.org_id = cfr.org_id
--La extension de source se marca que factura deben ser electronica
AND cfr.attribute7 = 'Y'
AND rcta.complete_flag = 'Y'
AND rctla.customer_trx_line_id = rctlgda.customer_trx_line_id
AND rcta.customer_trx_id = CLL_F043_EFD_UTILITY_PKG.set_null_attinfo(rcta.customer_trx_id
)

LAD Consulting Localizations 74


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_EFD_AR_TRAN_LIN_TAX_V
Name: cll_f043_efd_ar_tran_lin_tax_v.xdf

Columns description

Name Type
LEDGER_ID NULL NUMBER
LEGAL_ENTITY_ID NULL NUMBER
ORG_ID NULL NUMBER
APPLICATION_ID NULL NUMBER
ENTITY_CODE NULL VARCHAR2(30)
CUSTOMER_TRX_ID NULL NUMBER
TRX_LINE_ID NULL NUMBER
TRX_LINE_NUMBER NULL NUMBER
TAXABLE_AMT NULL NUMBER
TAX_AMT NULL NUMBER
TAXABLE_AMOUNT NULL NUMBER
TAX_AMOUNT NULL NUMBER
TAXABLE_AMT_TAX_CURR NULL NUMBER
TAX_AMT_TAX_CURR NULL NUMBER
TAX_RATE NULL NUMBER
EXCLUDED_AMOUNT NULL NUMBER
EXEMPT_AMOUNT NULL NUMBER
TAX_ID NULL NUMBER
TAX NULL VARCHAR2(30)
TAX_CODE NULL VARCHAR2(150)
TAX_CODE_MEANING NULL VARCHAR2(323)
AWT_CURRENCY_CODE NULL VARCHAR2(15)
AWT_TAX_AMOUNT NULL NUMBER
WITHHOLDING_BASE_AMOUNT NULL NUMBER
AWT_TAX_RATE NULL NUMBER
AWT_TAX_CODE NULL VARCHAR2(150)
TAX_TYPE_CODE NULL VARCHAR2(30)
TRX_LEVEL_TYPE NULL VARCHAR2(30)
TAX_LINE_ID NULL NUMBER
TAX_RATE_ID NULL NUMBER
TAX_CURRENCY_CODE NULL VARCHAR2(15)
TAX_RATE_CODE NULL VARCHAR2(50)
TAX_REGIME_CODE NULL VARCHAR2(30)
TAX_STATUS_CODE NULL VARCHAR2(30)
TAX_CLASS NULL VARCHAR2(30)

CREATE OR REPLACE VIEW CLL_F043_EFD_AR_TRAN_LIN_TAX_V


(LEDGER_ID, LEGAL_ENTITY_ID, ORG_ID, APPLICATION_ID, ENTITY_CODE,
CUSTOMER_TRX_ID, TRX_LINE_ID, TRX_LINE_NUMBER, TAXABLE_AMT, TAX_AMT,
TAXABLE_AMOUNT, TAX_AMOUNT, TAXABLE_AMT_TAX_CURR, TAX_AMT_TAX_CURR, TAX_RATE,
EXCLUDED_AMOUNT, EXEMPT_AMOUNT, TAX_ID, TAX, TAX_CODE,
TAX_CODE_MEANING, AWT_CURRENCY_CODE, AWT_TAX_AMOUNT, WITHHOLDING_BASE_AMOUNT, AWT_TAX_RATE,
AWT_TAX_CODE, TAX_TYPE_CODE, TRX_LEVEL_TYPE, TAX_LINE_ID, TAX_RATE_ID,
TAX_CURRENCY_CODE, TAX_RATE_CODE, TAX_REGIME_CODE, TAX_STATUS_CODE, TAX_CLASS)
AS
SELECT zl.ledger_id
, zl.legal_entity_id
, zl.internal_organization_id org_id
, zl.application_id
, zl.entity_code
, zl.trx_id customer_trx_id
, zl.trx_line_id
, zl.trx_line_number
, zl.taxable_amt --Taxable amount in transaction currency
, zl.tax_amt --Tax amount in transaction currency

LAD Consulting Localizations 75


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
, DECODE (cll_vat.attribute1
, 'TAXABLE', NVL (zl.taxable_amt_funcl_curr, zl.taxable_amt)
, 0
) taxable_amount --Taxable amount in functional currency
, NVL (zl.tax_amt_funcl_curr, zl.tax_amt) tax_amount
--Tax amount in functional currency
, zl.taxable_amt_tax_curr --Taxable amount in tax currency
, zl.tax_amt_tax_curr --Tax amount in tax currency
, zl.tax_rate tax_rate
, DECODE (cll_vat.attribute1
, 'EXCLUDED', NVL(zl.taxable_amt_funcl_curr,zl.taxable_amt_tax_curr)
, 0) excluded_amount
, DECODE (cll_vat.attribute1
, 'EXEMPT', NVL(zl.taxable_amt_funcl_curr,zl.taxable_amt_tax_curr)
, 0
) exempt_amount --Taxable amount in functional currency
, zl.tax_id
, zrb.tax
, cll_vat.attribute2 tax_code
, (SELECT meaning
|| ' - '
|| description
FROM fnd_lookup_values_vl
WHERE lookup_type = 'CLL_F043_TAX_CLASS'
AND lookup_code = cll_vat.attribute2) tax_code_meaning
, NULL awt_currency_code
, NULL awt_tax_amount
, NULL withholding_base_amount
, NULL awt_tax_rate
, NULL awt_tax_code
, ztb.tax_type_code
, zl.trx_level_type
, zl.tax_line_id
, zl.tax_rate_id
, zl.trx_currency_code tax_currency_code
, zrb.tax_rate_code
, zrb.tax_regime_code
, zrb.tax_status_code
, zrb.tax_class
FROM zx_lines zl
, zx_rates_b zrb
, zx_taxes_b ztb
, cll_f043_ar_vat_tax_all_b_ext cll_vat
, ra_customer_trx_all rcta
, cll_f043_ra_batch_sources_ext cfr
WHERE zl.tax_rate_id = zrb.tax_rate_id
AND zrb.tax = ztb.tax
AND ztb.tax_regime_code = zrb.tax_regime_code
AND ztb.source_tax_flag = 'Y'
AND zl.entity_code = 'TRANSACTIONS'
AND zl.application_id = 222
AND zl.tax = 'VAT'
AND rcta.customer_trx_id = zl.trx_id
AND rcta.batch_source_id = cfr.batch_source_id
AND rcta.org_id = cfr.org_id
--La extension de source se marca que factura deben ser electronica
AND cfr.attribute7 = 'Y'
AND rcta.complete_flag = 'Y'
AND cll_vat.vat_tax_id = zl.tax_rate_id
AND ( (zl.cancel_flag IS NULL)
OR (zl.cancel_flag = 'N'))
AND NVL (zl.applied_from_event_class_code, '-1') <>
'PREPAYMENT INVOICES'
AND cll_vat.attribute1 IN ('EXCLUDED', 'EXEMPT', 'TAXABLE')
AND cll_vat.attribute2 IN ('01', '02')
AND rcta.customer_trx_id =
cll_f043_efd_utility_pkg.set_null_attinfo (rcta.customer_trx_id)
UNION ALL
SELECT zl.ledger_id
, zl.legal_entity_id
, zl.internal_organization_id org_id
, zl.application_id
, zl.entity_code

LAD Consulting Localizations 76


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
,
zl.trx_id
,
zl.trx_line_id
,
zl.trx_line_number
,
zl.taxable_amt --Taxable amount in transaction currency
,
zl.tax_amt --Tax amount in transaction currency
,
NULL taxable_amt_funcl_curr --Taxable amount in functional currency
,
NULL tax_amt_funcl_curr --Tax amount in functional currency
,
zl.taxable_amt_tax_curr --Taxable amount in tax currency
,
zl.tax_amt_tax_curr --Tax amount in tax currency
,
zl.tax_rate
,
0 excluded_amount
,
0 exempt_amount
,
zl.tax_id
,
zrb.tax
,
NULL tax_code
,
NULL tax_code_meaning
,
zl.trx_currency_code awt_currency_code
,
NVL (zl.tax_amt_funcl_curr, zl.tax_amt) awt_tax_amount
,
NVL (zl.taxable_amt_funcl_curr, zl.taxable_amt)
withholding_base_amount
, NVL (zl.tax_rate, 0) awt_tax_rate
, cll_reten.attribute1 awt_tax_code
, ztb.tax_type_code
, zl.trx_level_type
, zl.tax_line_id
, zl.tax_rate_id
, zl.trx_currency_code
, zrb.tax_rate_code
, zrb.tax_regime_code
, zrb.tax_status_code
, zrb.tax_class
FROM zx_lines zl
, zx_rates_b zrb
, zx_taxes_b ztb
, jl_zz_ar_tx_groups_all tgr
, jl_zz_ar_tx_categ_all txc
, cll_f043_jl_zz_ar_tx_grps_ext cll_reten
, ra_customer_trx_all rcta
, cll_f043_ra_batch_sources_ext cfr
WHERE zl.tax_rate_id = zrb.tax_rate_id
AND zrb.tax = ztb.tax
AND ztb.tax_regime_code = zrb.tax_regime_code
AND ztb.source_tax_flag = 'Y'
AND tgr.tax_category_id = txc.tax_category_id
AND tgr.org_id = txc.org_id
AND zl.entity_code = 'TRANSACTIONS'
AND zl.application_id = 222
AND zl.tax <> 'VAT'
AND txc.tax_category = zl.tax
AND tgr.tax_code = zl.tax_rate_code
AND tgr.tax_group_record_id = cll_reten.tax_group_record_id
AND rcta.customer_trx_id = zl.trx_id
AND rcta.batch_source_id = cfr.batch_source_id
AND rcta.org_id = cfr.org_id
--La extension de source se marca que factura deben ser electronica
AND cfr.attribute7 = 'Y'
AND rcta.complete_flag = 'Y'
AND cll_reten.attribute1 IN
('RETEICA', 'RETEIVA', 'RETERENTA', 'RETETIMBRE')
AND ( (zl.cancel_flag IS NULL)
OR (zl.cancel_flag = 'N'))
AND NVL (zl.applied_from_event_class_code, '-1') <>
'PREPAYMENT INVOICES'
AND rcta.customer_trx_id =
cll_f043_efd_utility_pkg.set_null_attinfo (rcta.customer_trx_id)
/

LAD Consulting Localizations 77


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLL_F043_EFD_LEGAL_ENTITIES_V
Name: cll_f043_efd_legal_entities_v.xdf

Columns description

Name Type
LEGAL_ENTITY_ID NOT NULL NUMBER
LEGAL_ENTITY_NAME NOT NULL NUMBER
LEGAL_ENTITY_IDENTIFIER NULL NUMBER
LEGAL_ENTITY_CURRENCY_CODE NULL NUMBER
LE_EFFECTIVE_FROM NULL VARCHAR2(30)
LE_EFFECTIVE_TO NULL NUMBER
REGISTRATION_NUMBER NOT NULL NUMBER
REG_EFFECTIVE_FROM NULL NUMBER
REG_EFFECTIVE_TO NULL NUMBER
ORGANIZATION_NAME NOT NULL NUMBER
ACTIVITY_CODE NULL NUMBER
SUB_ACTIVITY_CODE NULL NUMBER
TYPE_OF_COMPANY NULL NUMBER
LE_INFORMATION_CONTEXT NULL NUMBER
PARTY_ID NOT NULL NUMBER
LEGISLATIVE_CAT_CODE NOT NULL NUMBER
LOCATION_ID NULL NUMBER
ADDRESS_STYLE NULL NUMBER
ADDRESS_LINE_1 NULL VARCHAR2(30)
ADDRESS_LINE_2 NULL VARCHAR2(150)
ADDRESS_LINE_3 NULL VARCHAR2(323)
TOWN_OR_CITY NULL VARCHAR2(15)
REGION_1 NULL NUMBER
REGION_2 NULL NUMBER
REGION_3 NULL NUMBER
POSTAL_CODE NULL VARCHAR2(150)
GEOGRAPHY_ID NOT NULL VARCHAR2(30)
GEOGRAPHY_NAME NOT NULL VARCHAR2(30)
COUNTRY NULL NUMBER
ORGANIZATION_PROFILE_ID NOT NULL NUMBER
XLE_REG_ATTRIBUTE_CATEGORY NULL VARCHAR2(15)
XLE_REG_ATTRIBUTE1 NULL VARCHAR2(50)
XLE_REG_ATTRIBUTE2 NULL VARCHAR2(30)
XLE_REG_ATTRIBUTE3 NULL VARCHAR2(30)
XLE_REG_ATTRIBUTE4 NULL VARCHAR2(30)
XLE_REG_ATTRIBUTE5 NULL
XLE_REG_ATTRIBUTE6 NULL
XLE_REG_ATTRIBUTE7 NULL
XLE_REG_ATTRIBUTE8 NULL
XLE_REG_ATTRIBUTE10 NULL
XLE_REG_ATTRIBUTE11 NULL
XLE_REG_ATTRIBUTE12 NULL
XLE_REG_ATTRIBUTE13 NULL
XLE_REG_ATTRIBUTE14 NULL
XLE_REG_ATTRIBUTE15 NULL

LAD Consulting Localizations 78


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CREATE OR REPLACE VIEW CLL_F043_EFD_LEGAL_ENTITIES_V
(LEGAL_ENTITY_ID, LEGAL_ENTITY_NAME, LEGAL_ENTITY_IDENTIFIER, LEGAL_ENTITY_CURRENCY_CODE,
LE_EFFECTIVE_FROM,
LE_EFFECTIVE_TO, REGISTRATION_NUMBER, REG_EFFECTIVE_FROM, REG_EFFECTIVE_TO,
ORGANIZATION_NAME,
ACTIVITY_CODE, SUB_ACTIVITY_CODE, TYPE_OF_COMPANY, LE_INFORMATION_CONTEXT, PARTY_ID,
LEGISLATIVE_CAT_CODE, LOCATION_ID, ADDRESS_STYLE, ADDRESS_LINE_1, ADDRESS_LINE_2,
ADDRESS_LINE_3, TOWN_OR_CITY, REGION_1, REGION_2, REGION_3,
POSTAL_CODE, GEOGRAPHY_ID, GEOGRAPHY_NAME, COUNTRY, ORGANIZATION_PROFILE_ID,
XLE_REG_ATTRIBUTE_CATEGORY, XLE_REG_ATTRIBUTE1, XLE_REG_ATTRIBUTE2, XLE_REG_ATTRIBUTE3,
XLE_REG_ATTRIBUTE4,
XLE_REG_ATTRIBUTE5, XLE_REG_ATTRIBUTE6, XLE_REG_ATTRIBUTE7, XLE_REG_ATTRIBUTE8,
XLE_REG_ATTRIBUTE10,
XLE_REG_ATTRIBUTE11, XLE_REG_ATTRIBUTE12, XLE_REG_ATTRIBUTE13, XLE_REG_ATTRIBUTE14,
XLE_REG_ATTRIBUTE15)
AS
SELECT xep.legal_entity_id
, xep.NAME legal_entity_name
, xep.legal_entity_identifier
, (SELECT gl.currency_code
FROM gl_ledger_config_details glcd
, gl_ledger_relationships glr
, gl_ledgers gl
WHERE gl.ledger_category_code = 'PRIMARY'
AND glcd.object_type_code = 'LEGAL_ENTITY'
AND glr.primary_ledger_id = gl.ledger_id
AND gl.ledger_category_code = glr.target_ledger_category_code
AND glcd.configuration_id = gl.configuration_id
AND glcd.object_id = xep.legal_entity_id
AND ROWNUM = 1) legal_entity_currency_code
, xep.effective_from le_effective_from
, xep.effective_to le_effective_to
, xr.registration_number
, xr.effective_from reg_effective_from
, xr.effective_to reg_effective_to
, hop.organization_name
, xep.activity_code
, xep.sub_activity_code
, xep.type_of_company
, xep.le_information_context
, xep.party_id
, xj.legislative_cat_code legislative_cat_code
, xr.location_id
, hl.style address_style
, hl.address_line_1
, hl.address_line_2
, hl.address_line_3
, hl.town_or_city
, hl.region_1
, hl.region_2
, hl.region_3
, hl.postal_code
, xep.geography_id
, hg.geography_name
, hl.country
, hop.organization_profile_id
, cfx.ATTRIBUTE_CATEGORY xle_reg_attribute_category
, cfx.attribute1 xle_reg_attribute1
, cfx.attribute2 xle_reg_attribute2
, cfx.attribute3 xle_reg_attribute3
, cfx.attribute4 xle_reg_attribute4
, cfx.attribute5 xle_reg_attribute5
, cfx.attribute6 xle_reg_attribute6
, cfx.attribute7 xle_reg_attribute7
, cfx.attribute8 xle_reg_attribute8
, cfx.attribute10 xle_reg_attribute10
, cfx.attribute11 xle_reg_attribute11
, cfx.attribute12 xle_reg_attribute12
, cfx.attribute13 xle_reg_attribute13
, cfx.attribute14 xle_reg_attribute14
, cfx.attribute15 xle_reg_attribute15
FROM xle_entity_profiles xep
, xle_registrations xr

LAD Consulting Localizations 79


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
, xle_jurisdictions_b xj
, hr_locations_all hl
, hz_geographies hg
, hz_organization_profiles hop
, cll_f041_xle_registrations_ext cfx
WHERE xep.transacting_entity_flag = 'Y'
AND xr.source_table = 'XLE_ENTITY_PROFILES'
AND xr.identifying_flag = 'Y'
AND xr.registration_id = cfx.registration_id(+)
AND xep.legal_entity_id = xr.source_id
AND xep.geography_id = hg.geography_id
AND xj.jurisdiction_id = xr.jurisdiction_id
AND hl.location_id = xr.location_id
AND xep.party_id = hop.party_id
AND hop.effective_end_date IS NULL
/

CLL_F043_EFD_PARTY_LOCATIONS_V
Name: cll_f043_efd_party_locations_v.xdf

Columns description

Name Type
PARTY_ID NOT NULL NUMBER
PARTY_NUMBER NOT NULL VARCHAR2(30)
PARTY_NAME NOT NULL VARCHAR2(360)
PERSON_FIRST_NAME NULL VARCHAR2(150)
PERSON_LAST_NAME NULL VARCHAR2(150)
PERSON_MIDDLE_NAME NULL VARCHAR2(60)
PERSON_NAME_SUFFIX NULL VARCHAR2(30)
PERSON_TITLE NULL VARCHAR2(60)
TAXPAYER_ID NULL VARCHAR2(20)
CUSTOMER_TAXPAYER_VD NULL VARCHAR2(150)
CATEGORY_CODE NULL VARCHAR2(30)
PARTY_SITE_ID NOT NULL NUMBER
PARTY_SITE_NUMBER NOT NULL VARCHAR2(30)
IDENTIFYING_ADDRESS_FLAG NOT NULL VARCHAR2(1)
STATUS NOT NULL VARCHAR2(1)
SITE_USE_ID NULL NUMBER
CUST_ACCT_SITE_ID NULL NUMBER
SITE_USE_CODE NULL VARCHAR2(30)
CUSTOMER_SITE_STATUS NULL VARCHAR2(1)
CUSTOMER_LOCATION NULL VARCHAR2(40)
BILL_TO_SITE_USE_ID NULL NUMBER
ORG_ID NULL NUMBER
CUSTOMER_ID NULL NUMBER
LOCATION_ID NOT NULL NUMBER
ADDRESS1 NOT NULL VARCHAR2(240)
ADDRESS2 NULL VARCHAR2(240)
ADDRESS3 NULL VARCHAR2(240)
ADDRESS4 NULL VARCHAR2(240)
CITY NULL VARCHAR2(60)
POSTAL_CODE NULL VARCHAR2(60)
STATE NULL VARCHAR2(60)
PROVINCE NULL VARCHAR2(60)
COUNTY NULL VARCHAR2(60)
COUNTRY NOT NULL VARCHAR2(60)
COUNTRY_NAME NULL VARCHAR2(360)

LAD Consulting Localizations 80


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
FT_TO_COUNTRY_CODE NULL VARCHAR2(80)
PARTY_ATTRIBUTE1 NULL VARCHAR2(150)
PARTY_ATTRIBUTE2 NULL VARCHAR2(150)
PARTY_ATTRIBUTE3 NULL VARCHAR2(150)
PARTY_ATTRIBUTE4 NULL VARCHAR2(150)
PARTY_ATTRIBUTE5 NULL VARCHAR2(150)
PARTY_ATTRIBUTE6 NULL VARCHAR2(150)
PARTY_ATTRIBUTE7 NULL VARCHAR2(150)
PARTY_ATTRIBUTE8 NULL VARCHAR2(150)
PARTY_ATTRIBUTE10 NULL VARCHAR2(150)
PARTY_ATTRIBUTE11 NULL VARCHAR2(150)
PARTY_ATTRIBUTE12 NULL VARCHAR2(150)
PARTY_ATTRIBUTE13 NULL VARCHAR2(150)
PARTY_ATTRIBUTE14 NULL VARCHAR2(150)
PARTY_ATTRIBUTE15 NULL VARCHAR2(150)
PARTY_ATTRIBUTE_CATEGORY NULL VARCHAR2(150)

CREATE OR REPLACE VIEW CLL_F043_EFD_PARTY_LOCATIONS_V


(PARTY_ID, PARTY_NUMBER, PARTY_NAME, PERSON_FIRST_NAME, PERSON_LAST_NAME,
PERSON_MIDDLE_NAME, PERSON_NAME_SUFFIX, PERSON_TITLE, TAXPAYER_ID, CUSTOMER_TAXPAYER_VD,
CATEGORY_CODE, PARTY_SITE_ID, PARTY_SITE_NUMBER, IDENTIFYING_ADDRESS_FLAG, STATUS,
SITE_USE_ID, CUST_ACCT_SITE_ID, SITE_USE_CODE, CUSTOMER_SITE_STATUS, CUSTOMER_LOCATION,
BILL_TO_SITE_USE_ID, ORG_ID, CUSTOMER_ID, LOCATION_ID, ADDRESS1,
ADDRESS2, ADDRESS3, ADDRESS4, CITY, POSTAL_CODE,
STATE, PROVINCE, COUNTY, COUNTRY, COUNTRY_NAME,
FT_TO_COUNTRY_CODE, PARTY_ATTRIBUTE1, PARTY_ATTRIBUTE2, PARTY_ATTRIBUTE3, PARTY_ATTRIBUTE4,
PARTY_ATTRIBUTE5, PARTY_ATTRIBUTE6, PARTY_ATTRIBUTE7, PARTY_ATTRIBUTE8, PARTY_ATTRIBUTE10,
PARTY_ATTRIBUTE11, PARTY_ATTRIBUTE12, PARTY_ATTRIBUTE13, PARTY_ATTRIBUTE14,
PARTY_ATTRIBUTE15,
PARTY_ATTRIBUTE_CATEGORY)
AS
SELECT hp.party_id
, hp.party_number
, hp.party_name
, hp.person_first_name
, hp.person_last_name
, hp.person_middle_name
, hp.person_name_suffix
, hp.person_title
, hp.jgzz_fiscal_code taxpayer_id
, hca.global_attribute12 customer_taxpayer_vd
, hp.category_code
, hps.party_site_id
, hps.party_site_number
, hps.identifying_address_flag
, hps.status
, hcsua.site_use_id
, hcsua.cust_acct_site_id
, hcsua.site_use_code
, hcsua.status customer_site_status
, hcsua.LOCATION customer_location
, hcsua.bill_to_site_use_id
, hcsua.org_id
, hcasa.cust_account_id customer_id
, hl.location_id
, hl.address1
, hl.address2
, hl.address3
, hl.address4
, hl.city
, hl.postal_code
, hl.state
, hl.province
, hl.county
, hl.country
, hg.geography_name country_name
, ft_ship.territory_short_name FT_TO_COUNTRY_CODE
, cfh.attribute1 party_attribute1
, cfh.attribute2 party_attribute2

LAD Consulting Localizations 81


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
, cfh.attribute3 party_attribute3
, cfh.attribute4 party_attribute4
, cfh.attribute5 party_attribute5
, cfh.attribute6 party_attribute6
, cfh.attribute7 party_attribute7
, cfh.attribute8 party_attribute8
, cfh.attribute10 party_attribute10
, cfh.attribute11 party_attribute11
, cfh.attribute12 party_attribute12
, cfh.attribute13 party_attribute13
, cfh.attribute14 party_attribute14
, cfh.attribute15 party_attribute15
, cfh.attribute_category party_attribute_category
FROM hz_parties hp
, hz_party_sites hps
, hz_locations hl
, hz_cust_site_uses_all hcsua
, hz_cust_acct_sites_all hcasa
, cll_f043_hz_parties_ext cfh
, hz_cust_accounts hca
, hz_geographies hg
, fnd_territories_vl ft_ship
WHERE hp.party_id = hps.party_id
AND hps.party_id = cfh.party_id(+)
AND hps.location_id = hl.location_id
AND hps.location_id = hl.location_id
AND hcasa.cust_acct_site_id = hcsua.cust_acct_site_id(+)
AND hca.cust_account_id(+) = hcasa.cust_account_id
AND hcasa.party_site_id(+) = hps.party_site_id
AND hg.geography_type(+) = 'COUNTRY'
AND TRUNC (SYSDATE) BETWEEN TRUNC (hg.start_date) AND TRUNC (hg.end_date)
AND hg.country_code(+) = hl.country
AND hl.country = ft_ship.territory_code(+)

CLL_F043_RA_CUSTOMER_TRX_V
Name: cll_f043_ra_customer_trx_v.xdf

Columns description

Name Type
CUSTOMER_TRX_ID NOT NULL NUMBER
TRX_NUMBER NOT NULL VARCHAR2(20)
LOOKUP_CODE NOT NULL VARCHAR2(30)
TRX_DATE NOT NULL DATE
PREFIX_INVOICE NULL VARCHAR2(150)
EXEMPT_AMOUNT NULL NUMBER
IVA16S_AMOUNT NULL NUMBER
IVA5_AMOUNT NULL NUMBER
IVA16C_AMOUNT NULL NUMBER
IVA8_AMOUNT NULL NUMBER
IVA4_AMOUNT NULL NUMBER
DISCOUNT_AMOUNT NULL NUMBER
PAYMENT_CODE NULL VARCHAR2(150)
TOTAL_AMOUNT_TAX NULL NUMBER

CREATE OR REPLACE VIEW CLL_F043_RA_CUSTOMER_TRX_V


(CUSTOMER_TRX_ID, TRX_NUMBER, LOOKUP_CODE, TRX_DATE, PREFIX_INVOICE,
EXEMPT_AMOUNT, IVA16S_AMOUNT, IVA5_AMOUNT, IVA16C_AMOUNT, IVA8_AMOUNT,
IVA4_AMOUNT, DISCOUNT_AMOUNT, PAYMENT_CODE, TOTAL_AMOUNT_TAX)
AS
SELECT trxall.customer_trx_id
,trxall.trx_number
,arl.lookup_code
,trxall.trx_date
,rbse.attribute1 prefix_invoice
,li.exempt_amount

LAD Consulting Localizations 82


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
,li.iva16s_amount
,li.iva5_amount
,li.iva16c_amount
,li.iva8_amount
,li.iva4_amount
,(SELECT NVL(aaa.earned_discount_taken,0)+NVL(aaa.unearned_discount_taken,0)
FROM ar_receivable_applications_all aaa
WHERE aaa.applied_customer_trx_id = trxall.customer_trx_id) discount_amount
,(SELECT ac.attribute1
FROM cll_f043_ar_cash_receipts_ext ac
,ar_receivable_applications aaa
WHERE aaa.cash_receipt_id = ac.cash_receipt_id
AND aaa.applied_customer_trx_id = trxall.customer_trx_id) payment_code
,(SELECT SUM(aaa.amount_applied)
FROM ar_receivable_applications aaa
WHERE aaa.applied_customer_trx_id = trxall.customer_trx_id) total_amount_tax
FROM ra_customer_trx trxall
,cll_f043_ra_batch_sources_ext rbse
,ra_cust_trx_types ctt
,ar_lookups arl
,(SELECT lbase.customer_trx_id
,lbase.org_id
,SUM(CASE
WHEN cllavt.attribute1='EXEMPT' THEN
NVL(t.taxable_amt_funcl_curr, t.taxable_amt)
ELSE 0
END) exempt_amount
,SUM(CASE
WHEN cllavt.attribute2 = 'GENERAL'
AND tax.tax_rate = 16 THEN
NVL(t.taxable_amt_funcl_curr, t.taxable_amt)
ELSE 0
END) iva16s_amount
,SUM(CASE
WHEN cllavt.attribute1='TAXABLE'
AND tax.tax_rate = 5 THEN
NVL(t.taxable_amt_funcl_curr, t.taxable_amt)
ELSE 0
END) iva5_amount
,SUM(CASE
WHEN cllavt.attribute2 = 'CONSUMPTION'
AND tax.tax_rate = 16 THEN
NVL(t.taxable_amt_funcl_curr, t.taxable_amt)
ELSE 0
END) iva16c_amount
,SUM(CASE
WHEN cllavt.attribute1='TAXABLE'
AND tax.tax_rate = 8 THEN
NVL(t.taxable_amt_funcl_curr, t.taxable_amt)
ELSE 0
END) iva8_amount
,SUM(CASE
WHEN cllavt.attribute1='TAXABLE'
AND tax.tax_rate = 4 THEN
NVL(lbase.extended_amount,0)
ELSE 0
END) iva4_amount
FROM ra_customer_trx_lines lbase
,ra_customer_trx_lines limp
,zx_lines t
,cll_f043_ar_vat_tax_all_b_ext cllavt
,ar_vat_tax tax
,jl_zz_ar_tx_categ cat
WHERE cllavt.vat_tax_id = tax.vat_tax_id
AND limp.vat_tax_id = tax.vat_tax_id
AND cat.tax_category_id = tax.global_attribute1
AND cat.org_id = tax.org_id
AND cat.tax_category='VATT'
AND lbase.customer_trx_line_id = limp.link_to_cust_trx_line_id
AND lbase.customer_trx_id = limp.customer_trx_id
AND t.trx_line_id = lbase.customer_trx_line_id
AND t.trx_id = lbase.customer_trx_id
AND limp.tax_line_id = t.tax_line_id

LAD Consulting Localizations 83


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
AND lbase.line_type IN ('LINE','FREIGHT')
AND limp.line_type = 'TAX'
GROUP BY lbase.customer_trx_id,lbase.org_id) li
WHERE trxall.batch_source_id = rbse.batch_source_id(+)
AND trxall.org_id = rbse.org_id(+)
AND li.customer_trx_id = trxall.customer_trx_id
AND li.org_id = trxall.org_id
AND trxall.complete_flag = 'Y'
AND trxall.cust_trx_type_id = ctt.cust_trx_type_id
AND trxall.org_id = ctt.org_id
AND arl.lookup_code = ctt.type
AND arl.lookup_type = 'INV/CM'
AND
ARPT_SQL_FUNC_UTIL.GET_POSTED_FLAG(trxall.customer_trx_id,ctt.post_to_gl,trxall.complete_flag
)='Y'

LAD Consulting Localizations 84


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
Modules Definition

This section describes each form, report, concurrent program and stored procedure in the Oracle
Receivables Colombian Localizations. Read this section to learn what each module does and when
Oracle Receivables Colombian Localizations uses them with each corresponding table.

Module Overview

This overview briefly describes each module with its functionality, type, category, used language and
the associated title with the corresponding program.

It also presents a detailed description of the module functionalities and you will be able to learn more
about each specific business activity.

The modules list is in alphabetical order, based on the internal names, that correspond to the Forms
names, Reports and Concurrent Programs registered in the Oracle Application Object Library
(AOL).

We classified the modules in the following categories:

Form Each Form type module corresponds to a simple screen that you can navigate using
a menu or a subroutine activated by an automatic zoom. The Forms type module is
indexed by its registration name in Oracle Application Object Library, that is
identified by the executable file name without the extension FMX.
Report Each Report type module corresponds to a program that generates a report. This
program can be a description file of an Oracle Report, a SQL report program, a
SQL Plus script or a C/ ProC program. The Report type module is indexed by the
concurrent program name, that is registered in the Oracle Application Object
Library. To propagate a concurrent program, the registered name is identified by
the executable file name without its extension. Each Report type corresponds to a
program that generates a report. This program can be a description file of an Oracle
Report, a SQL report program, a SQL Plus script or a C/ ProC program. To
propagate a concurrent program, the registered name is identified by the executable
file name without its extension.
Concurrent Each Concurrent Program type module corresponds to a simple program that can
Program be made by a C/ C Pro program, a SQL Plus script, a SQL Loader script or a SQL
Report program. This module is indexed by the name registered in the Oracle
Application Object Libary. To propagate a concurrent program, the registered
name is identified by the executable file name without its extension.
Stored Each module of the Stored Procedure type corresponds to a simple PL*SQL
Procedure program stored in the data base. This module is indexed by the name of the
PL*SQL creation file without its file extension.
Package Each module of the Package type corresponds to a union of procedures and
variables declaration.

LAD Consulting Localizations 85


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract
CLLCOIWR.rtf
Description: ICA Tax Self Withholding Report
Type: Template
Language: RTF
Name: CLLCOIWR.rtf

CLLCOIWR
Description: ICA Tax Self Withholding Report
Type: Data Template
Language: XML
Name: CLLCOIWR.xml

LAD Consulting Localizations 86


Receivables Colombian Localizations
Oracle Proprietary, Confidential Information - Use Restricted by Contract