<?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="statementItems A5" pageWidth="421" pageHeight="595" columnWidth="421" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0"> <property name="ireport.scriptlethandling" value="0"/> <property name="ireport.encoding" value="UTF-8"/> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <import value="org.openvpms.component.business.domain.im.party.Party"/> <import value="net.sf.jasperreports.engine.*"/> <import value="java.util.*"/> <import value="net.sf.jasperreports.engine.data.*"/> <field name="target.patient.entity.name" class="java.lang.String"/> <field name="target.product.entity" class="java.lang.Object"/> <field name="target.quantity" class="java.math.BigDecimal"/> <field name="target.total" class="java.math.BigDecimal"/> <field name="target.product.entity.name" class="java.lang.String"/> <field name="target.product.entity.displayName" class="java.lang.String"/> <field name="target.product.entity.printedName" class="java.lang.String"/> <field name="target.startTime" class="java.sql.Timestamp"/> <group name="patientGroup"> <groupExpression><![CDATA[$F{target.patient.entity.name}]]></groupExpression> <groupHeader> <band height="18" splitType="Stretch"> <textField isBlankWhenNull="false"> <reportElement key="textField-1" x="58" y="2" width="105" height="15"/> <box> <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineColor="#000000"/> <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement> <font size="10" isBold="true" pdfFontName="Helvetica-Bold"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$F{target.patient.entity.name}]]></textFieldExpression> </textField> </band> </groupHeader> <groupFooter> <band splitType="Stretch"/> </groupFooter> </group> <background> <band splitType="Stretch"/> </background> <title> <band splitType="Stretch"/> </title> <pageHeader> <band splitType="Stretch"/> </pageHeader> <columnHeader> <band splitType="Stretch"/> </columnHeader> <detail> <band height="17" splitType="Stretch"> <textField pattern="#,##0.00" isBlankWhenNull="false"> <reportElement key="textField-2" x="218" y="2" width="100" height="15"/> <box> <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineColor="#000000"/> <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement textAlignment="Right"> <font size="10"/> </textElement> <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{target.total}]]></textFieldExpression> </textField> <textField pattern="###0.00" isBlankWhenNull="false"> <reportElement key="textField-3" x="192" y="2" width="32" height="15"/> <box> <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineColor="#000000"/> <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement textAlignment="Right"> <font size="10"/> </textElement> <textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{target.quantity}]]></textFieldExpression> </textField> <textField isBlankWhenNull="false"> <reportElement key="textField-4" x="58" y="2" width="167" height="15"/> <box> <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> <bottomPen lineWidth="0.0" lineColor="#000000"/> <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> </box> <textElement> <font size="10"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[($F{target.product.entity.printedName} == null) ? $F{target.product.entity.name}: $F{target.product.entity.printedName}]]></textFieldExpression> </textField> <textField pattern="dd/MM" isBlankWhenNull="false"> <reportElement key="textField-5" x="0" y="2" width="58" height="15"/> <textElement/> <textFieldExpression class="java.sql.Timestamp"><![CDATA[$F{target.startTime}]]></textFieldExpression> </textField> </band> </detail> <columnFooter> <band splitType="Stretch"/> </columnFooter> <pageFooter> <band splitType="Stretch"/> </pageFooter> <summary> <band splitType="Stretch"/> </summary> </jasperReport>