AsOfAgingServer

F03B14 As Of Aging Server

Minor Business Rule

Object Name: B03B0136

Parent DLL: CFIN

Location: Client/Server

Language: C

B03B0136
F03B14 As Of Aging Server


Functional Description


Purpose

The purpose of this business function is to accumulate payment amounts prior to the As of Date.


Setup Notes and Prerequisites

If cPaymentFlag is returned as a 0, then no as of processing was done.

If cPaymentFlag is returned as a 1, then as of processing was done.


Special Logic

Special Logic For Drafts (R1 Documents)


Technical Specifications


Parameters

ItemDescriptionI/OReq?Notes

DGJ   eForGLandVoucherJULIAI/O

DAG   jdDateAgeAsOfI

JCL   jdDateInvoiceClosedNU

DOC   mnDocVoucherInvoiceEI

DCT   szDocumentTypeI

KCO   szCompanyKeyI

SFX   szDocumentPayItemI

AG    mnAmountGrossI

ACR   mnAmountCurrencyI

AAP   mnAmountOpenO

FAP   mnAmountForeignOpenO

EV01  cPaymentFlagO

ADSC  nAmtDiscountAvailableO

CDS   nForeignDiscountAvailO

ISTC  RPostToCashManagementI

DDSTcDraftStatusO

AIDszAccountIdO



Related Tables

F03B14A/R Check Detail File

F03B11Customer Ledger

F03B112Invoice Revisions


Related Business Functions


Processing

• Process for Drafts
• 

JDB_Fetch - F03B11 to get Payment ID
• Set Selection Parameters - F03B14
• JDB_SetSelection - F03B14
• JDB_SelectKeyed - F03B14
• While Loop
• JDB_Fetch - F03B14
• 
Special logic for Contingent Liability Records
• Accumulate payment amounts prior to As of Date
• Assign amount open with the difference of original amount and total payments made before As Of 
Date and send back the G/L Date, Draft Status and Draft Account ID.

• Process for Receipts
• 
Set Selection Parameters - F03B14
• JDB_SetSelection - F03B14
• JDB_SelectKeyed - F03B14
• While Loop
• 
JDB_Fetch - F03B14
• Accumulate payment amounts prior to As of Date
• Assign amount open with the difference of original amount and total payments made before As Of 
Date 

• Special logic for RU Documents
• Return ER_S

Data Structure

D03B0136 - F03B14 As Of Aging Server

Parameter NameData ItemData TypeReq/OptI/O/Both
jdDateForGLandVoucherJULIADGJJDEDATENONENONE

A date that identifies the financial period to which the transaction will be posted. You define financial periods for a date pattern code that you 
assign to the company record. The system compares the date that you enter on the transaction to the fiscal date pattern assigned to the 
company to retrieve the appropriate fiscal period number, as well as to perform date validations.

jdDateAgeAsOfDAGJDEDATENONENONE

A date that the system uses to determine the aging category to which to assign an invoice. The system compares the aging date to the 
invoice date, statement date, due date, or G/L date, which is defined by the value in the Date Aging Based On field (AGE), and then uses the 
value in the Aging Method field (AGEM) to determine which aging category to update. If you use method 1, the aging categories are defined in 
the Aging Days fields (CRDY, AGR1, AGR2, AGR3, AGR4, AGR5, AGR6, and AGR7) in the Accounts Receivable constants.  If you leave this 
field blank, the system uses the current date.  Note: The Sales Order Management system also uses this date for credit checks. Leave this 
field blank to ensure that the credit checks are always current.

jdDateInvoiceClosedJCLJDEDATENONENONE

The date on which the invoice pay item is fully-paid. The system uses this date in As Of processing.

mnDocVoucherInvoiceEDOCMATH_NUMERICNONENONE

A number that identifies the original document, such as a voucher, invoice, or journal entry. On entry forms, you can assign the document 
number or let the system assign it using the Next Numbers program (P0002). Matching document numbers (DOCM) identify related documents 
in the Accounts Receivable and Accounts Payable systems. Examples of original and matching documents are: Accounts Payable     o 
Original document - voucher     o Matching document - payment  Accounts Receivable     o Original document - invoice     o Matching document - 
receipt  Note: In the Accounts Receivable system, the following transactions simultaneously generate original and matching documents: 
deductions, unapplied receipts, chargebacks, and drafts.

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 

szCompanyKeyKCOcharNONENONE

A number that, with the document number, document type and G/L date, uniquely identifies an original document, such as invoice, voucher, 
or journal entry. If you use the Next Numbers by Company/Fiscal Year feature, the Automatic Next Numbers program (X0010) uses the 
document company to retrieve the correct next number for that company. If two or more original documents have the same document number and 
document type, you can use the document company to locate the desired document.

szDocumentPayItemSFXcharNONENONE

A number that identifies the pay item for a voucher or an invoice. The system assigns the pay item number. If the voucher or invoice has 
multiple pay items, the numbers are sequential.

mnAmountGrossAGMATH_NUMERICNONENONE

A value that specifies the total amount of the invoice or voucher pay item. The gross amount might include the tax amount, depending on 
the tax explanation code. The system does not decrease the gross amount when payments are applied. When you void a transaction, the 
system clears the gross amount field.

mnAmountCurrencyACRMATH_NUMERICNONENONE

The foreign currency amount entered on the transaction. If the Multi-Currency Conversion option on the General Accounting constants is set 
to Y, the foreign amount is multiplied by the exchange rate to arrive at the domestic amount. If the Multi-Currency Conversion option is set to Z, 
the foreign amount is divided by the exchange rate.

mnAmountOpenAAPMATH_NUMERICNONENONE

The amount of an invoice or voucher pay item that is unpaid.

mnAmountForeignOpenFAPMATH_NUMERICNONENONE

The unpaid foreign amount of a transaction.

cPaymentFlagEV01charNONENONE

An option that specifies the type of processing for an event.

mnAmtDiscountAvailableADSCMATH_NUMERICNONENONE

The amount of the invoice or voucher pay item that is eligible to be subtracted from the gross amount when the transaction is paid. The 
system calculates discount amounts based on the payment term entered on the transaction.  Note: If the system calculates the discount, verify 
that it applies to the pay item specified. Usually, freight, sales tax, and labor charges that are included in the gross amount do not qualify for 
discounts.

mnForeignDiscountAvailCDSMATH_NUMERICNONENONE

The foreign amount of the discount available as opposed to the amount of the discount actually taken.

cARPostToCashManagementISTCcharOPTNONE

A code that specifies whether the transaction is included in the the A/R Statistical History table (F03B16). Valid values are: Blank The 
transaction is not included in the A/R Statistical History table.   1 The transaction is included in the A/R Statistical History table.

cDraftStatusDDSTcharOPTNONE

A code that the system assigns to draft records (F03B13 and F03B14) to indicate their progress during the collection process. Valid values 
are: 4 Accepted 3 Remitted - Cash or Discount 2 Remitted - Contingent 0  Collected

szAccountIdAIDcharOPTNONE

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

F03B11 Customer Ledger
F03B112 Invoice Revisions
F03B13 Receipts Header
F03B14 Receipts Detail