BuildAccountsPayableSummaryFile

Process Accounts Payable Vouchers

Minor Business Rule

Object Name: N0700150

Parent DLL: CPAY

Location: Client/Server

Language: NER

Functional Description

Purpose


Setup Notes and Prerequisites


Special Logic




Technical Specification



// ========================================================

// NAMED ER:  Build Accounts Payable Summary File

// ========================================================


Read F07490 - Accounts Payable Detail File


If the F07490 Batch number is equal to the DBA voucher batch number or the tax voucher batch number 


// If the key fields have changed, write the Summary File Records

If the SubLedger has changed Or

  If the WageAttach number has changed 


// Write the Summary Record.   Each record represents a pay item for a voucher.  

// The payee and control field (CTL2) distinguish one voucher from another.


Write to F07491 - Accounts Payable Summary 

//  


// Write the Control rcord.   One control record exists for each voucher.   It

// tracks the general data that applies to a voucher. 


Write to F07492 - Accounts Payable Constants 


End If

End If

End If


// ===============================================

// Load the Summary Records and accumulate the totals.

// ===============================================

//  

If VA evt_szKeyFields_DS40 is not equal to VA evt_szSavedKey_DS40 

   Move *blank to the GL Offset field //   

   Retrieve the Voucher Rules from F06927 

      If the Type Code (APTF) is equal to "D"

         If no record was found in F06927 

              Retrieve the default value from the DD item of VCHR

         Else

         The VoucherRule = The voucher rule from F06927 

         End If

      Else

      // Tax Voucher Rule

         If no record was found in F06927 

              Retrieve the default value from the DD item of VCHR

         Else

              The Tax VoucherRule = The Tax voucher rule from F06927 

         End If

      Endif

//  


Retrieve Address Book Information from the Supplier Master F0401

If a record was not found

   GLOffset = Blank 

   PaymentTerms = Blank 

End If

//  


If this is a new detail record for a pay item group, load the Summary Record.

Load the remark field.    For taxes, use the tax id,    for wage attachments

use the case number and the employee's last name.


Retrieve the Country Code from F060116


If the country code is USA or Blank, 

//  

   If the home company, tax area or tax type has changed 

       Retrieve Taxx id from F069086 

   Else

       F07491 Remark Field = Saved TaxID

   End If

Else

   Call N7000760 - Country Specific Plug and Play  

End If

//  

If the method of calculation is a garnishment, loan or child support

Retrieve the Wage Attachment Case Number from the F0626

Retrieve the Alpha Name fro m F0101 

  CONCAT (CaseNumber , Alpha Name) 

End If

//  

End While ^

^

Data Structure

D0700150C - Build Accounts Payable Summary File

Parameter NameData ItemData TypeReq/OptI/O/Both
mnAccountsPayableVoucherBaVICUMATH_NUMERICOPTNONE

This is the batch number for payroll vouchers. If you specify separate batches for DBAs and taxes this batch will contain payroll vouchers 
for DBAs. Otherwise, it will contain payroll vouchers for both DBAs and taxes. Separate batches are specified from the Journals step of the Pay 
Cycle.

APTaxVoucherBatchVICUMATH_NUMERICOPTNONE

This is the batch number for payroll vouchers. If you specify separate batches for DBAs and taxes this batch will contain payroll vouchers 
for DBAs. Otherwise, it will contain payroll vouchers for both DBAs and taxes. Separate batches are specified from the Journals step of the Pay 
Cycle.

szPayrollIDOWPAYDcharOPTNONE

A code that identifies a group of employees for whom you are processing payroll. Use this ID to process each step of the payroll 
cycle. This code is also used to identify the interim ID that you select when you enter interim payments.

Related Functions

None

Related Tables

None
FillOutSubsidiaryandSubledger

FillOutSubsidiaryandSubledger

Process Accounts Payable Vouchers

Minor Business Rule

Object Name: N0700150

Parent DLL: CPAY

Location: Client/Server

Language: NER

Functional Description

Purpose


Setup Notes and Prerequisites


Special Logic




Technical Specification



// ------------------------------------------------------------------------------

// Fill out the subsidiary 

// ------------------------------------------------------------------------------

VA evt_szJournalSubsidiary_SUB = "                 "

//  

If Subledger is equal to *UNION  

Subsidiary = Union Code

End If

//  

If Subledger is equal to *EMP  

Subsidiary = Employee

End If

//  

If Subledger is equal to *PAY  

Subsidiary = PDBA

End If

//  

If Subledger is equal to *STAT  

Subsidiary = Statutory Code 

End If

//  

If the subsidiary is blank 

Subsidiary = Subsidiary passed in via the Data Structure. 

End If


// ------------------------------------------------------------------------------

// Fill out the subledger

// ------------------------------------------------------------------------------

//    

If Subledger = *SBLE 

If BF szSubledger is equal to VA evt_szSubledgerConstant_SBL 

Subleger = Address Number 

End If


If Subledger = *SBLP 

Subleger = PDBA 

End If

//    

If the subledger is blank 

Subledger = Subledger passed in via the Data Structure. 

End If

   

// ------------------------------------------------------------------------------

// Do the subledger edit.  

// ------------------------------------------------------------------------------

Format the Subledger

Call NER - F0006 Edit Subledger

//    

Call NER - XX0901 Business Unit, Object, Subsidiary Merge

If successful retrieval of the long account number, retrieve the company

from F0901.    If the retrieval was not successful, then pass back the

original  company that was passed in.


^

Data Structure

D0700150B - Fill out Subsidiary and Subledger

Parameter NameData ItemData TypeReq/OptI/O/Both
szUnionCodeUNcharOPTNONE

A user defined code (06/UN) that represents the union or plan in which the employee or group of employees work or participate.

mnAddressNumberAN8MATH_NUMERICOPTNONE

A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or 
location.

mnPayDeductBenAccTypePDBAMATH_NUMERICOPTNONE

A code that defines the type of pay, deduction, benefit, or accrual. Pay types are numbered from 1 to 999. Deductions and benefits are 
numbered from 1000 to 9999.

szStatutoryCode01SCODcharOPTNONE

A code that specifies the two-character or three-character state or province code that prints on statutory reports such as W-2s and T4s. For 
example, on W-2s and T4s, instead of printing 06, which might be the taxing authority for the state of Colorado, the system prints the statutory 
code CO. Enter in an alpha code from UDC table 06/SC. 

szSubsidiarySUBcharOPTNONE

A subset of an object account. Subsidiary accounts include detailed records of the accounting activity for an object account.

szSubledgerSBLcharOPTNONE

A code that identifies a detailed, auxiliary account within a general ledger account. A subledger can be an equipment item number or an 
address book number. If you enter a subledger, you must also specify the subledger type.

szAcctNoInputModeANIcharOPTNONE

A value that identifies an account in the general ledger. Use one of the following formats to enter account numbers:   o  Standard account 
number (business unit.object.subsidiary or flex format).   o  Third G/L number (maximum of 25 digits).   o  Account ID number. The number is eight 
digits long.       o  Speed code, which is a two-character code that you concatenate to the AAI item SP. You can then enter the code instead of 
an account number. The first character of the account number indicates its format. You define the account format in the General Accounting 
constants. 

cSubledgerTypeSBLTcharOPTNONE

A user defined code (00/ST) that is used with the Subledger field to identify the subledger type and how the system performs subledger 
editing. On the User Defined Codes form, the second line of the description controls how the system performs editing. This is either hard-coded 
or user defined. Valid values include: A Alphanumeric field, do not edit   N Numeric field, right justify and zero fill   C Alphanumeric field, right 
justify and blank fill  

szCostCenterMCUcharOPTNONE

An alphanumeric code that identifies a separate entity within a business for which you want to track costs. For example, a business unit 
might be a warehouse location, job, project, work center, branch, or plant. You can assign a business unit to a document, entity, or person for 
purposes of responsibility reporting. For example, the system provides reports of open accounts payable and accounts receivable by 
business unit to track equipment by responsible department. Business unit security might prevent you from viewing information about business units 
for which you have no authority.

szObjectAccountOBJcharOPTNONE

The portion of a general ledger account that refers to the division of the Cost Code (for example, labor, materials, and equipment) into 
subcategories. For example, you can divide the Cost Code for labor into regular time, premium time, and burden. Note: If you use a flexible chart of 
accounts and the object account is set to 6 digits, J.D. Edwards recommends that you use all 6 digits. For example, entering 000456 is not 
the same as entering 456 because if you enter 456 the system enters three blank spaces to fill a 6-digit object.

szCompanyCOcharOPTNONE

A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company 
Constants table (F0010) and must identify a reporting entity that has a complete balance sheet. At this level, you can have intercompany 
transactions. Note: You can use company 00000 for default values such as dates and automatic accounting instructions. You cannot use company 00000 
for transaction entries.

Related Functions

None

Related Tables

None
RetrieveTaxAreaInformation

RetrieveTaxAreaInformation

Process Accounts Payable Vouchers

Minor Business Rule

Object Name: N0700150

Parent DLL: CPAY

Location: Client/Server

Language: NER

Functional Description

Purpose


Setup Notes and Prerequisites


Special Logic




Technical Specification


================================================ 

Retrieve Payee and Tax ID 

================================================ 

//  

 

If the payee needs to be determined, obtain it from the Tax Area/Payee Cross

Reference file (F06926). 

If the F07353 TAX Type =  A B D E P Q R S T U V X O    

    The Tax Type for F06926_PTAX = "A"

Else

    The Tax Type for F06926_PTAX = The Parmeter Tax Type

End If

//  


IF TAX Area/Type  = FEDERAL  C    

Federal Unemployment           

Assign the F06926 tax type to be a value of 'A'


Load the key values of company, tax area and tax type for F06926  (Tax

Area/vendor cross reference file.   If rec found, use the F06926 Payee

number.  If no record is found and the tax type is A

Load the Payee number for the Tax area/type of FEDERAL A. 

If the tax type is not A use the payee from the Current F069016 record. 


Obtain the Tax ID from the Corporate Tax Area File - F069086.




^

Data Structure

D0700150A - Retrieve Tax Area Information

Parameter NameData ItemData TypeReq/OptI/O/Both
szF07353_PayrollTaxTypePTAXcharOPTNONE

A code that specifies the type of payroll tax being processed. This is a user defined code (07/TX). To set up state minimum wage amounts, 
you must enter MW in this field. To do so, you must first add MW to UDC 07/TX. However, you should not change the codes and definitions 
that J.D. Edwards provides with the software.

szF07353_TaxAreaWorkTARAcharOPTNONE

A code that identifies a geographical location and the tax authorities for an employee work site, including employee and employer statutory 
requirements. In the Vertex payroll tax calculation software, the tax area code is synonymous with GeoCode. To determine the valid codes 
for your location, refer to the documentation for the tax calculation software that you are using.

szF07353_CompanyHomeHMCOcharOPTNONE

The company number where the employee records generally reside.

mnF069016_PayeeNumberANN8MATH_NUMERICOPTNONE

The address book number for the supplier who receives the final payment. In Benefits administration, this is the address book number of the 
company that issues the plan and receives premium payments for it. For wage attachments, payee is the address book number of the 
agency, company, individual, or court that is to receive the payment of the check.

szTaxIdentificationNoTAXXcharOPTNONE

A number that identifies your company to the tax authority. This number can include the tax ID number for an individual, a federal or state 
corporate tax ID, a sales tax number, and so on. This number has specifically been established for the Payroll system to handle the 
requirements of taxing authorities that require more than 9 positions for the tax identification number. Do not enter hyphens (dashes), slashes, spaces, or 
other punctuation in the tax identification number.

mnPayeeNumberToBeUsedANN8MATH_NUMERICOPTNONE

The address book number for the supplier who receives the final payment. In Benefits administration, this is the address book number of the 
company that issues the plan and receives premium payments for it. For wage attachments, payee is the address book number of the 
agency, company, individual, or court that is to receive the payment of the check.

mnFederalAPayeeNumberANN8MATH_NUMERICOPTNONE

The address book number for the supplier who receives the final payment. In Benefits administration, this is the address book number of the 
company that issues the plan and receives premium payments for it. For wage attachments, payee is the address book number of the 
agency, company, individual, or court that is to receive the payment of the check.

Related Functions

None

Related Tables

None