<?xml version="1.0" encoding="UTF-8"  ?>
<!-- Created with iReport - A designer for JasperReports -->
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport
		 name="ReciboCliente"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Portrait"
		 pageWidth="595"
		 pageHeight="842"
		 columnWidth="535"
		 columnSpacing="0"
		 leftMargin="30"
		 rightMargin="30"
		 topMargin="39"
		 bottomMargin="20"
		 whenNoDataType="NoPages"
		 isTitleNewPage="false"
		 isSummaryNewPage="false">
	<property name="ireport.scriptlethandling" value="0" />
	<property name="ireport.encoding" value="UTF-8" />
	<import value="java.util.*" />
	<import value="net.sf.jasperreports.engine.*" />
	<import value="net.sf.jasperreports.engine.data.*" />

	<parameter name="SUBREPORT_DIR" isForPrompting="true" class="java.lang.String">
		<defaultValueExpression ><![CDATA[".\\"]]></defaultValueExpression>
	</parameter>
	<parameter name="COMPILED_SUBREPORT_CHECKS" isForPrompting="false" class="java.io.InputStream"/>
	<parameter name="SUBREPORT_CHECKS_DATASOURCE" isForPrompting="false" class="net.sf.jasperreports.engine.JRDataSource"/>
	<parameter name="COMPILED_SUBREPORT_OTHER_PAYMENTS" isForPrompting="false" class="java.io.InputStream"/>
	<parameter name="SUBREPORT_OTHER_PAYMENTS_DATASOURCE" isForPrompting="false" class="net.sf.jasperreports.engine.JRDataSource"/>
	<parameter name="COMPILED_SUBREPORT_DOCS" isForPrompting="false" class="java.io.InputStream"/>
	<parameter name="SUBREPORT_DOCS_DATASOURCE" isForPrompting="false" class="net.sf.jasperreports.engine.JRDataSource"/>
	<parameter name="CITY_NAME" isForPrompting="false" class="java.lang.String"/>
	<parameter name="OP_DATE" isForPrompting="false" class="java.sql.Timestamp"/>
	<parameter name="OP_NUMBER" isForPrompting="false" class="java.lang.String"/>
	<parameter name="BPARTNER" isForPrompting="false" class="java.lang.String"/>
	<parameter name="OP_AMOUNT" isForPrompting="false" class="java.math.BigDecimal"/>
	<parameter name="RETENCIONES_AMOUNT" isForPrompting="false" class="java.math.BigDecimal"/>
	<parameter name="CLIENT_NAME" isForPrompting="false" class="java.lang.String"/>
	<parameter name="ORG_NAME" isForPrompting="false" class="java.lang.String"/>
	<parameter name="BPARTNER_LOCATION" isForPrompting="false" class="java.lang.String"/>
	<parameter name="CREDITO_AMOUNT" isForPrompting="false" class="java.math.BigDecimal"/>
	<parameter name="COMPILED_SUBREPORT_CREDIT_NOTES" isForPrompting="false" class="java.io.InputStream"/>
	<parameter name="SUBREPORT_CREDIT_NOTES_DATASOURCE" isForPrompting="false" class="net.sf.jasperreports.engine.JRDataSource"/>
	<parameter name="URL_IMAGE_TITLE" isForPrompting="false" class="java.lang.String"/>

	<variable name="CITY" class="java.lang.String" resetType="Report" calculation="Nothing">
		<variableExpression><![CDATA[$P{CITY_NAME} + ", "]]></variableExpression>
	</variable>
	<variable name="TOTAL" class="java.math.BigDecimal" resetType="Report" calculation="Nothing">
		<variableExpression><![CDATA[$P{OP_AMOUNT}.subtract( $P{RETENCIONES_AMOUNT} )]]></variableExpression>
	</variable>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="93"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" pattern="EEEEE dd MMMMM yyyy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="236"
						y="18"
						width="299"
						height="18"
						key="textField"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Right">
						<font size="12"/>
					</textElement>
				<textFieldExpression   class="java.sql.Timestamp"><![CDATA[$P{OP_DATE}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="236"
						y="36"
						width="299"
						height="18"
						key="textField"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica" size="12" isBold="false"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["Recibo Nro.:  " + $P{OP_NUMBER}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="56"
						width="535"
						height="18"
						key="textField"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement>
						<font size="12"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["Cliente: " + $P{BPARTNER}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="236"
						y="0"
						width="299"
						height="18"
						key="textField"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Right">
						<font size="12"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[($P{CITY_NAME} == null?"":$P{CITY_NAME}) + ", "]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="74"
						width="535"
						height="18"
						key="textField-6"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement>
						<font size="12"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["Domicilio: " + $P{BPARTNER_LOCATION}]]></textFieldExpression>
				</textField>
				<image  scaleImage="FillFrame" onErrorType="Blank" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="4"
						y="5"
						width="130"
						height="37"
						key="image-1"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<graphicElement stretchType="NoStretch"/>
					<imageExpression class="java.lang.String"><![CDATA[$P{URL_IMAGE_TITLE}]]></imageExpression>
				</image>
			</band>
		</title>
		<pageHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageHeader>
		<columnHeader>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnHeader>
		<detail>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageFooter>
		<summary>
			<band height="504"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="392"
						y="402"
						width="131"
						height="23"
						key="staticText-4"
						positionType="Float"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="12"/>
					</textElement>
				<text><![CDATA[Firma]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="486"
						width="535"
						height="18"
						key="textField"
						positionType="Float"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Right">
						<font size="12"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{CLIENT_NAME} + " - " + $P{ORG_NAME}]]></textFieldExpression>
				</textField>
				<subreport  isUsingCache="true">
					<reportElement
						x="0"
						y="218"
						width="535"
						height="30"
						key="subreport-1"
						positionType="Float"/>
					<dataSourceExpression><![CDATA[$P{SUBREPORT_CHECKS_DATASOURCE}]]></dataSourceExpression>
					<subreportExpression  class="java.io.InputStream"><![CDATA[$P{COMPILED_SUBREPORT_CHECKS}]]></subreportExpression>
				</subreport>
				<subreport  isUsingCache="true">
					<reportElement
						x="0"
						y="275"
						width="535"
						height="30"
						key="subreport-2"
						positionType="Float"/>
					<dataSourceExpression><![CDATA[$P{SUBREPORT_OTHER_PAYMENTS_DATASOURCE}]]></dataSourceExpression>
					<subreportExpression  class="java.io.InputStream"><![CDATA[$P{COMPILED_SUBREPORT_OTHER_PAYMENTS}]]></subreportExpression>
				</subreport>
				<subreport  isUsingCache="true">
					<reportElement
						mode="Transparent"
						x="0"
						y="58"
						width="535"
						height="30"
						key="subreport-3"
						positionType="Float"/>
					<subreportParameter  name="OP_NUMBER">
						<subreportParameterExpression><![CDATA[$P{OP_NUMBER}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="OP_AMOUNT">
						<subreportParameterExpression><![CDATA[$P{OP_AMOUNT}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="RETENCIONES_AMOUNT">
						<subreportParameterExpression><![CDATA[$P{RETENCIONES_AMOUNT}]]></subreportParameterExpression>
					</subreportParameter>
					<dataSourceExpression><![CDATA[$P{SUBREPORT_DOCS_DATASOURCE}]]></dataSourceExpression>
					<subreportExpression  class="java.io.InputStream"><![CDATA[$P{COMPILED_SUBREPORT_DOCS}]]></subreportExpression>
				</subreport>
				<elementGroup><!--  Start: 1 !-->
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="86"
						y="92"
						width="214"
						height="24"
						key="textField-2"
						positionType="Float"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["IMPUTACIONES RECIBO NRO:  " + $P{OP_NUMBER}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="300"
						y="92"
						width="85"
						height="24"
						key="textField-3"
						positionType="Float"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="10"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$P{OP_AMOUNT}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="86"
						y="147"
						width="214"
						height="24"
						key="staticText-8"
						positionType="Float"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement verticalAlignment="Middle">
						<font pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[RETENCIONES:]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="300"
						y="147"
						width="85"
						height="24"
						key="textField-4"
						positionType="Float"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="10"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$P{RETENCIONES_AMOUNT}]]></textFieldExpression>
				</textField>
				</elementGroup><!-- End 1 !-->
				<staticText>
					<reportElement
						x="0"
						y="173"
						width="535"
						height="18"
						key="staticText-10"
						positionType="Float"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement>
						<font pdfFontName="Helvetica-Bold" size="12" isBold="true"/>
					</textElement>
				<text><![CDATA[Detalle de medios de pago:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="0"
						y="255"
						width="535"
						height="18"
						key="staticText-12"
						positionType="Float"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement>
						<font size="12"/>
					</textElement>
				<text><![CDATA[Otros medios de pago]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="86"
						y="145"
						width="299"
						height="0"
						forecolor="#CCCCCC"
						key="line-1"
						positionType="Float"/>
					<graphicElement stretchType="NoStretch" pen="Thin"/>
				</line>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="0"
						y="13"
						width="535"
						height="18"
						key="textField-7"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement>
						<font size="12"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA["La suma de: " + $P{OP_AMOUNT} + ".- "]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="392"
						y="453"
						width="131"
						height="23"
						key="staticText-13"
						positionType="Float"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="12"/>
					</textElement>
				<text><![CDATA[Aclaración]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="0"
						y="32"
						width="535"
						height="24"
						key="staticText-14"
						positionType="Float"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement>
						<font size="12"/>
					</textElement>
				<text><![CDATA[En concepto de pago de los siguientes comprobantes:]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="392"
						y="402"
						width="131"
						height="0"
						forecolor="#666666"
						key="line-2"
						positionType="Float"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<line direction="TopDown">
					<reportElement
						x="392"
						y="453"
						width="131"
						height="0"
						forecolor="#666666"
						key="line-3"
						positionType="Float"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="86"
						y="119"
						width="214"
						height="24"
						key="staticText-15"
						positionType="Float"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement verticalAlignment="Middle">
						<font pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[IMPUTACIONES NOTAS DE CREDITO:]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="300"
						y="119"
						width="85"
						height="24"
						key="textField-8"
						positionType="Float"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="10"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$P{CREDITO_AMOUNT}]]></textFieldExpression>
				</textField>
				<line direction="TopDown">
					<reportElement
						x="86"
						y="117"
						width="299"
						height="0"
						forecolor="#CCCCCC"
						key="line-4"
						positionType="Float"/>
					<graphicElement stretchType="NoStretch" pen="Thin"/>
				</line>
				<staticText>
					<reportElement
						x="0"
						y="198"
						width="535"
						height="18"
						key="staticText-16"
						positionType="Float"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement>
						<font size="12"/>
					</textElement>
				<text><![CDATA[Pagos en Cheque]]></text>
				</staticText>
				<subreport  isUsingCache="true">
					<reportElement
						x="0"
						y="333"
						width="535"
						height="30"
						key="subreport-4"
						positionType="Float"/>
					<dataSourceExpression><![CDATA[$P{SUBREPORT_CREDIT_NOTES_DATASOURCE}]]></dataSourceExpression>
					<subreportExpression  class="java.io.InputStream"><![CDATA[$P{COMPILED_SUBREPORT_CREDIT_NOTES}]]></subreportExpression>
				</subreport>
				<staticText>
					<reportElement
						x="0"
						y="312"
						width="535"
						height="18"
						key="staticText-17"
						positionType="Float"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement>
						<font size="12"/>
					</textElement>
				<text><![CDATA[Notas de Crédito]]></text>
				</staticText>
			</band>
		</summary>
</jasperReport>
