You are here: Development Standards > Routines > Application-SpecificRoutines > ARCJFOAI.PUB

# ARCJFOAI.PUB

ARCJFOAI.PUB is a public program that will generate a BBj PDF AIA invoice form from properly formatted data files. This program will take the data and produce an AIA invoice looking similiar to the OSAS AIA form.

PRINT_FORM:

This entry point is used to print an AIA invoice form after data is set up in temporary files.

`0050 PRINT_FORM:`
`0060 ENTER APPLINFO$,ARCJAFH$,ARCJAFD$,FILE[ALL]`

Variable | Description
APPLINFO$ | Template used for generic form information
ARCJAFH$ | Template for AIA invoice header temporary file
ARCJAFD$ | Template for AIA invoice detail temporary file
FILE[ALL] | Standard file array

Exit Points | Explanation
EXIT | ARCJFOAI.PUB normally exits with no error.

GET_TEMPLATES:

This entry point is to retrieve the template format that will be set up and used for general form information, as well as the temporary files built for use for printing AIA invoices.

`5010 GET_TEMPLATES:`
`5020 ENTER APPLINFO$,ARCJAFH$,ARCJAFD$`

Variable | Description
APPLINFO$ | Template used for generic form information
ARCJAFH$ | Template for AIA invoice header temporary file
ARCJAFD$ | Template for AIA invoice detail temporary file

The APPLINFO$ template has the following format:

Field | Description
PRINTNAME:C(30*) | BBj Java name of printer to print to
FORMID:C(8*) | Form ID from scratch files to print
OUTPATH:C(65*) | Path and name of PDF file to generate if e-mailing or printing to file
COPYTEXT:C(15*) | Text to print if printing multiple copies of form
INDEXHEAD:N(2*) | FILE[x] element that header scratch file is opened on (ARCJAFHxxx)
INDEXDETL:N(2*) | FILE[x] element that detail scratch file is opened on (ARCJAFDxxx)
COMPNAME:C(30*) | Current company’s name
COMPADD1:C(30*) | Current company’s Address Line 1
COMPADD2:C(30*) | Current company’s Address Line 2
COMPADD3:C(30*) | Current company’s Address Line 3
FORMPROG:C(12*) | "ARCJFOAI.PUB". Set in a variable so that the multicopy form printing program knows what program to call to print AIA invoices
TITLE:C(40*) | Not used

See the CJC Accounts Receivable file layouts for ARCJAFHxxx and ARCJAFDxxx for layouts of the temporary files and their templates.