<?xml version="1.0" encoding="UTF-8" ?> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="receiptItems" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="595" columnSpacing="0" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="0" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <import value="org.openvpms.component.business.domain.im.party.Party" /> <field name="target.name" class="java.lang.String"> <fieldDescription><![CDATA[Payment Type Name]]></fieldDescription> </field> <field name="target.amount" class="java.math.BigDecimal"> <fieldDescription><![CDATA[Payment Amount]]></fieldDescription> </field> <variable name="SUM_target.amount" class="java.math.BigDecimal" resetType="Page" calculation="Sum"> <variableExpression><![CDATA[$F{target.amount}]]></variableExpression> </variable> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="28" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="0" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="30" isSplitAllowed="true" > <line direction="TopDown"> <reportElement x="0" y="0" width="534" height="0" key="line-1"/> <graphicElement stretchType="NoStretch"/> </line> <line direction="TopDown"> <reportElement x="1" y="25" width="534" height="0" key="line-2"/> <graphicElement stretchType="NoStretch"/> </line> <staticText> <reportElement x="61" y="3" width="99" height="19" key="staticText-7"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font pdfFontName="Helvetica" size="12" isBold="false"/> </textElement> <text><![CDATA[Payment Type]]></text> </staticText> <staticText> <reportElement x="436" y="3" width="97" height="19" key="staticText-8"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement textAlignment="Left"> <font pdfFontName="Helvetica" size="12" isBold="false"/> </textElement> <text><![CDATA[Amount]]></text> </staticText> </band> </columnHeader> <detail> <band height="29" isSplitAllowed="true" > <textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="61" y="4" width="178" height="18" key="textField"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{target.name}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="436" y="6" width="100" height="18" key="textField"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font/> </textElement> <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{target.amount}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band height="32" isSplitAllowed="true" > <line direction="TopDown"> <reportElement x="1" y="1" width="532" height="0" key="line-3"/> <graphicElement stretchType="NoStretch"/> </line> <staticText> <reportElement x="61" y="5" width="82" height="19" key="staticText-11"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font pdfFontName="Helvetica" size="12" isBold="false"/> </textElement> <text><![CDATA[TOTAL]]></text> </staticText> <textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" > <reportElement x="436" y="6" width="100" height="19" key="textField"/> <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/> <textElement> <font pdfFontName="Helvetica" size="12" isBold="false"/> </textElement> <textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{SUM_target.amount}]]></textFieldExpression> </textField> </band> </columnFooter> <pageFooter> <band height="40" isSplitAllowed="true" > </band> </pageFooter> <lastPageFooter> <band height="50" isSplitAllowed="true" > </band> </lastPageFooter> <summary> <band height="50" isSplitAllowed="true" > </band> </summary> </jasperReport>