Developing Jasper Report Solutions for Opentaps
Overview
In this document we will cover the full development of a Jasper Report solution for opentaps. The goal is to cover enough information so that you can create any kind of report or document desired.
The basis for this tutorial is the customer statement PDF that can be generated in the financials application.
It is generated from the Balances by Customer report in the receivables tab. There are many features built into this particular document, which makes it an ideal candidate for study.
The PDF contains one statement for each party that was selected. Each statement contains the following information,
- Customer's billing address (or print not on file)
- Company's logo, address, phone number and other contact information
- A list of invoices that have open (unpaid) amounts
- If the invoice has a due date, then show the number of days since (age date)
- All invoice payments made in the 30 days prior to the statement date
- If the payment is to an invoice that was already paid off, then display the closed invoice for reference
- Total open amount, which must be paid by customer (sum of open amounts)
- Date brackets showing how much is past due and when.
- If any amount is past due, a large PAST DUE will be displayed on the statement
- Layout designed for perforated page with perforation running down the right side
- Information repeated on both sides for purposes of customer and return receipt
As you can see, this is a complex set of information that must be further grouped by partyId. We will cover all the steps in creating this document.
Development Process Overview
The first step in the development is to create a Jasper Report (.jrxml) document using [| JasperSoft iReport]. The goal should be to create the basic layout and formatting for the report using mock data.
This section assumes basic familiarity with iReports. You may want to read our introductory tutorial to iReports first.