Functional Description
Purpose
Edit the date passed to this function for PYEB (prior year end balance), PBCO (posted before cut
off), PACO (posted after cut off), and WACO (posted way after cut off). Optionally return the fiscal
year, century and period number for the company and date passed in.
Setup Notes and Prerequisites
Special Logic
Technical Specification
If Accounts Receivable (03), the current A/R begin fiscal year date and period is used. If Accounts
Payable (04), the current A/P begin fiscal year date and period is used. Otherwise, the current G/L
begin fiscal year date and period is used.
If date passed is prior to current year, return PYEB. If date passed is in current year, but prior
to current period, return PBCO. If date passed is within current period or next period, no message is
returned. If date passed is greater than next period end date, but less than or equal to period 14
end date of current year, return PACO. If date passed is greater than next period end date, and
greater than period 14 end date of current year, return WACO.
PACO and WACO are a WARNING only messages. PBCO is a WARNING if constant is set to allow PBCO
posting, otherwise it is an error. PYEB is a WARNING if document type is '##', otherwise it is an error.
The error message number is returned as well as the type of warning, when applicable. The type of
warnings are: 1 for PYEB, 2 for PBCO, 3 for PACO, and 4 for WACO. In addition, you can choose to
suppress warnings by passing a '2', or choose to suppress errors and warnings by passing a '1'.
Optionally you can have the fiscal period, fiscal year and century returned for the companied number
and date passed in.
The date must fall within one of the Date Pattern records set up in F0008.
DXX00025 - Edit Date - PYEB, PBCO, PACO, WACO
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
| ||||
jdDate | DGJ | JDEDATE | NONE | NONE |
A date that identifies the financial period to which the transaction will be posted. You define financial periods for a date pattern code that you
| ||||
szDocumentType | DCT | char | NONE | NONE |
Special Input Expected
| ||||
szSystem | SY | char | NONE | NONE |
Significant Data Values
| ||||
cSuppressFlag | EV01 | char | NONE | NONE |
Significant Data Values
| ||||
szErrorNumber | DTAI | char | NONE | NONE |
A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or
| ||||
cWarningType | EV02 | char | NONE | NONE |
Significant Data Values
| ||||
mnReturnPeriodNumber | PN | MATH_NUMERIC | NONE | NONE |
A number indicating the current accounting period. This number, used in conjunction with the Company Constants table (F0010) and the
| ||||
mnReturnFiscalYear | FY | MATH_NUMERIC | NONE | NONE |
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
| ||||
mnReturnCentury | CTRY | MATH_NUMERIC | NONE | NONE |
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
| ||||
cFYPNFlag | EV03 | char | NONE | NONE |
Significant Data Values
|
None |
F0008 Date Fiscal Patterns | ||||
F0009 General Constants | ||||
F0010 Company Constants |