Documentation >
MAC-PAC Technical Library >
Financial >
Inventory Accounting >
Programs >
Inventory Accounting Transaction Review - Purpose >
Inventory Accounting Transaction Review - Calculations
Inventory Accounting Transaction Review - Calculations
IA300E
A. Housekeeping
1. See the Common Processing Routines - Housekeeping section of this manual for a general discussion of this subroutine. Processing specific to this program is described below.
2. A parameter list is set up to receive the fast path parameters.
3. Key lists are defined for each file retrieved by the program.
4. Work fields are defined and program constants are initialized.
5. The Company Name (COMNAM) is retrieved from the System Control file (CT100M). If this record is not found, a message is sent to the system operator, a default message is used, and processing continues.
6. If this program was entered from either the Inventory Accounting Report Request program (IA320E) or the Accounting Cost Generation Request program (IA310E) through command key F9 - Review, the following two steps occur.
a. The F9 - Enter Mode key allows the user to return to the Report Request program (IA310E or IA320E).
b. The reference number that was displayed on the report request screen is passed to this program. If transactions exist in the Inventory Accounting Report Request Transaction file (IA320AP) for this reference number, the Transaction Review Reference Number Entry Screen (IA300S01) is bypassed, and the appropriate detail screen is displayed. See step 2 under Mainline.
7. If this program was entered via fast path from another screen, the Entry Screen (IA300S01) is displayed. If a reference number was passed in the fast path data area, and if transactions exist for that reference number in the Inventory Accounting Report Request Transaction file (IA320AP), the Entry Screen is bypassed, and the appropriate Detail Screen is displayed. See step 2 under Mainline.
B. Mainline
1. If no reference number was passed when this program was entered, the Transaction Review Reference Number Entry Screen (IA300S01) is displayed. The user may specify a reference number, and the transactions under this number are displayed in reverse chronological order. The most recently entered transaction is displayed first. If no reference number is entered, the user profile name is used as the default value.
2. After a reference number is entered, either on the entry screen or passed by another program, the Inventory Accounting Report Request Transactions file (IA320AP) is accessed to locate the transactions for the requested reference number. If no transactions for the reference number are found, a message is displayed to the user on the entry screen.
3. A delimiter record is written to the Inventory Accounting Request Transaction file before and after the transaction group under the specified reference number. These delimiter records prevent other users from reviewing or deleting the transactions. If the transactions are already being reviewed by another user (if delimiter records exist), a message is displayed to the user on the entry screen.
4. After the reference number grouping of transactions has been protected, the most recently entered transaction is retrieved from the transaction file and displayed.
5. The Inventory Accounting Transaction Request Logical file (IA300AL) is read.
a. If the Accounting Generation Report Request record is read (Record Number T0610), the transaction type (CRCODE) is checked against several request fields to determine which detail screen to display.
Request Field
|
Request Field Value
|
Screen
|
Screen Name
|
ALLPRT
|
1
|
IA300S04
|
Accounting Cost Generation - All Parts
|
RNGPRT
|
2
|
IA300S05
|
Accounting Cost Generation - Range Parts
|
SELPRT
|
3
|
IA300S02
|
Accounting Cost Generation - Selected Parts
|
ALLCTR
|
4
|
IA300S07
|
Accounting Cost Generation - All Workcenter
|
RNGCTR
|
5
|
IA300S08
|
Accounting Cost Generation - Range Workcenter
|
SELCTR
|
6
|
IA300S03
|
Accounting Cost Generation - Selected Workcenter
|
APRTWC
|
7
|
IA300S10
|
Accounting Cost Generation - All Part and Workcenter
|
ALLCFG
|
8
|
IA300S19
|
Accounting Cost Generation - All Configuration Costed Parts
|
SELCFG
|
9
|
IA300S20
|
Accounting Cost Generation - Selected Configuration Code
|
ALLCST
|
10
|
IA300S22
|
Accounting Cost Generation - All New Configured Costs
|
b. If the Inventory Accounting Reprint Request record is read (Record Number T0611), the transaction type (CZTRAN) is checked against several request fields to determine which detail screen to display.
Request Field
|
Request Field Value
|
Screen
|
Screen Name
|
MFGWHS
|
R50
|
IA300S16
|
Manufacturing Warehouse Account Activity
|
ACTSUM
|
R51
|
IA300S11
|
Inventory Account Summary by Part
|
CODCHG
|
R52
|
IA300S12
|
Accounting Code Changes
|
PURRCT
|
R53
|
IA300S13
|
Purchase Receipts and Price Variance
|
STCTRN
|
R54
|
IA300S14
|
Stock Transfers and Price Variance
|
CSTCHG
|
R55
|
IA300S15
|
Standard Cost Change
|
MFGORD
|
R57
|
IA300S17
|
Manufacturing Order Accounting Detail
|
GLRANG
|
R80
|
IA300S18
|
General Ledger Activity by Range of Accounts
|
WIPACC
|
R81
|
IA300S23
|
WIP by Accounting Code
|
OPNORD
|
R82
|
IA300S24
|
Open Manufacturing Order Balance
|
LABEFF
|
R83
|
IA300S25
|
Labor Efficiency Variance
|
MANEFF
|
R84
|
IA300S26
|
Manning Efficiency Variance
|
BUREFF
|
R85
|
IA300S27
|
Burden Efficiency Variance
|
JITACC
|
R86
|
IA300S28
|
JIT Activity by Accounting Code
|
c. If the Accounting Cost Generation Part Transaction Request record is read (Record Number T0612), the Accounting Cost Generation - Selected Part Request Detail screen (IA300S06) is displayed.
d. If the Accounting Cost Generation Workcenter Transaction Request record is read (Record Number T0613), the Accounting Cost Generation - Selected Workcenter Request Detail screen (IA300S09) is displayed.
e. If the Accounting Cost Generation Configuration Code Transaction Request record is read (Record Number T0616), the Accounting Cost Generation - Selected Configuration Code Request Detail screen (IA300S21) is displayed.
6. The display of the previous or next transaction in the reference number group can be requested by pressing the F5 or F6 command key, respectively.
7. When the beginning or end of the transaction group is reached (when a delimiter record is found), an error message is displayed to the user on the Transaction Review - Reference Number Entry Screen (IA300S01) with all fields blanked out.
8. The user may delete any displayed transaction from the Inventory Accounting Report Request Transaction file by pressing F14.
9. The user may also request a new reference number from any of the detail screens by pressing F21. The Transaction Review Reference Number Entry Screen (IA300S01) is then displayed.
10. When a new reference number is requested or when the program is ended, any delimiter records written to the transaction file are deleted before the program terminates.