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
^
^
D0700150C - Build Accounts Payable Summary File
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
|---|---|---|---|---|
| mnAccountsPayableVoucherBa | VICU | MATH_NUMERIC | OPT | NONE | 
This is the batch number for payroll vouchers. If you specify separate batches for DBAs and taxes this batch will contain payroll vouchers 
  | ||||
| APTaxVoucherBatch | VICU | MATH_NUMERIC | OPT | NONE | 
This is the batch number for payroll vouchers. If you specify separate batches for DBAs and taxes this batch will contain payroll vouchers 
  | ||||
| szPayrollIDOW | PAYD | char | OPT | NONE | 
A code that identifies a group of employees for whom you are processing payroll. Use this ID to process each step of the payroll 
  | ||||
| None | 
| None |