You are here: Development Standards > Routines > General Routines > GENTAX2.PUB

# GENTAX2.PUB

GENTAX2.PUB is a public program that updates the Tax Locations file with the amounts in the TAX[ALL] array. This routine is used in posting programs to update RMTHxxx and RMTDxxx.

`0025 ENTER FILE[ALL],GROUP$,CLASS$,LOC$,ADJUST,TAX[ALL],TYPE$,RMGC,RMTD`

Variable | Description
FILE[ALL] | Standard FILE[] array
GROUP$ | Tax group
CLASS$ | Tax class
LOC$ | Tax location for the adjustment
ADJUST | The adjustment amount
TAX[ALL] | The tax array set by GENTAX.PUB
TYPE$ | “S” for a sale or “P” for a purchase Can add “F” for Freight, “M” for Misc., and “A” for Adjustment
RMGC | File index value for the RMGC file
RMTD | File index value for the RMTD file

Exit Points | Explanation
EXIT | GENTAX2.PUB does not return an error.