Documentation >
MAC-PAC Technical Library >
Distribution >
Order Processing >
Programs >
Process Freight Amount - Purpose >
Process Freight Amount - Calculations
Process Freight Amount - Calculations
Process Freight Amount
1. The process freight subroutine is only performed if the freight has not already been posted, and if a Freight Control Total was entered on the recap screen.
2. The freight's warehouse balance record is read for update. The Part Master file is read for inquiry. The Part Master file will be used to format the freight's open item record.
3. The following master file records are updated:
· Warehouse Balance (IC140M)
· Open Item Distribution (ARDISTP)
· Sales History (OP120M)
· Customer Order Shipment/Return Audit Trail (IC190BP)
· Customer Order Shipment/Return Transaction Register (IC190CP)
· Inventory Control Transaction Error (IC505AP)
· Accounting Transactions (AR510AP)
4. In the Open Order Shipping and Billing conversation, the freight posted flag is set to Y on the workfile header record.
5. A commitment unit is written.
6. The Freight Control Total is added to the Other Charges Control Total for the open item and the sales order records.