MAC-PAC Homecontact ussupport login 
Documentation > MAC-PAC Technical Library > Distribution > Expert Configurator > Programs > Configuration Code Maintenance - Purpose > Configuration Code Maintenance - Calculations

Configuration Code Maintenance - Calculations

EC140E

A.   Housekeeping

1.   Parameter lists and key lists are defined.

2.   Work fields are defined and program constants are initialized.

3.   CPF File Access Status Codes are retrieved from Reference File category 015.

4.   Valid Company/Warehouses are loaded from the Warehouse Description file (IC170M).

5.   The Date Format is retrieved from Reference File category 049.

6.   If the program is called from fast path, default the Company/Warehouse from the fast path item (FPITEM).  If the program is called from the application menu, default the Company/Warehouse from Reference File category 428.

B.   Mainline

1.   Display and validate the select screen.

a.   Validate the Maintenance Code field (RCODE).  It must be either 1 - Add, 2 - Change, or 3 - Delete.

b.   If the Maintenance Code is valid, validate the Part Number field (CZPN) then the Configuration Code field (CZCFGC).

c.   If both the Part Number and Configuration Code are valid, validate the Part/Configuration Code combination for the entered Maintenance Code.

2.   If necessary, display and validate the partial screen.

a.   Validate the Maintenance Code field (RCODE).  It must be either 1 - Add ,2 - Change, or 3 - Delete.

b.   If the Maintenance Code is valid, validate the Part Number field (CZPN) then the Configuration Code field (CZCFGC).

c.   If both the Part Number and Configuration Code are valid, validate the Part/Configuration Code combination for the entered Maintenance Code.

3.   Display, validate, and process the detail screen.

a.   If the Maintenance Code equals 1 - Add  or 2 - Change validate the detail screen fields.

b.   If all detail screen fields are valid, process the screen by adding/changing the Configuration Master file record for the part/configuration code combination.

(1)  Calculate the Standard Total Cost (CCCFT) and the Acquisition Cost (CCASCQ).

 

Standard Total Cost (CCCFT)


Equals

Acquisition Cost (CCASCQ)

Equals the sum of:



Standard Material Cost (CZCFM)

 

 

 

 

Standard Labor Cost (CZCFL)

 

 

 

 

Standard Overhead Cost (CZCFO)

 

 

 

 

Standard Miscellaneous Material (CZMFM)

 

 

 

 

Standard Miscellaneous Labor (CZMFL)

 

 

 

 

Standard Miscellaneous Overhead (CZMFO)

(2)  Update the Configuration Code Master file (EC140M).

 

c.   If the Maintenance Code equals 3 -Delete process the delete transaction.

EC140E Program Menu