<?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="report name" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA["C:\\Java\\workspaces\\workspaceProyecto\\FacturaMasIGU\\src\\main\\resouces\\es\\dalocar\\facturamas\\reports\\"]]></defaultValueExpression>
	</parameter>
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="cliente" class="es.dalocar.software.beans.Cliente">
		<fieldDescription><![CDATA[cliente]]></fieldDescription>
	</field>
	<field name="cobrada" class="java.lang.Boolean">
		<fieldDescription><![CDATA[cobrada]]></fieldDescription>
	</field>
	<field name="fecha" class="java.util.Date">
		<fieldDescription><![CDATA[fecha]]></fieldDescription>
	</field>
	<field name="fechacobro" class="java.util.Date">
		<fieldDescription><![CDATA[fechacobro]]></fieldDescription>
	</field>
	<field name="id" class="es.dalocar.software.beans.FacturaId">
		<fieldDescription><![CDATA[id]]></fieldDescription>
	</field>
	<field name="importefactura" class="java.lang.Double">
		<fieldDescription><![CDATA[importefactura]]></fieldDescription>
	</field>
	<field name="irpf" class="java.lang.Double">
		<fieldDescription><![CDATA[irpf]]></fieldDescription>
	</field>
	<field name="lineaFacturas" class="java.util.ArrayList">
		<fieldDescription><![CDATA[lineaFacturas]]></fieldDescription>
	</field>
	<field name="modopago" class="java.lang.String">
		<fieldDescription><![CDATA[modopago]]></fieldDescription>
	</field>
	<field name="cliente.provincia" class="java.lang.String">
		<fieldDescription><![CDATA[cliente.provincia]]></fieldDescription>
	</field>
	<field name="cliente.telefono" class="java.lang.String">
		<fieldDescription><![CDATA[cliente.telefono]]></fieldDescription>
	</field>
	<field name="cliente.direccion" class="java.lang.String">
		<fieldDescription><![CDATA[cliente.direccion]]></fieldDescription>
	</field>
	<field name="cliente.nombre" class="java.lang.String">
		<fieldDescription><![CDATA[cliente.nombre]]></fieldDescription>
	</field>
	<field name="cliente.cif" class="java.lang.String">
		<fieldDescription><![CDATA[cliente.cif]]></fieldDescription>
	</field>
	<field name="cliente.poblacion" class="java.lang.String">
		<fieldDescription><![CDATA[cliente.poblacion]]></fieldDescription>
	</field>
	<field name="cliente.fax" class="java.lang.String">
		<fieldDescription><![CDATA[cliente.fax]]></fieldDescription>
	</field>
	<field name="cliente.identificador" class="java.lang.Integer">
		<fieldDescription><![CDATA[cliente.identificador]]></fieldDescription>
	</field>
	<field name="cliente.cp" class="java.lang.String">
		<fieldDescription><![CDATA[cliente.cp]]></fieldDescription>
	</field>
	<field name="cliente.activo" class="java.lang.Boolean">
		<fieldDescription><![CDATA[cliente.activo]]></fieldDescription>
	</field>
	<field name="id.anyo" class="java.lang.Integer">
		<fieldDescription><![CDATA[id.anyo]]></fieldDescription>
	</field>
	<field name="id.numero" class="java.lang.Integer">
		<fieldDescription><![CDATA[id.numero]]></fieldDescription>
	</field>
	<field name="totalIva" class="java.lang.Double">
		<fieldDescription><![CDATA[totalIva]]></fieldDescription>
	</field>
	<variable name="base_imponible" class="java.lang.Double">
		<variableExpression><![CDATA[new Double($F{importefactura}.doubleValue()-$F{totalIva}.doubleValue())]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="21" splitType="Stretch"/>
	</title>
	<pageHeader>
		<band height="186" splitType="Stretch">
			<rectangle>
				<reportElement x="10" y="17" width="205" height="70"/>
				<graphicElement>
					<pen lineWidth="1.5"/>
				</graphicElement>
			</rectangle>
			<staticText>
				<reportElement x="29" y="34" width="150" height="12"/>
				<textElement>
					<font fontName="Arial" size="9" isBold="false"/>
				</textElement>
				<text><![CDATA[NIF - 6216588-X]]></text>
			</staticText>
			<staticText>
				<reportElement x="29" y="46" width="150" height="12"/>
				<textElement>
					<font fontName="Arial" size="9" isBold="false"/>
				</textElement>
				<text><![CDATA[Isla Cabrera nº 54 pta 1]]></text>
			</staticText>
			<staticText>
				<reportElement x="29" y="58" width="150" height="12"/>
				<textElement>
					<font fontName="Arial" size="9" isBold="false"/>
				</textElement>
				<text><![CDATA[46026 Valencia]]></text>
			</staticText>
			<staticText>
				<reportElement x="29" y="70" width="150" height="12"/>
				<textElement>
					<font fontName="Arial" size="9" isBold="false"/>
				</textElement>
				<text><![CDATA[Teléfono: 676379148]]></text>
			</staticText>
			<rectangle>
				<reportElement x="10" y="117" width="205" height="53"/>
			</rectangle>
			<line>
				<reportElement x="10" y="140" width="205" height="1"/>
			</line>
			<staticText>
				<reportElement x="19" y="122" width="110" height="17"/>
				<textElement>
					<font fontName="Arial" size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[NÚMERO FACTURA:]]></text>
			</staticText>
			<line>
				<reportElement x="129" y="117" width="1" height="53"/>
			</line>
			<staticText>
				<reportElement x="29" y="22" width="150" height="12"/>
				<textElement>
					<font fontName="Arial" size="9" isBold="false"/>
				</textElement>
				<text><![CDATA[Consuelo Carrasco Moraleda]]></text>
			</staticText>
			<staticText>
				<reportElement x="139" y="122" width="54" height="17"/>
				<textElement>
					<font fontName="Arial" size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[FECHA:]]></text>
			</staticText>
			<rectangle>
				<reportElement x="288" y="65" width="248" height="105"/>
			</rectangle>
			<textField>
				<reportElement x="295" y="146" width="232" height="18"/>
				<textElement>
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{cliente.cif}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="295" y="128" width="50" height="18"/>
				<textElement>
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{cliente.cp}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="345" y="128" width="182" height="18"/>
				<textElement>
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{cliente.provincia}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="295" y="110" width="232" height="18"/>
				<textElement>
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{cliente.poblacion}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="295" y="92" width="232" height="18"/>
				<textElement>
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{cliente.direccion}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="295" y="74" width="232" height="18"/>
				<textElement>
					<font fontName="Arial" size="11" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{cliente.nombre}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="20" y="146" width="100" height="20"/>
				<textElement textAlignment="Center"/>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{id.numero} + "/" + $F{id.anyo}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy">
				<reportElement x="139" y="146" width="70" height="20"/>
				<textElement textAlignment="Center"/>
				<textFieldExpression class="java.util.Date"><![CDATA[$F{fecha}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="174" splitType="Stretch">
			<subreport>
				<reportElement x="10" y="13" width="526" height="125"/>
				<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{lineaFacturas})]]></dataSourceExpression>
				<subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "LineaFacturaSubReport.jasper"]]></subreportExpression>
			</subreport>
			<line>
				<reportElement x="10" y="138" width="1" height="25"/>
			</line>
			<line>
				<reportElement x="535" y="138" width="1" height="25"/>
			</line>
			<line>
				<reportElement x="108" y="138" width="1" height="25"/>
			</line>
			<line>
				<reportElement x="346" y="138" width="1" height="25"/>
			</line>
			<line>
				<reportElement x="417" y="138" width="1" height="25"/>
			</line>
			<line>
				<reportElement x="458" y="138" width="1" height="25"/>
			</line>
			<line>
				<reportElement x="11" y="163" width="524" height="1"/>
			</line>
		</band>
	</detail>
	<columnFooter>
		<band height="145" splitType="Stretch">
			<rectangle>
				<reportElement x="11" y="81" width="526" height="57"/>
			</rectangle>
			<line>
				<reportElement x="167" y="81" width="1" height="57"/>
			</line>
			<line>
				<reportElement x="309" y="81" width="1" height="57"/>
			</line>
			<line>
				<reportElement x="415" y="81" width="1" height="57"/>
			</line>
			<line>
				<reportElement x="11" y="97" width="526" height="1"/>
			</line>
			<staticText>
				<reportElement x="20" y="83" width="96" height="17"/>
				<textElement>
					<font fontName="Arial" size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[FORMA DE PAGO:]]></text>
			</staticText>
			<staticText>
				<reportElement x="175" y="83" width="96" height="17"/>
				<textElement>
					<font fontName="Arial" size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[BASE IMPONIBLE:]]></text>
			</staticText>
			<staticText>
				<reportElement x="309" y="83" width="106" height="17"/>
				<textElement textAlignment="Center">
					<font fontName="Arial" size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[IVA]]></text>
			</staticText>
			<staticText>
				<reportElement x="416" y="83" width="121" height="17"/>
				<textElement textAlignment="Center">
					<font fontName="Arial" size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[TOTAL FACTURA]]></text>
			</staticText>
			<textField pattern="#,##0.00 ¤">
				<reportElement x="321" y="113" width="89" height="20"/>
				<textElement textAlignment="Center">
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression class="java.lang.Double"><![CDATA[$F{totalIva}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00 ¤">
				<reportElement x="196" y="113" width="100" height="20"/>
				<textElement>
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression class="java.lang.Double"><![CDATA[$V{base_imponible}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00 ¤">
				<reportElement x="427" y="113" width="100" height="20"/>
				<textElement/>
				<textFieldExpression class="java.lang.Double"><![CDATA[$F{importefactura}]]></textFieldExpression>
			</textField>
		</band>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band height="42" splitType="Stretch"/>
	</summary>
</jasperReport>
