Previous Topic: Example 2: Defining Entities for a Department

Next Topic: Defining Charges


Defining Accounting Periods

In order to maintain fixed periods across all ORD input records, an Accounting Period Table (PERTAB) is maintained to specify the End Date and Time for a given period. The PERTAB is used to determine the period to which a given detail record is allocated.

The contents of the protected display field Version, is determined by information you specify using the Options facility. See Versions for further details.

The following is a sample Accounting Periods entry panel.

USERID CA PMA Chargeback MM/DD/YY HH:MM:SS __ Acctdefs Cbdefs Query Data Period Options Exit Help +-- CBAPERE - Accounting Periods ------------+ | Panel Exit Help | ------------------------------------------ | Type information and save. | | Version : | | More: - + ____ Row 0001 of 0005 | End End | Cmd Period MM/DD/YYYY HH:MM | | _ 001 01/31/1990 24:00 | _ 002 02/28/1990 24:00 | _ 003 03/31/1990 24:00 | _ 004 04/30/1990 24:00 | _ 005 05/30/1990 24:00 | | F5=Save F7=Bkwd F8=Fwd +--------------------------------------------+ Command ===> ____________________________________________________________ F1=Help F3=Exit F4=Prompt F9=Command F10=Action Bar F12=Cancel PA1=Susp

Note: The first time this panel appears, you are in insert mode; no lines appear under the Cmd column, the scroll bar does not show a row count, and the only active panel function key is F5. When you press F5 (Save), a message appears telling you the insert is successful. At this point, you are in update mode. The panel scroll bar provides a row count, the Cmd column is active (lines appear under the column) and all panel function keys are active. Pressing F5 (Save) displays a message telling you the update is successful.

Access

The Accounting Periods panel appears when one of these events occurs:

Input

The following Accounting Periods entry panel fields are available for input:

Cmd

Used to specify commands. The only valid command for this panel is:

D Deletes individual rows from the table.

Note: You cannot delete a period once it has been closed.

Period

Contains the period identifier, a number, that is a key to the CCCTAB table.

Note: For validation, there must be no overlap between periods, and the date/times must be in sequence. Also, a period cannot be changed if it is the current period or if it has passed. This ensures that the contents of the CCCTAB are accurate.

End MM/DD/YYYY

Contains the ending date of the specified period. Its format is mm/dd/yyyy. You cannot save this data unless you provide an End Time for each period.

End HH:MM

Contains the ending time for the specified period. You must provide an End Time: no default is provided.

Actions

F5=Save

Lets you add and update rows in the table.

F7=Bkwd

Lets you scroll backwards through the table.

F8=Fwd

Lets you scroll forward through the table.