Anatomy of an invoice report
- Report Header — logo, company details, invoice number and date, bill-to/ship-to blocks.
- Group Header (one per invoice, if generating a batch) — customer name, invoice number, terms.
- Detail band — one row per line item, bound directly to your query's columns via the Query Columns panel.
- Group Footer — subtotal, tax, and total-due summary fields, computed with named formulas.
- Page Footer — page numbers, remittance instructions, a barcode/QR code encoding the invoice number for scanning.
- A Subreport element for anything nested (e.g. a payment-history block per customer), with parent → child parameter mapping.
Single invoice vs. a batch run
For one invoice on demand — a "Print Invoice" button on an APEX order-detail page — pass the invoice/order id as a Parameter and call ApexReporter.run() with format: "pdf". For a batch (every invoice generated this billing period), use the report's own grouping to produce one continuous multi-invoice PDF, or drive a scheduled job that renders and emails/delivers each customer's invoice separately — see scheduled reports and emailing reports.
ApexReporter.run({
baseUrl: "https://your-reporter-host:4000",
report: "invoice-report-id-here",
format: "pdf",
parameters: { P_INVOICE_ID: $v("P1_INVOICE_ID") },
target: "_blank",
apiKey: "your-report-api-key"
});
Tax calculation, discount logic, or a "days overdue" status can call an existing PL/SQL function or procedure directly from a report formula or a Before Report trigger — nothing needs to be duplicated or reimplemented outside the database. See the documentation's features section for the Program Units panel.
Beyond PDF
The same invoice design exports to Excel (a formatted, grouped workbook for accounting reconciliation) or CSV (for a downstream AP/AR system) from the identical layout — see Excel reports. No separate design work for each format.
Design an invoice against your own schema
The downloadable trial connects to your own Oracle instance so you can build against real invoice data (1 connection, 5 reports on the trial).
Try Live Demo Download Trial