End of Month Field Clearing (ARFM102)

Program Description

End of Month Field Clearing can be found on the Accounts Receivable File Maintenance End of Month menu (AR-3-6-2).  This is a required purge that is run with the AR/Billing End Of Month Procedures.  The program updates numerous files by clearing out the month to date sales and cost figures.  The month to date sales and cost figures are zeroed out in the Customer File (CUSTD).  The month to date sales and cost figures are zeroed out in the Sales Rep/Service Tech File (SLMD).  If it is the end of a quarter, the quarter to date Sales Rep figures are also zeroed out.  The month to date sales and cost and unit sold figures are zeroed out in the Item and Item Warehouse Files (ITEM and ITEMWHD).

 

The program also updates or creates the Sales History by Item File (SAHIST.DT).  The SAHIST File stores information by fiscal month.  When the End of Month Field Clearing program is run, a fiscal month is entered.  The SAHIST File is than updated for the inputted fiscal month.  The information stored is the total sales and cost dollar amount, and units sold for each month for each item found in the ITEM File.  The same information is also stored for each item found in the Item Warehouse (ITEMWHD) File.  The End Of Month Field Clearing program transfers the sales and cost information to the SAHIST File prior to zeroing it out of the Item and Item Warehouse Files.  At the end of the year, the End Of Year Field Clearing program is run.  This transfers all 12 months of information found in the SAHIST file to last year fields in the SAHIST File.  SAHIST stores the current and last year total sales, cost, and units sold per month per item and warehouse.

 

The End of Month Field Clearing program updates the existing SAHIST File if one already exists.  If there is not an existing SAHIST File, one is created.  Each item from the Item File and Item Warehouse File is checked to see if the month to date sales, cost, and units sold are zero in the Item File and Item Warehouse File.  If they are all zero, the item is not searched for in the SAHIST File.  If they are not all zero, the item is searched in the existing SAHIST File for a match on the product class and item number and warehouse.  If one is found, the SAHIST record is updated for the fiscal month.  If one is not found, an SAHIST File is created and than updated for the fiscal month.  Upon creation of the SAHIST File, the current vendor number is also stored.  The vendor number is not updated after the original creation.  Because the program matches the product class if an item has a product class change and sales occur, a new SAHIST File is created for that product class.  The other record remains but is no longer updated.

 

Modifications to the End Of Month Field Clearing program have been made in Revision 12:

 Rev 14 Changes

 

Accounts Receivable

Master Menu