DecimalTriggerGetByLTCO

Decimal Trigger Get By LT CO

Major Business Rule

Object Name: B1100017

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

The purpose of this business function is to get the  currency decimals and update the MATH_NUMERIC 
structure for all Math Numerics provided.  This is used mainly at the data base trigger level where it 

is run automatically when currency processing is on.


Setup Notes and Prerequisites


Special Logic




Technical Specification

Use ledger type to run the JDB API JDB_RetrieveF0025RowUsingLedgerType to retrieve the currency code 
from the ledger type record cached.


If the ledger type currency code is not blank, use this currency code to run the JDB API 

JDB_RetrieveF0013RowUsingCurrencyCode to retrieve the decimals for the currency from the cache. Run the API's 

jdeMathSetDecimals and jdeMathSetCurrCode to set the currency decimals and currency code for each of the 

15 DOMESTIC and 15 FOREIGN Math Numeric amounts in the data structure.


If the ledger type currency code is blank, use company to run the JDB API 

JDB_RetrieveF0010RowUsingCompanyNumber to retrieve the currency code from the company record cached.  Using the currency code 

from the company, run the JDB API JDB_RetrieveF0013RowUsingCurrencyCode to retrieve the decimals for the 

currency from the cache.  Run the API's jdeMathSetDecimals and jdeMathSetCurrCode to set the currency 

decimals and currency code for each of the 10 DOMESTIC Math Numeric amounts in the data structure.



Data Structure

D1100017 - Decimal Trigger Get By LT CO

Parameter NameData ItemData TypeReq/OptI/O/Both
szLedgerTypeLTcharNONENONE

A user defined code (09/LT) that specifies the type of ledger, such as AA (Actual Amounts), BA (Budget Amount), or AU (Actual Units). You 
can set up multiple, concurrent accounting ledgers within the general ledger to establish an audit trail for all transactions.

szCompanyCOcharNONENONE

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

mnDomesticAmount01AN01MATH_NUMERICNONENONE

A number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants table (F0010). The net amount posted is the total of all debits and credits, beginning with the first day of the period through the last 
day of the period.

mnDomesticAmount02AN02MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010).  The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount03AN03MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount04AN04MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount05AN05MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount06AN06MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount07AN07MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount08AN08MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount09AN09MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

mnDomesticAmount10AN10MATH_NUMERICNONENONE

Number that represents the net amount posted during the accounting period. The system uses the accounting periods from the Company 
Constants file (F0010). The net amount posted is the total of all debits and credits beginning with the first day of the period through the last day 
of the period.

Related Functions

None

Related Tables

F0010 Company Constants
F0013 Currency Codes
F0025 Ledger Type Master File