<?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="LineaFacturaSubReport" pageWidth="555" pageHeight="802" columnWidth="555" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">
	<queryString>
		<![CDATA[]]>
	</queryString>
	<field name="numerolinea" class="java.lang.Integer">
		<fieldDescription><![CDATA[id.numerolinea]]></fieldDescription>
	</field>
	<field name="descripcion" class="java.lang.String">
		<fieldDescription><![CDATA[descripcion]]></fieldDescription>
	</field>
	<field name="cantidad" class="java.lang.Double">
		<fieldDescription><![CDATA[cantidad]]></fieldDescription>
	</field>
	<field name="iva" class="java.lang.Double">
		<fieldDescription><![CDATA[iva]]></fieldDescription>
	</field>
	<field name="precio" class="java.lang.Double">
		<fieldDescription><![CDATA[precio]]></fieldDescription>
	</field>
	<variable name="subtotal" class="java.lang.Double" resetType="Column">
		<variableExpression><![CDATA[new Double($F{cantidad}.doubleValue()*$F{precio}.doubleValue()*($F{iva}.doubleValue()+100D)/100D)]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band splitType="Stretch"/>
	</title>
	<pageHeader>
		<band splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band height="32" splitType="Stretch">
			<rectangle>
				<reportElement x="0" y="5" width="525" height="27"/>
			</rectangle>
			<staticText>
				<reportElement x="2" y="11" width="96" height="20"/>
				<textElement textAlignment="Center" markup="none">
					<font fontName="Arial" size="11" isBold="true" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[CANTIDAD]]></text>
			</staticText>
			<staticText>
				<reportElement x="99" y="11" width="237" height="20"/>
				<textElement textAlignment="Center" markup="none">
					<font fontName="Arial" size="11" isBold="true" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[DESCRIPCIÓN]]></text>
			</staticText>
			<staticText>
				<reportElement x="337" y="11" width="70" height="20"/>
				<textElement textAlignment="Center" markup="none">
					<font fontName="Arial" size="11" isBold="true" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[PRECIO]]></text>
			</staticText>
			<staticText>
				<reportElement x="408" y="11" width="40" height="20"/>
				<textElement textAlignment="Center" markup="none">
					<font fontName="Arial" size="11" isBold="true" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[IVA]]></text>
			</staticText>
			<staticText>
				<reportElement x="449" y="11" width="76" height="18"/>
				<textElement textAlignment="Center" markup="none">
					<font fontName="Arial" size="11" isBold="true" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[SUBTOTAL]]></text>
			</staticText>
			<line>
				<reportElement x="98" y="5" width="1" height="27"/>
			</line>
			<line>
				<reportElement x="336" y="5" width="1" height="27"/>
			</line>
			<line>
				<reportElement x="407" y="5" width="1" height="27"/>
			</line>
			<line>
				<reportElement x="448" y="5" width="1" height="27"/>
			</line>
		</band>
	</columnHeader>
	<detail>
		<band height="25" splitType="Stretch">
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="2" y="3" width="93" height="20">
					<printWhenExpression><![CDATA[new Boolean($F{precio}.doubleValue() > 0)]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression class="java.lang.Double"><![CDATA[$F{cantidad}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="408" y="3" width="37" height="20">
					<printWhenExpression><![CDATA[new Boolean($F{precio}.doubleValue() > 0)]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression class="java.lang.Double"><![CDATA[$F{iva}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="337" y="3" width="63" height="20">
					<printWhenExpression><![CDATA[new Boolean($F{precio}.doubleValue() > 0)]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression class="java.lang.Double"><![CDATA[$F{precio}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="449" y="3" width="73" height="20">
					<printWhenExpression><![CDATA[new Boolean($F{precio}.doubleValue() > 0)]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression class="java.lang.Double"><![CDATA[$V{subtotal}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement x="109" y="3" width="227" height="20"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font fontName="Arial"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{descripcion}]]></textFieldExpression>
			</textField>
			<line>
				<reportElement x="0" y="0" width="1" height="25"/>
			</line>
			<line>
				<reportElement x="525" y="0" width="1" height="25"/>
			</line>
			<line>
				<reportElement x="98" y="0" width="1" height="25"/>
			</line>
			<line>
				<reportElement x="336" y="0" width="1" height="25"/>
			</line>
			<line>
				<reportElement x="407" y="0" width="1" height="25"/>
			</line>
			<line>
				<reportElement x="448" y="0" width="1" height="25"/>
			</line>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band splitType="Stretch"/>
	</pageFooter>
	<summary>
		<band splitType="Stretch"/>
	</summary>
</jasperReport>
