Functional Description
Purpose
This function will Retrieve or Update the A/R constants by Company.
Setup Notes and Prerequisites
The cInquireorRevise flag will determine the mode of the function. 1  = Inquire, 0  = Revise.
Special Logic
None
Technical Specification
Parameters
ItemDescriptionI/OReq?Notes
DNLTcDeliquencyLetterI/ONDelinquency Notice (Y/N)
ATCScAutoCashI/ONAuto Receipt (Y/N)
STMTcPrintStatementynI/ONPrint Statement (Y/N)
ALGMszAutoCashAlgorithmI/ONAuto Receipt Algorighm Method
DAGjdDateAgeAsOfI/ONDate - Age as of
AGEMcAgingMethodI/ONAging method (1,2,3)
AGEcBaseAgingDateI/ONAging - Date Based On (I/D/G)
AGR1mnAgingDaysar001I/ONAging Days - A/R 1
AGR2mnAgingDaysar002I/ONAging Days - A/R 2
AGR3mnAgingDaysar003I/ONAging Days - A/R 3
AGR4mnAgingDaysar004I/ONAging Days - A/R 4
AGR5mnAgingDaysar005I/0NAging Days - A/R 5
AGR6mnAgingDaysar006I/0NAging Days - A/R 6
AGR7mnAgingDaysar007I/0NAging Days - A/R 7
EV01cInquireorReviseIYOneWorld Event Point01
COszCompanyIYCompany
CRDYmnAgingDaysarcurrentI/ONAging Days - A/R Current
Related Tables
F0010- Company Constants
Related Functions
B9800100Get Audit Information
Processing
If cInquireorRevise = 1 
 set the key to the F0010 table = szCompany
 Open the F0010 table
 If table not opened successfully
 Return ER_ERROR
 Fetch record from F0010 table
 If the record is fetched successfully
szAutoCashalgorighm,  jdDateAgeAsOf, mnAgingDaysarcurrent and all of the aging days variables
 IdReturnCode1 = ER_ERROR
Else
 set the key to the F0010 table = szCompany
 Open the F0010 table
 If table not opened successfully
 Return ER_ERROR
 Else
cAgingMethod, cBaseAgingDate, szAutoCashalgorighm,  jdDateAgeAsOf, mnAgingDaysarcurrent and all of 
the aging days variables
Update the F0010 table
If the update is unsuccessful
 IdReturnCode1 = ER_ERROR
D03B0026 - Retrieve/Update A/R Constants
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
|---|---|---|---|---|
| cDelinquencyLetter | DNLT | char | NONE | NONE | 
An option that specifies whether to print delinquency notices for the customer or company based on the notification instructions that are set 
  | ||||
| cAutoCash | ATCS | char | NONE | NONE | 
An option that specifies whether a customer or company is eligible to process receipts in the Accounts Receivable system using the 
  | ||||
| cPrintStatementyn | STMT | char | NONE | NONE | 
An option that specifies whether to print statements for the customer or company. Valid settings are: 
On
Print statements.
Off
Do not print 
  | ||||
| szAutoCashAlgorithm | ALGM | char | NONE | NONE | 
A code that specifies how receipts are applied during the batch receipts process.  | ||||
| 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 
  | ||||
| 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 
  | ||||
| cBaseAgingDate | 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 
  | ||||
| mnAgingdaysar001 | AGR1 | MATH_NUMERIC | NONE | NONE | 
A value used in conjunction with CRDY and AGR2 to define the current and first aging categories.  | ||||
| mnAgingdaysar002 | AGR2 | MATH_NUMERIC | NONE | NONE | 
A value used in conjunction with AGR1 and AGR3 to define the first and second aging categories.  | ||||
| mnAgingdaysar003 | AGR3 | MATH_NUMERIC | NONE | NONE | 
A value used in conjunction with AGR2 and AGR4 to define the second and third aging categories.  | ||||
| mnAgingdaysar004 | AGR4 | MATH_NUMERIC | NONE | NONE | 
A value used in conjunction with AGR3 and AGR5 to define the third and fourth aging categories.  | ||||
| mnAgingdaysar005 | AGR5 | MATH_NUMERIC | NONE | NONE | 
A value used in conjunction with AGR4 and AGR6 to define the fourth and fifth aging categories.  | ||||
| mnAgingdaysar006 | AGR6 | MATH_NUMERIC | NONE | NONE | 
A value used in conjunction with AGR5 and AGR7 to define the fifth and sixth aging categories.  | ||||
| mnAgingdaysar007 | AGR7 | MATH_NUMERIC | NONE | NONE | 
A value used in conjunction with AGR6 to define the sixth aging category.  | ||||
| cInquireorRevise | EV01 | char | NONE | NONE | 
An option that specifies the type of processing for an event.  | ||||
| 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 
  | ||||
| mnAgingdaysarcurrent | CRDY | MATH_NUMERIC | NONE | NONE | 
A value used in conjunction with the value of AGR1 to define the number of days in the current aging category.  | ||||
| B9800100 Get Audit Information | 
| F0010 Company Constants |