B03B0123
Write Statistical History to Cache
Functional Description
Purpose
This function will write cache records that contain F03B16S data. If a record already exists for the
key, AN8 and CO, the amounts will be added to the existing cache record.
Setup Notes and Prerequisites
Special Logic
Technical Specifications
Parameters
Data ItemDescriptionI/OReqNotes
AN8 mnAddressNumberIYes
CO szCompanyIYes
DFIJ jdDateFirstInvoiceJulianI
DLIJ jdDateLastInvoiceJulianI
ALP mnAmountLastPaidI
DLP jdDateLastPaidI
MATH01 mnTotalNumberDaysLateI
ASTY mnAmtInvoicedThisYrI
SPYE mnAmtInvoicedPriorYrI
NXPD jdNextPeriodToProcessI
Related Tables
F03B08Credit/Collection Date Pattern
jdeappApplications Global Definitions - include file only
Related Business Functions
Processing
Set up CacheKey, szCompany, mnAddressNumber
jdeCacheInit for F03B16SCache
If jdeCacheGetNumRecords of F03B16SCache > 0
jdeCacheFetchPositionForupdate on F03B16SCache
If JDECM_PASSED
jdeCacheUpdate for F03B16SCache
jdNextPeriodToProcess
JDB_SelectKey on table F03B08
If not JDEDB_PASSED
'00000', and jdNextPeriodToProcess
JDB_SelectKey on table F03B08
Copy the input fields to the cache fields
jdeCacheAdd for F03B16SCache
^
D03B0123 - Write Statistical History to Cache
Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both |
---|---|---|---|---|
szCompany | CO | char | NONE | NONE |
A code that identifies a specific organization, fund, or other reporting entity. The company code must already exist in the Company
| ||||
mnAddressNumber | AN8 | MATH_NUMERIC | NONE | NONE |
A number that identifies an entry in the Address Book system, such as employee, applicant, participant, customer, supplier, tenant, or
| ||||
jdDateFirstInvoiceJulian | DFIJ | JDEDATE | NONE | NONE |
The G/L date of the first invoice generated. | ||||
jdDateLastInvoiceJulian | DLIJ | JDEDATE | NONE | NONE |
The G/L date of the last invoice generated for the customer. | ||||
mnAmountLastPaid | ALP | MATH_NUMERIC | NONE | NONE |
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
| ||||
jdDateLastPaid | DLP | JDEDATE | NONE | NONE |
The date of the last premium payment. | ||||
mnTotalNumberDaysLate | MATH01 | MATH_NUMERIC | NONE | NONE |
- - - Good Performance Low Value. | ||||
mnAmtInvoicedThisYr | ASTY | MATH_NUMERIC | NONE | NONE |
The amount invoiced for the year. The system uses the gross amount of the invoice record (F03B11) regardless of whether taxes are
| ||||
mnAmtInvoicedPriorYr | SPYE | MATH_NUMERIC | NONE | NONE |
The gross amount invoiced for the previous year. The system updates this field only when you run the Statistics Annual Close program
| ||||
jdNextPeriodToProcess | NXPD | JDEDATE | NONE | NONE |
The date that was entered for the Thru Date processing option on the Summary Record tab when the Statistics History Update program
|
None |
F03B08 Credit/Collection Date Pattern |