Functional Description
Purpose
This function Retrieves A/R Constants by Company from the F0010 Company Constants Table.
Setup Notes and Prerequisites
None
Special Logic
None
Technical Specification
Parameters
ItemDescriptionI/OReq?Notes
COSzCompanyIYCompany
AGEMCagingMethodONAging Method (1,2,3)
AGECtypeDateToAgeFromONAging Date Based On (I/D/G)
DAGJdDateAgeAsOfONDate Age as of
AGR1MnAgingDays1ONAging Days A/R 1
AGR2MnAgingDays2ONAging Days A/R 2
AGR3MnAgingDays3ONAging Days A/R 3
AGR4MnAgingDays4ONAging Days A/R 4
AGR5MnAgingDays5ONAging Days A/R 5
AGR6MnAgingDays6ONAging Days A/R 6
AGR7MnAgingDays7ONAging Days A/R 7
Related Tables
F0010 Company Constants
Related Functions
None
Processing
Set the key to the F0010 table = szCompany
Open the F0010 Table
If the table is opened successfully
Fetch the record from the F0010 table
If the record is retrieved successfully
Load the cAgingMethod and the cTypeDateToAgeFrom
If the DatetoAgeAsOf in the retrieved record is null
Set jdDateAgeAsOf = today
Else
Close the F0010 table
Else
Close the F0010 table
Else
IReturnCode = ER_ERROR
^
D03B0093 - Retrieve A/R Constants by Company
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
| ||||
cAgingMethod | AGEM | char | NONE | NONE |
A code that designates which aging categories the system uses to assign invoices. The system uses the date specified in the Age as of
| ||||
cTypeDateToAgeFrom | AGE | char | NONE | NONE |
A code that specifies which date on the invoice record to use to calculate aging. The system compares the date specified on the invoice
| ||||
jdDateAgeAsOf | DAG | JDEDATE | NONE | NONE |
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
| ||||
mnAgingDays1 | AGR1 | MATH_NUMERIC | NONE | NONE |
A value used in conjunction with CRDY and AGR2 to define the current and first aging categories. | ||||
mnAgingDays2 | AGR2 | MATH_NUMERIC | NONE | NONE |
A value used in conjunction with AGR1 and AGR3 to define the first and second aging categories. | ||||
mnAgingDays3 | AGR3 | MATH_NUMERIC | NONE | NONE |
A value used in conjunction with AGR2 and AGR4 to define the second and third aging categories. | ||||
mnAgingDays4 | AGR4 | MATH_NUMERIC | NONE | NONE |
A value used in conjunction with AGR3 and AGR5 to define the third and fourth aging categories. | ||||
mnAgingDays5 | AGR5 | MATH_NUMERIC | NONE | NONE |
A value used in conjunction with AGR4 and AGR6 to define the fourth and fifth aging categories. | ||||
mnAgingDays6 | AGR6 | MATH_NUMERIC | NONE | NONE |
A value used in conjunction with AGR5 and AGR7 to define the fifth and sixth aging categories. | ||||
mnAgingDays7 | AGR7 | MATH_NUMERIC | NONE | NONE |
A value used in conjunction with AGR6 to define the sixth aging category. |
None |
F0010 Company Constants |