F03B16CalculateStatisticalSumm

F03B16 - Calculate Statistical Summary

Minor Business Rule

Object Name: B03B0131

Parent DLL: CFIN

Location: Client/Server

Language: C

B03B0131
F03B16 - Calculate Statistical Summary


Functional Description


Purpose

This function is called from the B03B0124 (Read Statistical History Cache).  For every record in the 
cache, this function is called.  Based upon company, customer, end date, and beginning date, this 

function will select F03B16 records and total these to be either updated or inserted into the F03B16S as 

child records.  It will update F03B16S Child records if a record is found, or else it will insert child 

records into the F03B16S if no record is found.


This function also compares statistical history information such as Date of First Invoice to 

information stored for a customer, company combination in the F03012.  If conditions are met, this function 

will load the D0100056 and call the B0100056 to update the F03012 with these fields.


Setup Notes and Prerequisites


Special Logic


Technical Specifications


Parameters

Data ItemDescriptionI/OReqNotes
AN8CustomerNumberIY
COCompanyIY

DTBGBeginningDateIY

DTENEndDateCCIY

DFIJDateFirstInvoiceIY

DLIJDateLastInvoiceIY

ALPAmountLastPaidIY

DLPDateLastPaidIY

CTRYCenturyIN

FYFiscalYearIN

PNPeriodNumberIN

DAYPPeriodDaysIN

NXPDNextPeriodToProcessIY

EV01DSOMethodIY

MATH01DSOPeriodsIY

MATH01TotalNumberDaysLateIY

ASTYAmtInvoicedThisYrIY

SPYEAmtInvoicedPriorYrIY


Related Tables

F03B16SAccount Statistic Summary
F03B16A/R Statistical History

F03012Customer Master by Line of Business

F03B20A/R Notification History


Related Business Functions

N0100042Customer Master -MBF
B03B0085Update Stat Summary Parent

B9800100Get Audit Information

B0100056F03012 - Update A/R Data on Customer Master


Processing



^

Data Structure

D03B0131 - F03B16 - Calculate Statistical Summary

Parameter NameData ItemData TypeReq/OptI/O/Both
mnCustomerNumberAN8MATH_NUMERICNONENONE

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

szCompanyCOcharNONENONE

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.

jdBeginningDateDTBGJDEDATENONENONE

The date on which the credit/collection date pattern begins for the year specified. The system uses credit/collection date patterns for 
statistical reporting only.

jdEndDateCCDTENJDEDATENONENONE

The date on which a credit/collection period ends for the date pattern specified. The system uses credit/collection date patterns for 
statistical reporting only.

jdDateFirstInvoiceDFIJJDEDATENONENONE

The G/L date of the first invoice generated.

jdDateLastInvoiceDLIJJDEDATENONENONE

The G/L date of the last invoice generated for the customer.

mnAmountLastPaidALPMATH_NUMERICNONENONE

The amount of the last payment applied to invoices based on the G/L date of the Receipt Detail record (F03B14). The system displays this 
information from either the A/R Statistical Summary table (F03B16S) or the A/R Statistical History table (F03B16), depending on the form. 
The system displays information from F03B16S on the Account Statistical Summary form and information from F03B16 on the Periodic Statistics 
form.

jdDateLastPaidDLPJDEDATENONENONE

The date of the last premium payment.

mnCenturyCTRYMATH_NUMERICNONENONE

The calendar century associated with the year. Enter is the first two digits of the year. For example, 19 indicates any year beginning with 19 
(1998, 1999), 20 indicates any year beginning with 20 (2000, 2001), and so on.

mnFiscalYearFYMATH_NUMERICNONENONE

A number that identifies the fiscal year. Generally, you can either enter a number in this field or leave it blank to indicate the current fiscal 
year (as defined on the Company Setup form). Specify the year at the end of the first period rather than the year at the end of the fiscal period. 
For example, a fiscal year begins October 1, 1998 and ends September 30, 1999. The end of the first period is October 31, 1998. Specify the 
year 98 rather than 99.

mnPeriodNumberPNMATH_NUMERICNONENONE

A number indicating the current accounting period.  This number, used in conjunction with the Company Constants table (F0010) and the 
General Constants table (F0009), allows the user to define up to 14 accounting periods. See General Ledger Date.  The current period number 
is used to determine posted before and posted after cut off warning messages.  It is also used as the default accounting period in the 
preparation of financial reports.

cDSOMethodEV01charNONENONE

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

mnDSOPeriodsMATH01MATH_NUMERICNONENONE

- - - Good Performance Low Value. 

mnPeriodDaysDAYPMATH_NUMERICNONENONE

The number of days within an accounting period.

jdNextPeriodToProcessNXPDJDEDATENONENONE

The date that was entered for the Thru Date processing option on the Summary Record tab when the Statistics History Update program 
(R03B16) was run. The system uses this date to select and process records from the A/R Statistical History table (F03B16). 

mnTotalNumberDaysLateMATH01MATH_NUMERICNONENONE

- - - Good Performance Low Value. 

mnAmtInvoicedThisYrASTYMATH_NUMERICNONENONE

The amount invoiced for the year. The system uses the gross amount of the invoice record (F03B11) regardless of whether taxes are 
included. The system updates this field when you run the Statistics History Update program (R03B16). The system determines the current fiscal 
year from the Date Fiscal Patterns - 52 Period Accounting table (F0008B).

mnAmtInvoicedPriorYrSPYEMATH_NUMERICNONENONE

The gross amount invoiced for the previous year. The system updates this field only when you run the Statistics Annual Close program 
(R03B161). 

Related Functions

B03B0075 F03b16BalanceStatsHist
B03B0085 Update Stat Summary Parent
B9800100 Get Audit Information
N0100042 Customer Master -MBF

Related Tables

F03B16 A/R Statistical History
F03B16S A/R Statistical Summary
F03B20 A/R Notification History