generate/cbs2.gif Transaction Print Hook generate/en72.jpg


 

These script files must be located in your CAPITAL program directory and must have a file name matching the contents of the following table:

File name

Transaction

R-PRNORD.MAC

Sales Order

R-PRNQUO.MAC

Quotations

R-PRNPUR.MAC

Purchase Order

R-PRNREC.MAC

Stock Receipts

R-PRNRET.MAC

Stock Returns

R-PRNREQ.MAC

Requisitions

R-PRNINV.MAC

Invoicing

R-PRNTRA.MAC

*Stock Transfers

*Enterprise & Corporate Edition Only

The forms specified in these hooks are generated after other standard documents are printed.

Entry Values

None.

Return Values

You must return a two element array or FALSE.

If you are returning a two element array, the first element contains the form to print and the second element the number of copies to print.

If you return FALSE, print job processing is skipped.

Example

* Print the form "order" if the customer's category

* starts with the letter A

If Upper(Custrec->Cuscat) = "A"

   Return { "Order", 2 }

Endif

____________________________

Related Topics:

Scripting Hooks

Script Programming



Help Topic Map