Functional Description
Purpose
This function is designed to locate table information using the key type, table key and a date for the following tables: Billing Rate/Markup Table
(F48096), Tax Derivation Table (F48127), GL Offset & Retainage Table (F48128). If records are found for the keys other named events will be called to find
table records using other key information in a more narrowed search.
Setup Notes and Prerequisites
Special Logic
Technical Specification
//Variables//
evt_jdBeginDate_EFTB
evt_jdEndDate_EFTE
evt_szTempString_DL01
evt_mnCount_MATH01
evt_cKeyWasSet_FLAG
evt_szTableKey_TKEY
evt_cCurrencyMode_CRRM
evt_szTaxExplanation_EXR1
evt_szTaxRateArea_TXA1
evt_szGLOffset_GLC
evt_szPaymentTerms_TRAR
evt_mnDocumentNumber_DOCO
evt_szWATaxDescription_VR02
evt_szWQExplanationRemark_EXR
//Init counter to level 1 (work order) and record found flag to 0 (not found yet).
evt_mnCount_MATH01 = '1'
bf_cRecordFoundFlag_FLAG = '0'
//Search for a billing rate table, starting with specific information (work order number), continuing through
//most general information (system defaults), until one is found.
//Note, some search levels will only be executed for certain files.
While bf_cRecordFoundFlag_FLAG = '0' AND evt_mnCount_MATH01 <= '9'
If evt_mnCount_MATH01 ='1'
evt_cKeyWasSet_FLAG = '1'
evt_cKeyWasSet_FLAG = '1'
evt_cKeyWasSet_FLAG = '1'
evt_cKeyWasSet_FLAG = '1'
evt_cKeyWasSet_FLAG = '1'
evt_cKeyWasSet_FLAG = '1'
evt_cKeyWasSet_FLAG = '1'
evt_cKeyWasSet_FLAG = '1'
evt_cKeyWasSet_FLAG = '1'
//If a key was set in the above logic, continue searching using that key, otherwise increment counter
//and move on to next level.
If evt_cKeyWasSet_FLAG = '1'
evt_szTempString_DL01 = [evt_mnCount_MATH01]
bf_cTypeOfKey_TYKY = [evt_szTempString_DL01]
If bf_szFileName_DL01 = 'F48126'
If bf_szFileName_DL01 = 'F48126'
Key Type = bf_cTypeOfKey_TYKY
Table Key = evt_szTableKey_TYKY
Table Effective Begin Date >= bf_jdWDTableDateBasis_TBDT
Table Effective End Date <= bf_jdWDTableDateBasis_TBDT
Table Effective End Date 'ae evt_jdEndDate_EFTE
// Passing back a record found flag stating whether the
//table was found, and the appropreiate markup info if it was found.
If File_IO_Status = SUCCESS
bf_cTypeOfKey_TYKY 'ae Key Type
evt_szTableKey_TYKY 'ae Table Key
bf_szWDCurrencyCodeFrom_CRCD 'ae Currency Code From
bf_szWDDocumentType_DCT'ae Document Type
evt_jdBeginDate_EFTB 'ae Begin Date
evt_jdEndDate_EFTE 'ae End Date
bf_mnWDEquipmentNumber_NUMB 'ae Equipment Number
bf_szWDObjectAccount_OBJ 'ae Object Account
bf_szWDSubsidiary_SUB 'ae Subsidiary
bf_cRecordFoundFlag_FLAG 'ac Found Flag
bf_cTableType_TBTY 'e0 Table Type
bf_szWVResultBusinessUnit_MCUN 'df Resulting Business Unit
bf_szWVResultObject_OBJN 'df Resulting Object Account
bf_szWVResultSubsidiary_SUBN 'df Resulting Subsidiary bf_szWVResultSubledger_SBLN
'df- Resulting Subledger
bf_szWVResultSubledgerType_SBLT 'df Resulting Subledger Type
If bf_szFileName_DL01 = 'F48096'
Curr Code = bf_szWDCurrencyCodeFrom_CRCD
Key Type = bf_cTypeOfKey_TYKY
Table Key = evt_szTableKey_TYKY
Table Effective Begin Date >= bf_jdWDTableDateBasis_TBDT
Table Effective End Date <= bf_jdWDTableDateBasis_TBDT
Table Effective End Date 'ae evt_jdEndDate_EFTE
If File_IO_Status = SUCCESS
// Passing back a record found flag stating whether the
//table was found, and the appropreiate markup info if it was found.
If bf_szWDDocumentType_DCT = 'T2' OR 'T4' OR 'T5' (Payroll)
bf_cGenTypeService_GTYP 'ae Generation Type Service
bf_cTypeOfKey_TYKY 'ae Key Type
evt_szTableKey_TYKY 'ae Table Key
bf_szWDCurrencyCodeFrom_CRCD 'ae Currency Code From
bf_szWDDocumentType_DCT'ae Document Type
evt_jdBeginDate_EFTB 'ae Begin Date
evt_jdEndDate_EFTE 'ae End Date
bf_szWDJobType_JBCD 'ae Job Type
bf_szWDJobStep_JBST 'ae Job Step
bf_mnWDPayType_PDBA 'ae Pay Type
bf_mnWDEmployeeNumber_AN8 'ae Employee Number
bf_szWDHomeBU_HMCU 'ae Home BU
bf_szWDCostPool_RP12 'ae Cost Pool
bf_szWDRateGroup_ACLO 'ae Rate Group
bf_mnWDEquipmentNumber_NUMB 'ae Equipment Number
bf_szWDEquipmentRateCode_ERC 'ae Equipment Rate Code
bf_szWDObjectAccount_OBJ 'ae Object Account
bf_szWDSubsidiary_SUB 'ae Subsidiary
bf_cWQCapFlag_CAP 'ac Cap Flag
bf_mnWQDistributionRate_BRT 'ac Rate Field
bf_mnWQPercentage_PERT 'ac Percentage
bf_mnWQAmountField_AA 'ac Amount Field
bf_szWQComponentCostRate_CCR 'ac Component Cost Rate
bf_szWQComponentRevenueRate_CRVR 'ac Component Revenue Rate
bf_cRecordFoundFlag_FLAG 'ac Found Flag
evt_szWQExplanationRemark_EXR 'ac Name Remark Explanation
// Passing back a record found flag stating whether the
//table was found, and the appropreiate markup info if it was found.
If bf_szWDDocumentType_DCT = 'TE' (Equipment)
bf_cGenTypeService_GTYP 'ae Generation Type Service
bf_cTypeOfKey_TYKY 'ae Key Type
evt_szTableKey_TYKY 'ae Table Key
bf_szWDCurrencyCodeFrom_CRCD 'ae Currency Code From
bf_szWDDocumentType_DCT'ae Document Type
evt_jdBeginDate_EFTB 'ae Begin Date
evt_jdEndDate_EFTE 'ae End Date
bf_szWDJobType_JBCD 'ae Job Type
bf_szWDJobStep_JBST 'ae Job Step
bf_mnWDPayType_PDBA 'ae Pay Type
bf_mnWDEmployeeNumber_AN8 'ae Employee Number
bf_szWDHomeBU_HMCU 'ae Home BU
bf_szWDCostPool_RP12 'ae Cost Pool
bf_szWDRateGroup_ACLO 'ae Rate Group
bf_mnWDEquipmentNumber_NUMB 'ae Equipment Number
bf_szWDEquipmentRateCode_ERC 'ae Equipment Rate Code
bf_szWDObjectAccount_OBJ 'ae Object Account
bf_szWDSubsidiary_SUB 'ae Subsidiary
bf_cWQCapFlag_CAP 'ac Cap Flag
bf_mnWQDistributionRate_BRT 'ac Rate Field
bf_mnWQPercentage_PERT 'ac Percentage
bf_mnWQAmountField_AA 'ac Amount Field
bf_szWQComponentCostRate_CCR 'ac Component Cost Rate
bf_szWQComponentRevenueRate_CRVR 'ac Component Revenue Rate
bf_cRecordFoundFlag_FLAG 'ac Found Flag
evt_szWQExplanationRemark_EXR 'ac Name Remark Explanation
//table lookup for Other. Passing back a record found flag stating whether the
//table was found, and the appropreiate markup info if it was found.
F48096 Get Billing Markup Table - Other (N48S0173)
bf_cGenTypeService_GTYP 'ae Generation Type Service
bf_cTypeOfKey_TYKY 'ae Key Type
evt_szTableKey_TYKY 'ae Table Key
bf_szWDCurrencyCodeFrom_CRCD 'ae Currency Code From
bf_szWDDocumentType_DCT'ae Document Type
evt_jdBeginDate_EFTE 'ae Begin Date
evt_jdEndDate_EFTB 'ae End Date
bf_szWDJobType_JBCD 'ae Job Type
bf_szWDJobStep_JBST 'ae Job Step
bf_mnWDPayType_PDBA 'ae Pay Type
bf_mnWDEmployeeNumber_AN8 'ae Employee Number
bf_szWDHomeBU_HMCU 'ae Home BU
bf_szWDCostPool_RP12 'ae Cost Pool
bf_szWDRateGroup_ACLO 'ae Rate Group
bf_mnWDEquipmentNumber_NUMB 'ae Equipment Number
bf_szWDEquipmentRateCode_ERC 'ae Equipment Rate Code
bf_szWDObjectAccount_OBJ 'ae Object Account
bf_szWDSubsidiary_SUB 'ae Subsidiary
bf_cWQCapFlag_CAP 'ac Cap Flag
bf_mnWQDistributionRate_BRT 'ac Rate Field
bf_mnWQPercentage_PERT 'ac Percentage
bf_mnWQAmountField_AA 'ac Amount Field
bf_szWQComponentCostRate_CCR 'ac Component Cost Rate
bf_szWQComponentRevenueRate_CRVR 'ac Component Rev Rate
bf_cRecordFoundFlag_FLAG 'ac Found Flag
evt_szWQExplanationRemark_EXR 'ac Name Remark Explanation
If evt_szWQExplanationRemark_EXR <>
If bf_szFileName_DL01 = 'F48127'
Table Key = evt_szTableKey_TYKY
D48S0180 - Get Table Information
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szFileName | DL01 | char | REQ | INPUT |
A user defined name or remark. | ||||
cGenerationTypeService | GTYP | char | OPT | INPUT |
A code that determines the batch types and markup rules for invoice, revenue, and component amounts. The system assigns the batch
| ||||
szCurrencyCodeFrom | CRCD | char | OPT | INPUT |
A code that identifies the currency of a transaction. | ||||
szDocumentType | DCT | char | OPT | INPUT |
A user defined code (00/DT) that identifies the origin and purpose of the transaction. PeopleSoft reserves several prefixes for document
| ||||
jdDateTableBasis | TBDT | JDEDATE | OPT | INPUT |
This date is used as the basis for comparison to the effective dates of the various tables used by the Service Billing system. This date is
| ||||
szSubledger | SBL | char | REQ | INPUT |
A code that identifies a detailed, auxiliary account within a general ledger account. A subledger can be an equipment item number or an
| ||||
cSubledgerType | SBLT | char | OPT | INPUT |
A user defined code (00/ST) that is used with the Subledger field to identify the subledger type and how the system performs subledger
| ||||
szWorkOrderClass | WR07 | char | REQ | INPUT |
A user defined code (00/W7) that indicates the service type for the work order. | ||||
mnContractNumber | DOCO | MATH_NUMERIC | OPT | INPUT |
A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry,
| ||||
mnParentContNumber | PCTN | MATH_NUMERIC | OPT | INPUT |
The parent contract number to which this particular contract is attached. | ||||
mnCustomerNumber | AN80 | MATH_NUMERIC | REQ | INPUT |
Everest Parent Data Item. | ||||
szBusinessUnit | MCU | char | REQ | INPUT |
An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit
| ||||
szJobClass | RP11 | char | REQ | INPUT |
Category code 11 associated with the Business Unit Master file (F0006). This is a user defined code (system 00, type 11) for use in flex
| ||||
szCompany | CO | char | OPT | INPUT |
A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company
| ||||
szJobType | JBCD | char | OPT | INPUT |
A user defined code (07/G) that defines the jobs within your organization. You can associate pay and benefit information with a job type and
| ||||
szJobStep | JBST | char | OPT | INPUT |
A user defined code (07/GS) that designates a specific level within a particular job type. The system uses this code in conjunction with job
| ||||
mnPayType | PDBA | MATH_NUMERIC | OPT | INPUT |
A code that defines the type of pay, deduction, benefit, or accrual.
Pay types are numbered from 1 to 999. Deductions and benefits are
| ||||
mnEmployeeNumber | AN8 | MATH_NUMERIC | OPT | INPUT |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
szHomeBU | HMCU | char | OPT | INPUT |
The number of the business unit in which the employee generally resides. | ||||
szCostPool | RP12 | char | OPT | INPUT |
Category code 12 associated with the Business Unit Master file (F0006). This is a user defined code (00/12) for use in flex account mapping
| ||||
szRateGroup | ACL0 | char | OPT | INPUT |
A user defined code (12/CO) that groups similar items for billing. If you are an Equipment Management client and you use Equipment
| ||||
mnEquipmentNumber | NUMB | MATH_NUMERIC | OPT | INPUT |
An 8-digit number that uniquely identifies an asset. | ||||
szEquipmentRateCode | ERC | char | OPT | INPUT |
A user defined code (00/RC) that indicates a billing rate, such as DY for daily, MO for monthly, and WK for weekly. You can set up multiple
| ||||
szObjectAccount | OBJ | char | OPT | INPUT |
The portion of a general ledger account that refers to the division of the Cost Code (for example, labor, materials, and equipment) into
| ||||
szSubsidiary | SUB | char | OPT | INPUT |
A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account. | ||||
cCapFlag | CAP | char | OPT | OUTPUT |
This flag indicates whether the associated amount is the override rate or the cap of the rate.
Values are:
blank Override Rate.
1 Cap of
| ||||
mnDistributionRate | BRT | MATH_NUMERIC | OPT | OUTPUT |
A rate that the system uses to mark up the revenue amount reflected in the billing of professional services such as draftsmen, engineers, or
| ||||
mnPercentage | PERT | MATH_NUMERIC | OPT | OUTPUT |
The percentage that you use to mark up the revenue amount reflected in the billing of professional services workers, such as draftsmen,
| ||||
mnAmountField | AA | MATH_NUMERIC | OPT | OUTPUT |
A number that identifies the amount that the system will add to the account balance of the associated account number. Enter credits with a
| ||||
szComponentCostRate | CCR | char | OPT | OUTPUT |
A code that identifies a component cost rate table to use for this entry in the Billing Rate / Mark up Table (F48096). The component table
| ||||
szComponentRevenueRate | CRVR | char | OPT | OUTPUT |
A code that identifies a component invoice or revenue table to use for this entry in the Billing Rate / Mark up Table (F48096). The
| ||||
szPaymentTermsAR | TRAR | char | OPT | BOTH |
A code that indicates the default payment terms for a customer. Payment terms determine the due date, discount amount, and discount due
| ||||
szGlOffsetRetention | RGLC | char | OPT | BOTH |
A code that designates the offset accounts for retainage, for example RETN or 1225. You set up the code as an automatic accounting
| ||||
mnPercntRetainage | PRET | MATH_NUMERIC | OPT | BOTH |
The retainage rate for the contract. The rate is a percentage that is expressed as a whole number. For example, you enter a retainage rate
| ||||
cRetainageControlFlag | RCTL | char | OPT | OUTPUT |
An option that determines whether the retainage amount is stored in the Accounts Receivable or General Accounting system and whether
| ||||
cCurrencyMode | CRRM | char | OPT | BOTH |
An option that specifies whether the system displays amounts in the domestic or foreign currency.
On
The system displays amounts in the
| ||||
cRecordFoundFlag | FLAG | char | OPT | OUTPUT |
Contains an indicator for the operation. | ||||
cTypeOfKey | FLAG | char | OPT | OUTPUT |
Contains an indicator for the operation. | ||||
szNameRemarkExplanation | EXR | char | OPT | BOTH |
A name or remark that describes the purpose for using an account or conveys any other information that the user wants about the
| ||||
szGLOffset | GLC | char | OPT | BOTH |
A code that determines the trade account that the system uses as the offset when you post invoices or vouchers. The system concatenates
| ||||
szTaxArea1 | TXA1 | char | OPT | BOTH |
A code that identifies a tax or geographic area that has common tax rates and tax authorities. The system validates the code you enter
| ||||
cTaxableOrGross | TOG | char | OPT | BOTH |
This field indicates to the system whether the marked up billing amount is a taxable amount or gross amount. The system then will have
| ||||
szTaxExplanationCode1 | EXR1 | char | OPT | BOTH |
A hard-coded user defined code (00/EX) that controls the algorithm that the system uses to calculate tax and G/L distribution amounts. The
| ||||
szCurrencyCodeTable | CRCD | char | OPT | OUTPUT |
A code that identifies the currency of a transaction. | ||||
szCurrencyCodeOrigin | CRCF | char | OPT | INPUT |
The currency code of the insured amount. | ||||
cTaxableYN | TX | char | OPT | BOTH |
A code that indicates whether the item is subject to sales tax when you purchase it. The system calculates tax on the item only if the supplier
| ||||
cAdhocFlag_EV01 | EV01 | char | OPT | INPUT |
An option that specifies the type of processing for an event. | ||||
szVertexTransactionType | VVTY | char | OPT | OUTPUT |
Vertex Sales and Use Tax transaction type. | ||||
szVertexProductCategory | VVTC | char | OPT | OUTPUT |
User defined code used in the Vertex Tax Decision Maker for products or services that are non-taxable or are at a non-stanard rate. |
None |
None |