<?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="AcuseCancelacion" pageWidth="612" pageHeight="792" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="041fd329-b27d-44e2-9712-5d45bbb4cabd">
	<property name="com.jaspersoft.studio.data.defaultdataadapter" value="XML_Acuse_Cancelacion"/>
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<queryString language="xPath">
		<![CDATA[/CancelResponse/CancelResult/ID]]>
	</queryString>
	<field name="UUID" class="java.lang.String">
		<fieldDescription><![CDATA[UUID]]></fieldDescription>
	</field>
	<field name="StatusUUID" class="java.lang.String">
		<fieldDescription><![CDATA[StatusUUID]]></fieldDescription>
	</field>
	<field name="DateCancel" class="java.lang.String">
		<fieldDescription><![CDATA[ancestor::CancelResult/@DateCancel]]></fieldDescription>
	</field>
	<field name="VAT" class="java.lang.String">
		<fieldDescription><![CDATA[ancestor::CancelResult/@VAT]]></fieldDescription>
	</field>
	<field name="SignatureValue" class="java.lang.String">
		<fieldDescription><![CDATA[/CancelResponse/SignatureValue]]></fieldDescription>
	</field>
	<variable name="Date" class="java.util.Date" resetType="None">
		<variableExpression><![CDATA[new SimpleDateFormat("yyyy-MM-dd").parse($F{DateCancel}.substring(0,10))]]></variableExpression>
	</variable>
	<variable name="Hour" class="java.lang.String" resetType="None">
		<variableExpression><![CDATA[$F{DateCancel}.substring(11,19)]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<pageHeader>
		<band height="146" splitType="Immediate">
			<staticText>
				<reportElement uuid="83657516-b5eb-47a6-8e91-3a57cc671748" x="244" y="20" width="256" height="20">
					<property name="local_mesure_unitheight" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Center">
					<font fontName="Arial" size="13" isBold="true"/>
				</textElement>
				<text><![CDATA[Canceled Tax Documents]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="cfef981f-fffa-4c5c-8dda-a8871f00a49f" x="244" y="57" width="256" height="18"/>
				<textElement textAlignment="Center">
					<font fontName="Arial" size="11" isBold="true"/>
				</textElement>
				<text><![CDATA[Cancelation Acknowledgement]]></text>
			</staticText>
			<textField pattern="d/M/yyyy">
				<reportElement uuid="5f10c6b4-2a29-45c9-990d-1582d698e7ed" x="380" y="87" width="60" height="19"/>
				<textElement>
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{Date}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="74d0c1e1-20e4-44c0-9530-593cb55f353a" x="440" y="87" width="60" height="19"/>
				<textElement>
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{Hour}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="db8ca2dd-b146-4ef4-9bcf-6e2d151dcfb2" x="380" y="125" width="100" height="19"/>
				<textElement>
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{VAT}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="9247eb92-e626-4540-b943-5a4009bc6a46" x="196" y="87" width="155" height="19"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Request Date and Time:]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="efe17b8e-e9f7-43dd-92ee-216937404aec" x="196" y="106" width="155" height="19"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Cancelation Date and Time:]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="388beb90-e95d-4c7f-9f08-fd8835508bb3" x="196" y="125" width="155" height="19"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[VAT number:]]></text>
			</staticText>
			<textField pattern="d/M/yyyy">
				<reportElement uuid="90e35371-99b6-4ca7-a5f7-fe211244d76d" x="380" y="105" width="60" height="19"/>
				<textElement>
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{Date}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="0032ffe3-aa1c-4e24-b7f2-fdfd305ff698" x="440" y="105" width="60" height="19"/>
				<textElement>
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{Hour}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="18" splitType="Stretch">
			<property name="local_mesure_unitheight" value="pixel"/>
			<property name="com.jaspersoft.studio.unit.height" value="px"/>
			<staticText>
				<reportElement uuid="133c797d-7c2f-4d9b-8ede-760dcefaf40f" x="50" y="0" width="240" height="18">
					<property name="local_mesure_unitheight" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<box padding="2">
					<topPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
					<leftPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
					<bottomPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
					<rightPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
				</box>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Document ID]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="f3e39535-fd7d-4a26-afb8-41e9b7b21ab0" x="290" y="0" width="220" height="18">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<box padding="2">
					<topPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
					<leftPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
					<bottomPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
					<rightPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
				</box>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Status]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="16" splitType="Stretch">
			<textField>
				<reportElement uuid="4f2d4226-77bc-427d-8319-d9e0d2a8d3d6" x="50" y="0" width="240" height="16">
					<property name="local_mesure_unitheight" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<box padding="2">
					<topPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
					<leftPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
					<bottomPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
					<rightPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
				</box>
				<textElement>
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{UUID}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement uuid="297b8be5-a0e4-4cd5-997d-3785e4f46fe7" x="290" y="0" width="220" height="16">
					<property name="local_mesure_unitheight" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<box padding="2">
					<topPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
					<leftPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
					<bottomPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
					<rightPen lineWidth="0.1" lineStyle="Solid" lineColor="#B5B5B5"/>
				</box>
				<textElement>
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{StatusUUID}.equals("201") ? "Canceled" : $F{StatusUUID}.equals("202") ? "Previously Canceled" : $F{StatusUUID}.equals("203") ? "Invalid fot VAT number" : $F{StatusUUID}.equals("204") ? "Can't be canceled" : $F{StatusUUID}.equals("205") ? "ID doesn't exist" : "invalid error code"]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<pageFooter>
		<band height="46" splitType="Stretch">
			<textField>
				<reportElement uuid="ab3b86c1-5b5b-4ab2-9366-9179ba7a35a0" x="390" y="31" width="80" height="15">
					<property name="local_mesure_unitheight" value="pixel"/>
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Right"/>
				<textFieldExpression><![CDATA["Page " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement uuid="07496b5d-328b-4202-a983-7adcf4813a4d" x="470" y="31" width="40" height="15">
					<property name="com.jaspersoft.studio.unit.height" value="px"/>
				</reportElement>
				<textElement textAlignment="Left"/>
				<textFieldExpression><![CDATA[" of " + $V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement uuid="860f3e77-9004-4d2e-9d3a-639a6618fd91" x="50" y="2" width="90" height="14"/>
				<textElement>
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Digital Signature:]]></text>
			</staticText>
			<textField isStretchWithOverflow="true">
				<reportElement uuid="7ae79615-9f62-4509-960f-687837fdb7bf" x="50" y="16" width="460" height="15"/>
				<textElement>
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{SignatureValue}]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
</jasperReport>
