DecimalTriggerGetByAIDCO

Decimal Trigger Get By AID CO

Major Business Rule

Object Name: B1100022

Parent DLL: CALLBSFN

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 the amount 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 retrieve the account's F0901 (Account Master) record.  If the account is a 
monetary account, save its currency code.  Otherwise, use the account's company to run the JDB API 

JDB_RetrieveF0010RowUsingCompanyNumber that retrieves the currency code from the cached company record.  The 

currency code gets used in the jdeUpdateMathCurrency as a parameter for the 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 jdeUpdateMathCurrency API to set the currency decimals and currency code for each of the 15 

Math Numeric amounts in the data structure.


Data Structure

D1100022 - Decimal Trigger Get By AID CO

Parameter NameData ItemData TypeReq/OptI/O/Both
szAccountIDAIDcharOPTNONE

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

mnAmount001AN01MATH_NUMERICOPTNONE

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.

mnAmount002AN02MATH_NUMERICOPTNONE

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.

mnAmount003AN03MATH_NUMERICOPTNONE

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.

mnAmount004AN04MATH_NUMERICOPTNONE

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.

mnAmount005AN05MATH_NUMERICOPTNONE

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.

mnAmount006AN06MATH_NUMERICOPTNONE

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.

mnAmount007AN07MATH_NUMERICOPTNONE

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.

mnAmount008AN08MATH_NUMERICOPTNONE

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.

mnAmount009AN09MATH_NUMERICOPTNONE

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.

mnAmount010AN10MATH_NUMERICOPTNONE

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.

mnAmount011AN11MATH_NUMERICOPTNONE

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.

mnAmount012AN12MATH_NUMERICOPTNONE

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.

mnAmount013AN13MATH_NUMERICOPTNONE

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.

mnAmount014AN14MATH_NUMERICOPTNONE

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.

mnAmount015AN15MATH_NUMERICOPTNONE

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

F0901 Account Master