DecimalTriggerGetByAID

Decimal Trigger Get By AID

Major Business Rule

Object Name: B1100013

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 the Account ID to get the Acount's company.  Using company, run the JDB API 
JDB_RetrieveF0010RowUsingCompanyNumber retrieve the currency code from the company record cached. This currency code gets 

used in the jdeMathSetCurrCode as a parameter for the domestic amounts.


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 15 Math Numeric amounts in the data structure.



Data Structure

D1100013 - Decimal Trigger Get By AID

Parameter NameData ItemData TypeReq/OptI/O/Both
szAccountIDAIDcharNONENONE

A number that the system assigns to each general ledger account in the Account Master table (F0901) to uniquely identify it. 

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.

mnDomesticAmount11AN11MATH_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.

mnDomesticAmount12AN12MATH_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.

mnDomesticAmount13AN13MATH_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.

mnDomesticAmount14AN14MATH_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.

mnDomesticAmount15AN15MATH_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
F0901 Account Master