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

439 lines
18 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="Invoice_tva" 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.0"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<style name="table">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TH" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table_CH" mode="Opaque" backcolor="#FFBFBF">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 1">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 1_TH" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 1_CH" mode="Opaque" backcolor="#FFBFBF">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 1_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 2">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 2_TH" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 2_CH" mode="Opaque" backcolor="#FFBFBF">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 2_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="Style_1" backcolor="#CCCCCC"/>
<style name="Text Body" mode="Opaque"/>
<style name="table 3">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 3_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<topPen lineWidth="0.0" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 3_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<topPen lineWidth="0.0" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 3_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<topPen lineWidth="0.0" lineColor="#000000"/>
<bottomPen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 4">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 4_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 4_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 4_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.0" lineColor="#000000"/>
</box>
</style>
<style name="table 5">
<box>
<pen lineWidth="0.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>
<style name="table 6">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table 6_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 6_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 6_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 7">
<box>
<pen lineWidth="1.0" lineColor="#000000"/>
</box>
</style>
<style name="table 7_TH" mode="Opaque" backcolor="#F0F8FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 7_CH" mode="Opaque" backcolor="#BFE1FF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<style name="table 7_TD" mode="Opaque" backcolor="#FFFFFF">
<box>
<pen lineWidth="0.5" lineColor="#000000"/>
</box>
</style>
<subDataset name="dataset1" uuid="caf372ed-b5fb-4515-871b-63c01682a70b">
<queryString language="xPath">
<![CDATA[/invoice/amount/taxes/tax]]>
</queryString>
<field name="name" class="java.lang.String">
<fieldDescription><![CDATA[name]]></fieldDescription>
</field>
<field name="amountHT" class="java.lang.Double">
<fieldDescription><![CDATA[amountHT]]></fieldDescription>
</field>
<field name="amount" class="java.lang.Double">
<fieldDescription><![CDATA[amount]]></fieldDescription>
</field>
<field name="percent" class="java.lang.Double">
<fieldDescription><![CDATA[percent]]></fieldDescription>
</field>
<field name="total" class="java.lang.Double">
<fieldDescription><![CDATA[ancestor::taxes/@total]]></fieldDescription>
</field>
<sortField name="percent"/>
</subDataset>
<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>
<parameter name="xmlDateFormat" class="java.lang.String" isForPrompting="false">
<parameterDescription><![CDATA[]]></parameterDescription>
<defaultValueExpression><![CDATA["dd/MM/yyyy"]]></defaultValueExpression>
</parameter>
<queryString language="xPath">
<![CDATA[/invoice]]>
</queryString>
<field name="amountWithTax" class="java.lang.Double">
<fieldDescription><![CDATA[/invoice/amount/amountWithTax]]></fieldDescription>
</field>
<field name="dueDate" class="java.lang.String">
<fieldDescription><![CDATA[/invoice/header/dueDate]]></fieldDescription>
</field>
<group name="subCategory"/>
<group name="1"/>
<group name="2">
<groupHeader>
<band height="101">
<componentElement>
<reportElement key="" positionType="Float" isPrintRepeatedValues="false" x="332" y="16" width="249" height="30" isPrintWhenDetailOverflows="true" forecolor="#000000" uuid="0be238f7-ed26-41ca-877d-3e29084f5c7c"/>
<jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd">
<datasetRun subDataset="dataset1" uuid="686ce5b3-d948-4909-9ef6-e974d9c647d3">
<dataSourceExpression><![CDATA[$P{REPORT_DATA_SOURCE}.dataSource("/invoice/amount/taxes/tax")]]></dataSourceExpression>
</datasetRun>
<jr:column width="73" uuid="c68583b1-d285-4852-b53b-ffc158bcdb0a">
<jr:tableHeader height="14" rowSpan="1">
<box>
<bottomPen lineWidth="1.0" lineColor="#999999"/>
</box>
<staticText>
<reportElement x="0" y="0" width="73" height="14" uuid="001903c8-d9b3-4994-9f6f-25eff06ca2f7">
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>
</reportElement>
<box leftPadding="2">
<leftPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<text><![CDATA[Tax rate]]></text>
</staticText>
</jr:tableHeader>
<jr:detailCell height="15" rowSpan="1">
<box>
<pen lineWidth="0.0" lineColor="#999999"/>
<topPen lineWidth="0.0" lineColor="#999999"/>
<leftPen lineWidth="0.0" lineColor="#999999"/>
<bottomPen lineWidth="1.0" lineColor="#999999"/>
<rightPen lineWidth="0.0" lineColor="#999999"/>
</box>
<textField pattern="#,##0.00">
<reportElement x="0" y="0" width="73" height="15" uuid="99bfc2c1-28d2-40b4-ad71-fa8bacbaae1b"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{percent}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="100" uuid="afc2979a-5bda-4d72-85f7-27aa5224b4d2">
<jr:tableHeader height="14" rowSpan="1">
<box>
<bottomPen lineWidth="1.0" lineColor="#999999"/>
</box>
<staticText>
<reportElement x="0" y="0" width="100" height="14" uuid="c3db3984-5c1f-4e6f-a716-df003cea2545">
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>
</reportElement>
<box leftPadding="2">
<leftPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<text><![CDATA[Amount w/o tax]]></text>
</staticText>
</jr:tableHeader>
<jr:tableFooter height="19" rowSpan="1">
<staticText>
<reportElement x="0" y="2" width="100" height="16" uuid="d5bfbc3f-ef3f-40d7-bd17-1bf22a0d3acb">
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>
</reportElement>
<box leftPadding="2">
<leftPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<text><![CDATA[Total tax]]></text>
</staticText>
</jr:tableFooter>
<jr:detailCell height="15" rowSpan="1">
<box>
<pen lineWidth="0.0"/>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="1.0" lineColor="#999999"/>
<rightPen lineWidth="0.0"/>
</box>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="0" y="0" width="100" height="15" isPrintWhenDetailOverflows="true" uuid="c920bb46-e4c6-4099-acc3-2c4daaaf9a2d"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{amountHT}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
<jr:column width="75" uuid="6171bbf3-941d-4db4-a299-2d5c8eeb84ef">
<jr:tableHeader height="14" rowSpan="1">
<box>
<bottomPen lineWidth="1.0" lineColor="#999999"/>
</box>
<staticText>
<reportElement x="0" y="0" width="75" height="14" forecolor="#000000" uuid="e9983996-43ab-4f3e-a7a1-42ca8d93f97b">
<printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression>
</reportElement>
<box leftPadding="2">
<leftPen lineWidth="0.0"/>
<rightPen lineWidth="0.0"/>
</box>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<text><![CDATA[Tax amount]]></text>
</staticText>
</jr:tableHeader>
<jr:tableFooter height="19" rowSpan="1">
<textField pattern="#,##0.00">
<reportElement x="0" y="2" width="75" height="16" uuid="d3f02d7c-0178-4497-ba8b-ee05af8fe234"/>
<textElement textAlignment="Right">
<font fontName="DejaVu Sans" size="11"/>
</textElement>
<textFieldExpression><![CDATA[$F{total}]]></textFieldExpression>
</textField>
</jr:tableFooter>
<jr:detailCell height="15" rowSpan="1">
<box>
<pen lineWidth="0.0"/>
<topPen lineWidth="0.0"/>
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="1.0" lineColor="#999999"/>
<rightPen lineWidth="0.0"/>
</box>
<textField isStretchWithOverflow="true" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement x="0" y="0" width="75" height="15" uuid="2ffac03d-e29c-48b8-90eb-d216d2f437e5">
<printWhenExpression><![CDATA[$F{percent} > 1]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{amount}]]></textFieldExpression>
</textField>
</jr:detailCell>
</jr:column>
</jr:table>
</componentElement>
<line>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="14" y="82" width="565" height="1" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" forecolor="#999999" uuid="647471f5-fed9-44d6-a194-0e370ca0c47d"/>
<graphicElement>
<pen lineWidth="1.0" lineStyle="Solid" lineColor="#CCCCCC"/>
</graphicElement>
</line>
<textField isStretchWithOverflow="true" pattern="yyyy-MM-dd" isBlankWhenNull="true">
<reportElement positionType="FixRelativeToBottom" isPrintRepeatedValues="false" x="156" y="66" width="84" height="16" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" uuid="e4801c46-83f9-43ed-b18b-bacb49c2543a"/>
<textElement verticalAlignment="Middle" markup="html">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[new SimpleDateFormat($P{xmlDateFormat}).parse($F{dueDate})]]></textFieldExpression>
</textField>
<line>
<reportElement positionType="Float" x="14" y="65" width="565" height="1" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" forecolor="#999999" uuid="ac276ca6-3de3-4d8c-9197-dac9bccf0fa8"/>
<graphicElement>
<pen lineWidth="1.0" lineStyle="Solid" lineColor="#CCCCCC"/>
</graphicElement>
</line>
<textField isStretchWithOverflow="true" evaluationTime="Group" evaluationGroup="1" pattern="#,##0.00" isBlankWhenNull="true">
<reportElement positionType="FixRelativeToBottom" isPrintRepeatedValues="false" x="497" y="66" width="82" height="16" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" uuid="366857d4-ed81-4e6b-bc22-a05c34b72bbe"/>
<box rightPadding="2"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA[$F{amountWithTax}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true">
<reportElement positionType="FixRelativeToBottom" mode="Transparent" x="16" y="67" width="130" height="14" isRemoveLineWhenBlank="true" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" backcolor="#CCCCCC" uuid="dd7f08e4-67eb-49b6-a25e-3b4c31224594"/>
<box rightPadding="2"/>
<textElement verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<textFieldExpression><![CDATA["Due date"]]></textFieldExpression>
</textField>
<staticText>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="442" y="65" width="57" height="16" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" uuid="37e32c9c-fb15-4240-ae64-a350dbcf87d9"/>
<box leftPadding="2"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<text><![CDATA[Total due]]></text>
</staticText>
</band>
</groupHeader>
</group>
<pageFooter>
<band height="77" splitType="Stretch">
<frame>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="16" y="4" width="566" height="72" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" uuid="a8e25a99-d344-46e1-b7af-123717487b49"/>
<box>
<pen lineWidth="1.0" lineColor="#EEEEEE"/>
<topPen lineWidth="1.0" lineColor="#EEEEEE"/>
<leftPen lineWidth="1.0" lineColor="#EEEEEE"/>
<bottomPen lineWidth="1.0" lineColor="#EEEEEE"/>
<rightPen lineWidth="1.0" lineColor="#EEEEEE"/>
</box>
<staticText>
<reportElement positionType="Float" isPrintRepeatedValues="false" mode="Opaque" x="0" y="0" width="565" height="19" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" backcolor="#EEEEEE" uuid="a2e1acc4-9c35-4a3b-af67-5b0493e78118"/>
<box leftPadding="2"/>
<textElement verticalAlignment="Middle" markup="none">
<font fontName="DejaVu Sans" isBold="false"/>
</textElement>
<text><![CDATA[Payment conditions]]></text>
</staticText>
</frame>
<staticText>
<reportElement positionType="Float" isPrintRepeatedValues="false" x="16" y="14" width="565" height="62" isPrintInFirstWholeBand="true" isPrintWhenDetailOverflows="true" uuid="a9724b66-12de-436b-98cb-9447fdbe2adf"/>
<box leftPadding="2">
<pen lineColor="#FFFFFF"/>
<topPen lineColor="#FFFFFF"/>
<leftPen lineColor="#FFFFFF"/>
<bottomPen lineColor="#FFFFFF"/>
<rightPen lineColor="#FFFFFF"/>
</box>
<textElement verticalAlignment="Middle" markup="html">
<font fontName="DejaVu Sans" size="11" isBold="false"/>
</textElement>
<text><![CDATA[No early payment discount<br/>
Any amounts owed that are not paid when due shall bear interest, from the time the payment was due until the time paid, at a rate of 10% per annum compounded annually.]]></text>
</staticText>
</band>
</pageFooter>
</jasperReport>