billing/input-files/DEMO/jasper/default/invoice/invoice.jrxml
2025-02-18 14:52:38 +03:00

611 lines
28 KiB
XML

<?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="B2B_Invoice" language="groovy" pageWidth="595" pageHeight="842" columnWidth="595" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" isSummaryNewPage="true" uuid="801855a9-548e-443b-81d5-d27d42b5df88">
<property name="ireport.zoom" value="1.4641000000000013"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<style name="table">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#FFBFBF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 1">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table 1_TH" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 1_CH" mode="Opaque" backcolor="#FFBFBF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 1_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 2">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table 2_TH" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 2_CH" mode="Opaque" backcolor="#FFBFBF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 2_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="Style_1" backcolor="#CCCCCC"/>
<style name="Text Body" mode="Opaque"/>
<style name="table 3">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table 3_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<topPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 3_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<topPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 3_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<topPen lineWidth="0.5" lineColor="#000000"/>
<bottomPen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 4">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table 4_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 4_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 4_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 5">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table 5_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 5_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 5_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<parameter name="logoPath" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["./"]]></defaultValueExpression>
</parameter>
<parameter name="messagePath" class="java.lang.String" isForPrompting="false">
<defaultValueExpression><![CDATA["./"]]></defaultValueExpression>
</parameter>
<queryString language="xPath">
<![CDATA[/invoice]]>
</queryString>
<field name="customerID" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/@customerAccountCode]]></fieldDescription>
</field>
<field name="invoiceDate" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/invoiceDate]]></fieldDescription>
</field>
<field name="amountWithoutTax" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/amount/amountWithoutTax]]></fieldDescription>
</field>
<field name="amountWithTax" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/amount/amountWithTax]]></fieldDescription>
</field>
<field name="amountTax" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/amount/taxes/@total]]></fieldDescription>
</field>
<field name="amountWithoutTax2" class="java.lang.String">
<fieldDescription><![CDATA[ancestor::category/amountWithoutTax]]></fieldDescription>
</field>
<field name="amountWithTax2" class="java.lang.String">
<fieldDescription><![CDATA[ancestor::category/amountWithTax]]></fieldDescription>
</field>
<field name="code" class="java.lang.String">
<fieldDescription><![CDATA[@code]]></fieldDescription>
</field>
<field name="quantity" class="java.lang.Double">
<fieldDescription><![CDATA[quantity]]></fieldDescription>
</field>
<field name="unitPrice1" class="java.lang.String">
<fieldDescription><![CDATA[unitPrice1]]></fieldDescription>
</field>
<field name="amountWithoutTax3" class="java.lang.String">
<fieldDescription><![CDATA[amountWithoutTax]]></fieldDescription>
</field>
<field name="amountWithTax3" class="java.lang.String">
<fieldDescription><![CDATA[amountWithTax]]></fieldDescription>
</field>
<field name="bil_quality" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/name/quality]]></fieldDescription>
</field>
<field name="bil_name" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/name/name]]></fieldDescription>
</field>
<field name="bil_firstname" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/name/firstname]]></fieldDescription>
</field>
<field name="bil_address1" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/address/address1]]></fieldDescription>
</field>
<field name="bil_address2" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/address/address2]]></fieldDescription>
</field>
<field name="bil_address3" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/address/address3]]></fieldDescription>
</field>
<field name="bil_city" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/address/city]]></fieldDescription>
</field>
<field name="bil_postalCode" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/address/postalCode]]></fieldDescription>
</field>
<field name="bil_email" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/email]]></fieldDescription>
</field>
<field name="bil_bankCode" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/paymentMethod/bankCoordinates/bankCode]]></fieldDescription>
</field>
<field name="bil_branchCode" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/paymentMethod/bankCoordinates/branchCode]]></fieldDescription>
</field>
<field name="bil_accountNumber" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/paymentMethod/bankCoordinates/accountNumber]]></fieldDescription>
</field>
<field name="bil_key" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/paymentMethod/bankCoordinates/key]]></fieldDescription>
</field>
<field name="bil_IBAN" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/paymentMethod/bankCoordinates/IBAN]]></fieldDescription>
</field>
<field name="user_name" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/detail/userAccounts/userAccount/name/name]]></fieldDescription>
</field>
<field name="user_address1" class="java.lang.String">
<fieldDescription><![CDATA[ancestor::userAccount/address/address1]]></fieldDescription>
</field>
<field name="user_address2" class="java.lang.String">
<fieldDescription><![CDATA[ancestor::userAccount/address/address2]]></fieldDescription>
</field>
<field name="user_address3" class="java.lang.String">
<fieldDescription><![CDATA[ancestor::userAccount/address/address3]]></fieldDescription>
</field>
<field name="user_city" class="java.lang.String">
<fieldDescription><![CDATA[ancestor::userAccount/address/city]]></fieldDescription>
</field>
<field name="user_postalCode" class="java.lang.String">
<fieldDescription><![CDATA[ancestor::userAccount/address/postalCode]]></fieldDescription>
</field>
<field name="unitPrice2" class="java.lang.String">
<fieldDescription><![CDATA[unitPrice2]]></fieldDescription>
</field>
<field name="custAccountdesc" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/@description]]></fieldDescription>
</field>
<field name="custAccountContractDate" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/@externalRef2]]></fieldDescription>
</field>
<field name="custAccountquality" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/name/quality]]></fieldDescription>
</field>
<field name="custAccountname" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/name/name]]></fieldDescription>
</field>
<field name="custAccountaddress1" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/address/address1]]></fieldDescription>
</field>
<field name="custAccountaddress2" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/address/address2]]></fieldDescription>
</field>
<field name="custAccountaddress3" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/address/address3]]></fieldDescription>
</field>
<field name="custAccountcity" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/address/city]]></fieldDescription>
</field>
<field name="custAccountpostalCode" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/address/postalCode]]></fieldDescription>
</field>
<field name="balance" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/amount/balance]]></fieldDescription>
</field>
<field name="netToPay" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/amount/netToPay]]></fieldDescription>
</field>
<field name="accountTerminated" class="java.lang.Boolean">
<fieldDescription><![CDATA[/invoice/header/customerAccount/@accountTerminated]]></fieldDescription>
</field>
<field name="providerContactLastName" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/providerContact/lastname]]></fieldDescription>
</field>
<field name="providerContactFirstName" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/providerContact/firstName]]></fieldDescription>
</field>
<field name="providerContactGenericEmail" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/@externalRef1]]></fieldDescription>
</field>
<field name="providerContactEmail" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/providerContact/email]]></fieldDescription>
</field>
<field name="providerContactPhone" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/providerContact/phone]]></fieldDescription>
</field>
<field name="bil_accountOwner" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/paymentMethod/bankCoordinates/accountOwner]]></fieldDescription>
</field>
<field name="bilPaymentMethod" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/billingAccount/paymentMethod/@type]]></fieldDescription>
</field>
<field name="invoiceNumber" class="java.lang.String">
<fieldDescription><![CDATA[@number]]></fieldDescription>
</field>
<field name="label" class="java.lang.String">
<fieldDescription><![CDATA[ancestor::category/@label]]></fieldDescription>
</field>
<field name="label2" class="java.lang.String">
<fieldDescription><![CDATA[ancestor::subCategory/@label]]></fieldDescription>
</field>
<field name="label3" class="java.lang.String">
<fieldDescription><![CDATA[label]]></fieldDescription>
</field>
<field name="usageDate" class="java.lang.String">
<fieldDescription><![CDATA[usageDate]]></fieldDescription>
</field>
<field name="unitAmountWithoutTax" class="java.lang.String">
<fieldDescription><![CDATA[unitAmountWithoutTax]]></fieldDescription>
</field>
<field name="taxPercent" class="java.lang.Double">
<fieldDescription><![CDATA[ancestor::subCategory/@taxPercent]]></fieldDescription>
</field>
<field name="regroupement" class="java.lang.String">
<fieldDescription><![CDATA[ancestor::subCategory/@label]]></fieldDescription>
</field>
<field name="name" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/name/name]]></fieldDescription>
</field>
<field name="address1" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/address/address1]]></fieldDescription>
</field>
<field name="address2" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/address/address2]]></fieldDescription>
</field>
<field name="postalCode" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/address/postalCode]]></fieldDescription>
</field>
<field name="city" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/address/city]]></fieldDescription>
</field>
<field name="externalRef1" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/@externalRef1]]></fieldDescription>
</field>
<field name="address3" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/customerAccount/address/address3]]></fieldDescription>
</field>
<field name="adjustedInvNo" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/@adjustedInvoiceNumber]]></fieldDescription>
</field>
<field name="invoiceType" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/@type]]></fieldDescription>
</field>
<field name="count" class="java.lang.Integer">
<fieldDescription><![CDATA[count(/invoice/detail/userAccounts/userAccount/categories/category/subCategories/subCategory/line)]]></fieldDescription>
</field>
<field name="adjustedInvoiceNumber" class="java.lang.Integer">
<fieldDescription><![CDATA[count(@adjustedInvoiceNumber)]]></fieldDescription>
</field>
<group name="1">
<groupExpression><![CDATA[$F{user_name}]]></groupExpression>
<groupHeader>
<band height="172">
<elementGroup>
<rectangle radius="10">
<reportElement mode="Transparent" x="275" y="1" width="300" height="131" forecolor="#999999" uuid="21909fd2-6e38-4625-9533-41b75b6332c7"/>
<graphicElement>
<pen lineWidth="0.5" lineStyle="Dotted"/>
</graphicElement>
</rectangle>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="295" y="26" width="231" height="12" uuid="13b3733c-09cb-4e6d-aa8b-41d90cfa7a9c">
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>
</reportElement>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{name}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="295" y="88" width="231" height="12" uuid="91336bf5-5d11-4bc2-983f-9ef9b0050ac2">
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>
</reportElement>
<textElement markup="html">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{postalCode}.equals("")?"":$F{postalCode}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="295" y="46" width="231" height="12" uuid="3030c6c9-94bc-432b-aa9b-fe0915ad3f34">
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>
</reportElement>
<textElement markup="html">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{address1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="295" y="57" width="231" height="12" uuid="00c2a461-9c50-494d-aa04-2e3a083bb3c1">
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>
</reportElement>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{address2}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="295" y="68" width="231" height="12" uuid="6ef7d6e3-a610-439a-a4ef-7e349cd6d2ec">
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>
</reportElement>
<textElement>
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{address3}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="295" y="99" width="231" height="12" uuid="4b578ef6-7b30-4121-90bb-9b56c2bd787a">
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>
</reportElement>
<textElement markup="html">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{city}.equals("")?"":$F{city}]]></textFieldExpression>
</textField>
</elementGroup>
<elementGroup>
<rectangle radius="10">
<reportElement mode="Transparent" x="22" y="1" width="240" height="132" forecolor="#999999" uuid="5d771da5-cddf-4296-897c-e7adc32d4c81"/>
<graphicElement>
<pen lineWidth="0.5" lineStyle="Dotted"/>
</graphicElement>
</rectangle>
<staticText>
<reportElement x="32" y="24" width="173" height="15" uuid="42a22e53-36c1-435c-a925-7471f25e09be">
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>
</reportElement>
<box leftPadding="2"/>
<textElement textAlignment="Justified" verticalAlignment="Top">
<font fontName="SansSerif" isBold="false"/>
</textElement>
<text><![CDATA[OPENTHING]]></text>
</staticText>
<staticText>
<reportElement x="32" y="38" width="173" height="32" uuid="dc2d1580-025c-4535-ab33-85bb1076c996">
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>
</reportElement>
<box leftPadding="2"/>
<textElement textAlignment="Justified" verticalAlignment="Top">
<font fontName="SansSerif" isBold="false"/>
</textElement>
<text><![CDATA[14 rue Crespin du Gast
75011 PARIS]]></text>
</staticText>
<staticText>
<reportElement x="32" y="67" width="173" height="44" isPrintWhenDetailOverflows="true" uuid="f87af113-c98f-43fa-988d-056e838fd7a2">
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>
</reportElement>
<box leftPadding="2"/>
<textElement textAlignment="Justified" verticalAlignment="Top">
<font fontName="SansSerif" isBold="false"/>
</textElement>
<text><![CDATA[
+33 123 456 789
sales@openthing.com]]></text>
</staticText>
</elementGroup>
</band>
</groupHeader>
</group>
<group name="2">
<groupHeader>
<band height="52">
<subreport isUsingCache="true" runToBottom="false">
<reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="0" width="509" height="52" uuid="b44bd58e-33aa-493f-b247-b40b3da8d9e3"/>
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).dataSource("/invoice/detail/userAccounts/userAccount/categories/category/subCategories/subCategory")]]></dataSourceExpression>
<subreportExpression><![CDATA[$P{messagePath}+"/invoice_categories.jasper"]]></subreportExpression>
</subreport>
</band>
</groupHeader>
</group>
<group name="subCategory"/>
<group name="3">
<groupHeader>
<band height="50">
<break>
<reportElement isPrintRepeatedValues="false" x="0" y="49" width="100" height="1" uuid="46b6e50d-bba8-4b7c-a6f7-bdf27555ae59">
<printWhenExpression><![CDATA[$F{count}>0]]></printWhenExpression>
</reportElement>
</break>
<subreport isUsingCache="true" runToBottom="false">
<reportElement isPrintRepeatedValues="false" x="0" y="0" width="509" height="49" uuid="3c6dcd4b-38d1-4096-b8cd-54f56b3ae9f7"/>
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).dataSource("/invoice")]]></dataSourceExpression>
<subreportExpression><![CDATA[$P{messagePath}+"/invoice_tva.jasper"]]></subreportExpression>
</subreport>
</band>
</groupHeader>
</group>
<group name="4">
<groupHeader>
<band height="55">
<subreport isUsingCache="false" runToBottom="false">
<reportElement positionType="Float" isPrintRepeatedValues="false" x="1" y="0" width="508" height="52" isPrintWhenDetailOverflows="true" uuid="973ef3bd-d5d1-4db9-b2d8-1d5dd659abca"/>
<dataSourceExpression><![CDATA[((net.sf.jasperreports.engine.data.JRXmlDataSource)$P{REPORT_DATA_SOURCE}).dataSource("/invoice/detail/userAccounts/userAccount/categories/category/subCategories/subCategory/line")]]></dataSourceExpression>
<subreportExpression><![CDATA[$P{messagePath}+"/invoice_detail.jasper"]]></subreportExpression>
</subreport>
</band>
</groupHeader>
</group>
<pageHeader>
<band height="125">
<rectangle>
<reportElement mode="Opaque" x="371" y="24" width="209" height="65" forecolor="#CCCCCC" backcolor="#CCCCCC" uuid="301bc202-ec47-4be4-9144-1ccecccd72cc"/>
</rectangle>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement mode="Transparent" x="445" y="36" width="135" height="13" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" backcolor="#CCCCCC" uuid="9254a0b5-42c6-4759-be1f-610ef29327b3"/>
<box rightPadding="2"/>
<textElement textAlignment="Right">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{invoiceDate}]]></textFieldExpression>
</textField>
<staticText>
<reportElement mode="Transparent" x="371" y="36" width="72" height="13" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" backcolor="#CCCCCC" uuid="a3d705b3-efa8-4e0a-b1fd-43a8afbaee78"/>
<textElement markup="none">
<font size="10"/>
</textElement>
<text><![CDATA[Invoice date]]></text>
</staticText>
<staticText>
<reportElement mode="Transparent" x="371" y="23" width="72" height="13" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" backcolor="#CCCCCC" uuid="a5410dab-b69a-4ee2-bdd6-403382a425c5"/>
<textElement markup="none">
<font size="10"/>
</textElement>
<text><![CDATA[Invoice #]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement mode="Transparent" x="445" y="49" width="135" height="13" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" backcolor="#CCCCCC" uuid="308017f9-1ac8-4d9f-b0b0-4c9ab71b95c6"/>
<box rightPadding="2"/>
<textElement textAlignment="Right">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{customerID}]]></textFieldExpression>
</textField>
<staticText>
<reportElement mode="Transparent" x="371" y="49" width="72" height="13" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" backcolor="#CCCCCC" uuid="eeeeba3a-51db-4f25-a733-597f7ea27d5c"/>
<textElement markup="none">
<font size="10"/>
</textElement>
<text><![CDATA[Customer]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement mode="Transparent" x="445" y="23" width="135" height="13" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" backcolor="#CCCCCC" uuid="69f91cb5-f806-42cc-9588-2dbf3007fbd6"/>
<box rightPadding="2"/>
<textElement textAlignment="Right">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{invoiceNumber}]]></textFieldExpression>
</textField>
<image scaleImage="FillFrame">
<reportElement x="22" y="24" width="260" height="47" uuid="d4627a82-65e4-4ae1-b1ed-073b03a7181c"/>
<imageExpression><![CDATA[$P{logoPath}+"logo.png"]]></imageExpression>
</image>
<staticText>
<reportElement mode="Transparent" x="371" y="62" width="73" height="13" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" backcolor="#CCCCCC" uuid="c2c6a38e-5881-47fe-bb02-14f63e25dd58"/>
<textElement textAlignment="Justified" markup="none">
<font size="10"/>
</textElement>
<text><![CDATA[VAT Number]]></text>
</staticText>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement mode="Transparent" x="445" y="62" width="135" height="13" isPrintWhenDetailOverflows="true" backcolor="#CCCCCC" uuid="3c60aac9-32a2-4acb-9cd4-761211af9c8c"/>
<textElement textAlignment="Right" markup="none">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{externalRef1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement x="445" y="76" width="135" height="13" isPrintWhenDetailOverflows="true" uuid="06d55e87-dd96-44dc-b33e-18623b80aade"/>
<textElement textAlignment="Right">
<font isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[$F{invoiceType}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement x="534" y="105" width="41" height="20" uuid="1352ea8c-67df-4e57-a78f-1218fd2a572a"/>
<textElement textAlignment="Right" verticalAlignment="Top">
<font fontName="SansSerif"/>
</textElement>
<textFieldExpression><![CDATA["Page "+$V{PAGE_NUMBER}+" / "]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="282" y="24" width="89" height="48" uuid="1f8cc5fb-84b3-4574-aa35-c72f4478d00a">
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}!=1]]></printWhenExpression>
</reportElement>
<box leftPadding="2"/>
<textElement textAlignment="Center" verticalAlignment="Middle" markup="html">
<font fontName="SansSerif" isBold="true"/>
</textElement>
<text><![CDATA[Appendix<br/>]]></text>
</staticText>
<staticText>
<reportElement mode="Transparent" x="371" y="75" width="73" height="13" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" backcolor="#CCCCCC" uuid="d48c79cd-0701-4a39-ab5f-20ff3473b07c"/>
<textElement verticalAlignment="Middle" markup="none">
<font size="10"/>
</textElement>
<text><![CDATA[Invoice type]]></text>
</staticText>
<textField evaluationTime="Report">
<reportElement x="561" y="105" width="19" height="20" uuid="70ddbde0-a609-410d-8301-143597ebd6fe"/>
<textElement textAlignment="Right" markup="html">
<font fontName="SansSerif"/>
</textElement>
<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
</textField>
</band>
</pageHeader>
</jasperReport>