UpdateStatSummaryParent

Update Stat Summary Parent

Major Business Rule

Object Name: B03B0085

Parent DLL: CFIN

Location: Client/Server

Language: C

B03B0085
F03B16S - Update Stat Summary Parent


Functional Description

Purpose
This function summarize the records on the F03B16S for a Parent/Child relationship.  When a Customer 

Number and Company Number are passed into the function, the function will read the F0150 to determine 

if the Customer is part of a Parent/Child relationship.  If the Customer has a parent, the function 

will add the current Customer's, a child, amounts the parent's totals.  These amounts are rolled up to 

the top of the Parent/Child tree.  Additionally, if currency processing is "ON", the amounts are 

converted into the parent's currency before they are accumulate.


Setup Notes and Preqeruisites


Special Logic


Technical Specifications

Data Structure Parameters

Data ItemData Structure DescriptionI/ORequiredNotes

AN8mnCustomerNumberI

CO     szCompanyI

AHB    mnHighBalanceAmountI

DHBJ    jdDateHighBalanceJulianI

ACLH    mnHighCreditLimitAmountI

AG     mnInvoicedAmountI

NINV   mnNumberInvoicesI

SAG    mnSalesAmountI

CREE   mnCreditsEnteredI

ADSC   mnDiscountsAvailableI

DFEE    mnDelinquencyFeesAmountI

ECBA   mnChargebackAmountsI

NCB    mnNumberChargebacksI

DFIJ    jdDateFirstInvoiceJulianI

DLIJ    jdDateLastInvoiceJulianI

DT1J    jdDateLastStatementJulianI

ASTY    mnAmountInvoicedThisYearI

SPYE    mnAmountInvoicedPriorYearI

PAAP   mnPaymntAmountI

UDSC   mnDiscountsUnearnedI

EDSC   mnDiscountsEarnedI

AIPL    mnInvoiceAmountPaidLateI

NIPL    mnNumberInvoicesPaidLateI

DDCA   mnAmountDeductionsI

DDCN   mnNumberDeductionsI

MWO    mnAmountMinorWriteOffI

BDBT   mnAmountBadDebtI

ANSF   mnNSFAmountI

NNSF   mnNumberNSFsI

DLP    jdDateLastPaidI

ALP    mnAmountLastPaidI

CRCD   szCurrencyCodeFromI

CHGA   mnAmountChangedI

AVDL   mnAverageDaysLateI

NBR1   mnNoSentReminders1I

DLQJ    jdDateLastDunningLetterJulI

NINP    mnNumberOfInvoicesPaidI

NXPD   jdThruDateI

NUMDAY mnNumberDaysLateI

AVDL   mnChildPrevAVDLI

PAAP   mnChildPrevPaymntAmtI

PAAP   mnChildCurrPaymntAmtI

AVDL   mnChildCurrAVDLI


Related Tables

F03B16SA/R Statistical Summary
F0150Address Organization Structure Master File - OSTP, PA8, AN8


Related Business Functions
N0100042Customer Master -MBF
B1100006Decimal Trigger Get By Currency

B0000027CurrencyConvForAndDom

B0000033Get Exchange Rate

B9800100Get Audit Information

JDEAPPApplications Global Definitions - include file only


Processing




^

Data Structure

D03B0085 - Update Stat Summary Parent

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.

mnHighBalanceAmountAHBMATH_NUMERICNONENONE

The invoice record with the highest gross amount from 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.

jdDateHighBalanceJulianDHBJJDEDATENONENONE

The invoice date of the record that has the highest gross amount from either the A/R Statistical History (F03B16) or A/R Statistical Summary 
(F03B16S) tables. The system displays information from the F03B16S table on the Account Statistical Summary form and information from 
the F03B16 table on the Periodic Statistics form.

mnHighCreditLimitAmountACLHMATH_NUMERICNONENONE

The highest credit limit that has been extended to the customer.

mnInvoicedAmountAGMATH_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.

mnNumberInvoicesNINVMATH_NUMERICNONENONE

Depending on the form, the number of posted invoices entered for the customer at the time the Statistics History Update program (R03B16) 
was run, or the number of invoices that will be paid by receipts in the automatic debit batch.

mnSalesAmountSAGMATH_NUMERICNONENONE

The total amount of sales orders from the A/R Statistical Summary table (F03B16S) or the A/R Statistical History table (F03B16), depending 
on the form. The system displays information from the F03B16S table on the Account Statistical Summary form and information from the 
F03B16 on the Periodic Statistics form. 

mnCreditsEnteredCREEMATH_NUMERICNONENONE

A value that indicates the total amount of invoices with a gross amount less than zero, excluding invoices with document types R1, R5, and 
RU. 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.

mnDiscountsAvailableADSCMATH_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.

mnDelinquencyFeesAmountDFEEMATH_NUMERICNONENONE

The total amount of the delinquency fee invoice records (RF). 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 the F03B16S 
table on the Account Statistical Summary form and information from the F03B16 on the Periodic Statistics form.

mnChargebackAmountsECBAMATH_NUMERICNONENONE

An unpaid invoice amount for which you want to create a new invoice record so that you can charge the customer.

mnNumberChargebacksNCBMATH_NUMERICNONENONE

The total number of chargeback invoices (document type RB) 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 the F03B16S table on the Account Statistical 
Summary form and information from the F03B16 on the Periodic Statistics form. 

jdDateFirstInvoiceJulianDFIJJDEDATENONENONE

The G/L date of the first invoice generated.

jdDateLastInvoiceJulianDLIJJDEDATENONENONE

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

jdDateLastStatementJulianDT1JJDEDATENONENONE

The date that the last statement was processed. The system displays this information from the A/R Statistical Summary table (F03B16S).

mnAmountInvoicedThisYearASTYMATH_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).

mnAmountInvoicedPriorYearSPYEMATH_NUMERICNONENONE

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

mnPaymntAmountPAAPMATH_NUMERICNONENONE

In the Accounts Payable system, the amount of the payment. In the Accounts Receivable system, the amount of the receipt. This amount 
must balance to the total amount applied to the invoice pay items.

mnDiscountsUnearnedUDSCMATH_NUMERICNONENONE

The total amount of the discounts taken after the discount due date. The system displays this amount 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 the F03B16S 
table on the Account Statistical Summary form and information from the F03B16 table on the Periodic Statistics form.

mnDiscountsEarnedEDSCMATH_NUMERICNONENONE

The amount of the discount that is taken on or before the discount due date.

mnInvoiceAmountPaidLateAIPLMATH_NUMERICNONENONE

The total amount of invoices that have been paid late from the A/R Statistical Summary table (F03B16S) or the A/R Statistical History table 
(F03B16), depending on the form. The system displays information from the F03B16S table on the Account Statistical Summary form and 
information from the F03B16 on the Periodic Statistics form.

mnNumberInvoicesPaidLateNIPLMATH_NUMERICNONENONE

The total number of invoices that were paid after the due date. The system displays this number 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 the F03B16S table 
on the Account Statistical Summary form and information from the F03B16 table on the Periodic Statistics form. 

mnAmountDeductionsDDCAMATH_NUMERICNONENONE

The total amount of the deduction records from the Receipts Detail table (F03B14) for the specified period.

mnNumberDeductionsDDCNMATH_NUMERICNONENONE

The total number of deductions that have been applied to an account.

mnAmountMinorWriteOffMWOMATH_NUMERICNONENONE

The total write-off amount accumulated from the Receipts Detail table (F03B14) for all reason codes in UDC 03B/RC that have 1 in the 
Special Handling field. 

mnAmountBadDebtBDBTMATH_NUMERICNONENONE

The total write-off amount accumulated from the Receipts Detail table (F03B14) for all reason codes in UDC 03B/RC that have no value in 
the Special Handling field.

mnNSFAmountANSFMATH_NUMERICNONENONE

The total amount of the receipts that were returned for insufficient funds (document type RV). 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 the F03B16S table on the Account Statistical Summary form and information from the F03B16 on the Periodic Statistics form.

mnNumberNSFsNNSFMATH_NUMERICNONENONE

The total number of receipts returned for non-sufficient funds (document type RV) from the A/R Statistical Summary table (F03B16S) or the 
A/R Statistical History table (F03B16), depending on the form. The system displays information from the F03B16S table on the Account 
Statistical Summary form and information from the F03B16 on the Periodic Statistics form. 

jdDateLastPaidDLPJDEDATENONENONE

The date of the last premium payment.

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.

szCurrencyCodeFromCRCDcharNONENONE

A code that identifies the currency of a transaction. 

mnAmountChangedCHGAMATH_NUMERICNONENONE

The net change amount.

mnAverageDaysLateAVDLMATH_NUMERICNONENONE

The average length of time, in days, that it took the customer to pay an invoice.

mnNoSentReminders1NBR1MATH_NUMERICNONENONE

The total number of delinquency notices that were sent to a customer.

jdDateLastDunningLetterJulDLQJJDEDATENONENONE

The date of the last deliquency notice that was sent to the customer. 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 the 
F03B16S table on the Account Statistical Summary form and information from the F03B16 table on the Periodic Statistics form.

mnNumberOfInvoicesPaidNINPMATH_NUMERICNONENONE

The number of invoices that were paid in the period specified at the time the Statistics History Update program (R03B16) was run. 

jdThruDateNXPDJDEDATENONENONE

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). 

mnNumberDaysLateNUMDAYMATH_NUMERICNONENONE

The number of days back from the calculate balance date that will be used to calculate the Statistical History Balance.  For example, if the 
number of days is 365 and the balance as of date is 6/30/98, the Statistical History Balance will be from 7/1/97 to 6/30/98.

mnChildPrevAVDLAVDLMATH_NUMERICNONENONE

The average length of time, in days, that it took the customer to pay an invoice.

mnChildPrevPaymntAmtPAAPMATH_NUMERICNONENONE

In the Accounts Payable system, the amount of the payment. In the Accounts Receivable system, the amount of the receipt. This amount 
must balance to the total amount applied to the invoice pay items.

mnChildCurrPaymntAmtPAAPMATH_NUMERICNONENONE

In the Accounts Payable system, the amount of the payment. In the Accounts Receivable system, the amount of the receipt. This amount 
must balance to the total amount applied to the invoice pay items.

mnChildCurrAVDLAVDLMATH_NUMERICNONENONE

The average length of time, in days, that it took the customer to pay an invoice.

Related Functions

B0000027 CurrencyConvForAndDom
B0000033 Get Exchange Rate
B1100006 Decimal Trigger Get By Currency
B9800100 Get Audit Information
N0100042 Customer Master -MBF

Related Tables

F0150 Address Organization Structure Master
F03B16S A/R Statistical Summary