F4008RetrieveGLTaxAccount

F4008 - Get GL Tax Account

Minor Business Rule

Object Name: B0900080

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

This business function is used to retrieve the tax account for a tax record by using the tax 
rate/area, item and service/tax date.


Setup Notes and Prerequisites


Special Logic




Technical Specification

• Loop through the Tax Rate/Area file using the Tax Area and Item passed in as parameters until a 
record is found which the service/tax date is within the from and through effective dates.

• If a record is found then use the gl offset along with the company passed in and 'GT' for the item 
to call "ValidateAAIComletely".  This function will return all the account information.

• Load return parameters with the information passed back from "ValidateAAICompletely"   


Data Structure

D0900080 - F4008 - Retrieve GL Tax Account

Parameter NameData ItemData TypeReq/OptI/O/Both
szTaxAreaTXA1charNONENONE

Special Input Expected
This is the tax rate/area of the entry.

^

mnItemITMMATH_NUMERICNONENONE

Special Input Expected
This is the item of the tax rate/area record.

^

jdServicTaxDateDSVJJDEDATENONENONE

Special Input Expected
This is the service/tax date of the entry.  This will be used to find an effective tax rate/area.

^

szCompanyCOcharNONENONE

Special Input Expected
This is the company to be used to find the AAI for the tax account.  If the AAI isn't found for the 

company you entered then company '00000' will be used.

^

szAccountNumberANIcharNONENONE

Special Output Returned
This is the long account number for the tax account retrieved from the AAIs.

^

szAccountIdAIDcharNONENONE

Special Output Returned
This is the short account ID for the tax account retrieved from the AAIs.

^

cAccountModeAMcharNONENONE

Special Output Returned
This is the account mode of the tax account retrieved from the AAIs.

^

szBusinessUnitMCUcharNONENONE

Special Output Returned
This is the business unit of the tax account retrieved from the AAIs.

^

szObjectOBJcharNONENONE

Special Output Returned
This is the object account of the tax account retrieved from the AAIs.

^

szSubsidiarySUBcharNONENONE

Special Output Returned
This is the subsidiary of the tax account retrieved from the AAIs.

^

Related Functions

B0000055 ValidateAAICompletely

Related Tables

F4008 Tax Areas