ValidateTransactionCurrency

Validate Transaction Currency Code

Minor Business Rule

Object Name: B0000133

Parent DLL: CFIN

Location: Client/Server

Language: C

Functional Description

Purpose

This function validates the transaction currency code (passed in) is equal to the account currency 
code, equal to the company currency code or if the document type is 'JX'. 


Setup Notes and Prerequisites


Special Logic




Technical Specification


Processing

This function reads the Account Master file (F0901) using AID to retrieve company and account 
currency code.  The Company Constants file (F0010) is then read using CO to retrieve the company currency 

code.  If the account currency code is not blank, it determines if the transaction currency code (passed 

in) is not equal to the account currency code.  If not equal, checks if the transaction currency code 

is not equal to the company currency code or if the document type is not equal to 'JX'.  If either 

condition is met, error #0957 is returned. 

^

Data Structure

D0000133 - Validate Transaction Currency Code

Parameter NameData ItemData TypeReq/OptI/O/Both
szTransCurrencyCodeCRCDcharNONENONE

A code that identifies the currency of a transaction. 

szDocumentTypeDCTcharNONENONE

A user defined code (00/DT) that identifies the origin and purpose of the transaction.  PeopleSoft reserves several prefixes for document 
types, such as, vouchers, invoices, receipts, and timesheets. The reserved document type prefixes for codes are: P Accounts payable 
documents R Accounts receivable documents  T Time and Pay documents I Inventory documents  O Purchase order documents  S Sales order 
documents 

szAccountIdAIDcharNONENONE

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

Related Functions

None

Related Tables

F0010 Company Constants
F0901 Account Master