INVOICE: Printing a Customer Invoice

INVOICE prints a customer invoice on pre-printed stationery. In this report, the standard Report Writer page headings are switched off, and the predefined variable TODAY is used to print today's date.

Table Details and Type

The report is sequenced by customer.

Program Type:

Report

Page Width:

80

Lowest table:

ORDER_LINE

Fast pass table:

CUSTOMER

Sequencing table:

CUSTOMER

Report Heading

"CUSTOMER INVOICE Acme Product Sales Plc".

Field Processing

The main features of the field processing are:

Nr Name             Type Occurs Sort Tot List L/Brk P/Brk Rpt Page Break Fold
1 NAME C30 Yes No No No Yes Yes Yes
in CUSTOMER
2 ADDRESS C30 1-3 Yes No No No No No Yes
in CUSTOMER
3 STATEMENT_DATE D10 Yes No No No No No Yes
4 ORDER_NUMBER L5 No Yes No Yes No No No No
5 LINE I3 No Yes No No Yes No No No
6 DESCRIPTION C20 Yes No Yes Yes No No No
7 QUANTITY I5 No Yes No Yes Yes No No No
in ORDER_LINE
8 LINE_VALUE N8.2 Yes Yes Yes Yes Yes No No No

Record Selection Condition

All records from the CUSTOMER table are selected.

Output Options

Pause after each page ? 'Yes' allows you to view the report page by page. Suppress 1 item totals ? 'Yes' stops a LINE_VALUE total being printed when the invoice only contains one line.

Screen ?      Yes                Blank character
Printer ? No Remove trailing blanks ?
File ? Yes
Print device DEFAULT_PRINTER Ask for start/stop values ? No
File Name INV Pause after each page ? Yes
Repeat fold headers ? No Subtotal only program ? No
Print date/time/pagenr ? No Suppress 1 item totals ? Yes
Spacing after last fold 1 Suppress grand totals ? Yes
Spacing at end of page 6

Printing the Report

REPPRINT -DB SALESORD -PROG INVOICE