<?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="New Template Cartera H " language="groovy" pageWidth="792" pageHeight="612" orientation="Landscape" whenNoDataType="AllSectionsNoDetail" columnWidth="752" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="1.6105100000000014"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<property name="ireport.jasperserver.reportUnit" value="/reports/presupuesto/informe_general_disponibilidad"/>
	<property name="ireport.jasperserver.url" value="http://soporte14.sofhouse.net:8090/jasperserver/services/repository"/>
	<parameter name="cantidad_dias" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="mes" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="anio_fiscal" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="vigencia" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="whereOpciones" class="java.lang.String">
		<defaultValueExpression><![CDATA[" "]]></defaultValueExpression>
	</parameter>
	<parameter name="corte" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<queryString>
		<![CDATA[select ID,FECHA,OBJETO,NVL(SUM(VALOR),'0') AS VALOR,NVL(SUM(RPS),'0') AS RPS from(
            select pcdp.id AS ID,pcdp.fecha AS FECHA,pcdp.objeto AS OBJETO,pca.id_cpo,pca.id_asign,pca.id_obj_gasto,pca.id_vigencia,pca.ano_fiscal,case when hist.valor is null then sum(pca.valor) else ( nvl(sum(hist.valor),0)+nvl(sum(novedades.valor),0) ) end
            as VALOR , valrps.valor as RPS
            from PR_CPO_ASIGN pca
	    left join PROYECTOS pro ON pca.id_cpo = pro.id
            left join PR_ASIG_PRESUP asip ON pca.id_asign = asip.id
                                    and asip.id_vigencia = pca.id_vigencia
                                    and asip.vigencia = pca.ano_fiscal
            left join PR_APROPIACION aprop ON asip.id_apropiacion = aprop.id
                                    and asip.id_vigencia = aprop.id_vigencia
                                    and asip.vigencia = aprop.vigencia
            left join PR_CODIF_PRESUP cod ON aprop.id_rubro = cod.id_rubro
            left join PR_PROG_GEN gen ON cod.cod_rub1 = gen.id
            left join PR_TIPO_REC rec ON aprop.id_tipo_rec = rec.id
            join PR_CDP_CPO pcc ON pca.id_pr_cdp_cpo = pcc.id and pca.ano_fiscal = pcc.ano_fiscal and pca.id_vigencia = pcc.id_vigencia
            join PR_CDP_COMIS pcdp ON pcc.id_cdp = pcdp.id and pcc.id_vigencia = pcdp.id_vigencia and pcc.ano_fiscal = pcdp.ano_fiscal and pcdp.fecha<=to_date($P{cantidad_dias}||'/'||$P{mes}||'/'||$P{anio_fiscal}, 'DD-MM-YYYY')
            left join PR_HISTORIAL_CDP hist ON pcdp.id = hist.id_cdp and hist.id_vigencia = pcdp.id_vigencia and hist.vigencia = pcdp.ano_fiscal
            and hist.id_asign = pca.id_asign and hist.id_obj_gasto = pca.id_obj_gasto and hist.id_cpo = pca.id_cpo

		left join(

		select sum(nvl(cval.debito,0) - nvl(cval.credito,0)) as valor, nov.id_cdp, cval.id_asign, cval.id_obj_gasto, cval.id_vigencia, cval.vigencia
		from PR_NOVEDAD_CDP_VAL cval
		join PR_NOVEDAD_CDP nov ON cval.id_novedad_cdp = nov.id_novedad_cdp
		where nov.fecha <=to_date($P{cantidad_dias}||'/'||$P{mes}||'/'||$P{anio_fiscal}, 'DD-MM-YYYY')
		group by nov.id_cdp, cval.id_asign, cval.id_obj_gasto, cval.id_vigencia, cval.vigencia
		)novedades ON novedades.id_cdp = pcdp.id
			  and novedades.id_asign=pca.id_asign
			  and novedades.id_obj_gasto = pca.id_obj_gasto
			  and novedades.id_vigencia = pca.id_vigencia
			  and novedades.vigencia = pca.ano_fiscal
left join (
		select id_cdp,id_asign,id_obj_gasto,id_cpo,id_vigencia,vigencia ,sum(valor) AS VALOR
		from(
		select prp.id_cdp, c.id_asign, c.id_obj_gasto, c.id_cpo,c.id_vigencia,c.vigencia,
		case when h.valor is null then nvl(sum(c.valor),0) else (sum(nvl(h.valor,0))+nvl(sum(noved.valor),0)) end as valor
		from PR_RP_COMIS prp
		left join PR_RP_COMPROMISO c ON c.id_rp=prp.id
		and prp.id_vigencia = c.id_vigencia
		and prp.vigencia = c.vigencia
		left join PR_HISTORIAL_RP h ON c.id_rp = h.id_rp
		and h.id_asign = c.id_asign
		and h.id_cpo = c.id_cpo
		and h.id_obj_gasto = c.id_obj_gasto
		and h.id_vigencia = c.id_vigencia
		and h.vigencia = c.vigencia

		left join (
		select sum(nvl(cval.debito,0) - nvl(cval.credito,0)) as valor, nov.id_rp, cval.id_asign, cval.id_obj_gasto, cval.id_vigencia, cval.vigencia
		from PR_NOVEDAD_RP_VAL cval
		join PR_NOVEDAD_RP nov ON cval.id_novedad_rp = nov.id_novedad_rp
		where nov.fecha <=to_date($P{cantidad_dias}||'/'||$P{mes}||'/'||$P{anio_fiscal}, 'DD-MM-YYYY')
		group by nov.id_rp, cval.id_asign, cval.id_obj_gasto, cval.id_vigencia, cval.vigencia
		)noved ON c.id_rp = noved.id_rp
		and c.id_asign = noved.id_asign
		and c.id_obj_gasto = noved.id_obj_gasto
		and c.id_vigencia = noved.id_vigencia
		and c.vigencia = noved.vigencia
		WHERE prp.fecha_proceso<=to_date($P{cantidad_dias}||'/'||$P{mes}||'/'||$P{anio_fiscal}, 'DD-MM-YYYY')
		group by prp.id_cdp, c.id_asign, c.id_obj_gasto, c.id_cpo, c.id_vigencia, c.vigencia,h.valor
		)GROUP BY id_cdp,id_asign,id_obj_gasto,id_cpo,id_vigencia,vigencia
		)

		valrps ON pcdp.id = valrps.id_cdp
		and pca.id_asign = valrps.id_asign
		and pca.id_obj_gasto = valrps.id_obj_gasto
		and pca.id_cpo = valrps.id_cpo
		and pca.id_vigencia = valrps.id_vigencia
		and pca.ano_fiscal = valrps.vigencia

                     where pca.id_vigencia=$P{vigencia} and pca.ano_fiscal=$P{anio_fiscal} $P!{whereOpciones}

            	group by pcdp.id, pcdp.fecha,pcdp.objeto,hist.valor,pca.id_asign,pca.id_cpo,pca.id_obj_gasto,pca.id_vigencia,pca.ano_fiscal,valrps.valor
                     union

		select pcdp.id AS ID,pcdp.fecha AS FECHA,pcdp.objeto AS OBJETO,pca.id_cpo,pca.id_asign,pca.id_obj_gasto,pca.id_vigencia,pca.ano_fiscal,case when hist.valor is null then sum(pca.valor) else ( nvl(sum(hist.valor),0)+nvl(sum(novedades.valor),0) ) end
            as VALOR , valrps.valor as RPS
            from PR_CPO_ASIGN pca
            left join PROYECTOS pro ON pca.id_cpo = pro.id
            left join PR_ASIG_PRESUP asip ON pca.id_asign = asip.id
                                    and asip.id_vigencia = pca.id_vigencia
                                    and asip.vigencia = pca.ano_fiscal
            left join PR_APROPIACION aprop ON asip.id_apropiacion = aprop.id
                                    and asip.id_vigencia = aprop.id_vigencia
                                    and asip.vigencia = aprop.vigencia
            left join PR_CODIF_PRESUP cod ON aprop.id_rubro = cod.id_rubro
            left join PR_PROG_GEN gen ON cod.cod_rub1 = gen.id
            left join PR_TIPO_REC rec ON aprop.id_tipo_rec = rec.id
            join PR_CDP_CPO pcc ON pca.id_pr_cdp_cpo = pcc.id and pca.ano_fiscal = pcc.ano_fiscal and pca.id_vigencia = pcc.id_vigencia
            join PR_CDP pcdp ON pcc.id_cdp = pcdp.id and pcc.id_vigencia = pcdp.id_vigencia and pcc.ano_fiscal = pcdp.ano_fiscal and pcdp.fecha<=to_date($P{cantidad_dias}||'/'||$P{mes}||'/'||$P{anio_fiscal}, 'DD-MM-YYYY')
            left join PR_HISTORIAL_CDP hist ON pcdp.id = hist.id_cdp and hist.id_vigencia = pcdp.id_vigencia and hist.vigencia = pcdp.ano_fiscal
            and hist.id_asign = pca.id_asign and hist.id_obj_gasto = pca.id_obj_gasto and hist.id_cpo = pca.id_cpo

		left join(

		select sum(nvl(cval.debito,0) - nvl(cval.credito,0)) as valor, nov.id_cdp, cval.id_asign, cval.id_obj_gasto, cval.id_vigencia, cval.vigencia
		from PR_NOVEDAD_CDP_VAL cval
		join PR_NOVEDAD_CDP nov ON cval.id_novedad_cdp = nov.id_novedad_cdp
		where nov.fecha <=to_date($P{cantidad_dias}||'/'||$P{mes}||'/'||$P{anio_fiscal}, 'DD-MM-YYYY')
		group by nov.id_cdp, cval.id_asign, cval.id_obj_gasto, cval.id_vigencia, cval.vigencia
		)novedades ON novedades.id_cdp = pcdp.id
			  and novedades.id_asign=pca.id_asign
			  and novedades.id_obj_gasto = pca.id_obj_gasto
			  and novedades.id_vigencia = pca.id_vigencia
			  and novedades.vigencia = pca.ano_fiscal
left join (
		select id_cdp,id_asign,id_obj_gasto,id_cpo,id_vigencia,vigencia ,sum(valor) AS VALOR
		from(
		select prp.id_cdp, c.id_asign, c.id_obj_gasto, c.id_cpo,c.id_vigencia,c.vigencia,
		case when h.valor is null then nvl(sum(c.valor),0) else (sum(nvl(h.valor,0))+nvl(sum(noved.valor),0)) end as valor
		from PR_RP prp
		left join PR_RP_COMPROMISO c ON c.id_rp=prp.id
		and prp.id_vigencia = c.id_vigencia
		and prp.vigencia = c.vigencia
		left join PR_HISTORIAL_RP h ON c.id_rp = h.id_rp
		and h.id_asign = c.id_asign
		and h.id_cpo = c.id_cpo
		and h.id_obj_gasto = c.id_obj_gasto
		and h.id_vigencia = c.id_vigencia
		and h.vigencia = c.vigencia

		left join (
		select sum(nvl(cval.debito,0) - nvl(cval.credito,0)) as valor, nov.id_rp, cval.id_asign, cval.id_obj_gasto, cval.id_vigencia, cval.vigencia
		from PR_NOVEDAD_RP_VAL cval
		join PR_NOVEDAD_RP nov ON cval.id_novedad_rp = nov.id_novedad_rp
		where nov.fecha <=to_date($P{cantidad_dias}||'/'||$P{mes}||'/'||$P{anio_fiscal}, 'DD-MM-YYYY')
		group by nov.id_rp, cval.id_asign, cval.id_obj_gasto, cval.id_vigencia, cval.vigencia
		)noved ON c.id_rp = noved.id_rp
		and c.id_asign = noved.id_asign
		and c.id_obj_gasto = noved.id_obj_gasto
		and c.id_vigencia = noved.id_vigencia
		and c.vigencia = noved.vigencia
		WHERE prp.fecha_proceso<=to_date($P{cantidad_dias}||'/'||$P{mes}||'/'||$P{anio_fiscal}, 'DD-MM-YYYY')
		group by prp.id_cdp, c.id_asign, c.id_obj_gasto, c.id_cpo, c.id_vigencia, c.vigencia,h.valor
		)GROUP BY id_cdp,id_asign,id_obj_gasto,id_cpo,id_vigencia,vigencia
		)
valrps ON pcdp.id = valrps.id_cdp
		and pca.id_asign = valrps.id_asign
		and pca.id_obj_gasto = valrps.id_obj_gasto
		and pca.id_cpo = valrps.id_cpo
		and pca.id_vigencia = valrps.id_vigencia
		and pca.ano_fiscal = valrps.vigencia

		where pca.id_vigencia=$P{vigencia} and pca.ano_fiscal=$P{anio_fiscal} $P!{whereOpciones}
            	group by pcdp.id, pcdp.fecha,pcdp.objeto,hist.valor,pca.id_asign,pca.id_cpo,pca.id_obj_gasto,pca.id_vigencia,pca.ano_fiscal,valrps.valor

            )
	     WHERE VALOR!=0
	     GROUP BY ID,FECHA,OBJETO
	     ORDER BY ID,FECHA,OBJETO]]>
	</queryString>
	<field name="ID" class="java.math.BigDecimal"/>
	<field name="FECHA" class="java.sql.Timestamp"/>
	<field name="OBJETO" class="java.lang.String"/>
	<field name="VALOR" class="java.math.BigDecimal"/>
	<field name="RPS" class="java.math.BigDecimal"/>
	<variable name="TOTAL" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{VALOR}-$F{RPS}]]></variableExpression>
	</variable>
	<variable name="VALOR_1" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{VALOR}]]></variableExpression>
	</variable>
	<variable name="RPS_1" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{RPS}]]></variableExpression>
	</variable>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="60" splitType="Stretch">
			<staticText>
				<reportElement x="140" y="1" width="460" height="20"/>
				<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
					<font fontName="SansSerif" size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[Informe General de Disponibilidades]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="601" y="10" width="151" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[Fecha de Impresion:]]></text>
			</staticText>
			<textField>
				<reportElement x="140" y="21" width="460" height="13"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="10" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["VIGENCIA ACTUAL "+$P{anio_fiscal}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy  hh:mm aaa">
				<reportElement x="602" y="22" width="150" height="12"/>
				<box rightPadding="3"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<image>
				<reportElement x="0" y="0" width="140" height="60"/>
				<imageExpression class="java.lang.String"><![CDATA["repo:ANMLogoEmpresa003.png"]]></imageExpression>
			</image>
			<textField>
				<reportElement x="142" y="34" width="458" height="13"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="10" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Corte a "+$P{corte}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="20" splitType="Stretch"/>
	</pageHeader>
	<columnHeader>
		<band height="12" splitType="Stretch">
			<staticText>
				<reportElement mode="Opaque" x="0" y="0" width="54" height="12" forecolor="#000000" backcolor="#64B0F7"/>
				<box leftPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[Cuenta]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="55" y="0" width="74" height="12" forecolor="#000000" backcolor="#64B0F7"/>
				<box leftPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[Fecha CDP]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="129" y="0" width="283" height="12" forecolor="#000000" backcolor="#64B0F7"/>
				<box leftPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[Objeto]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="412" y="0" width="104" height="12" forecolor="#000000" backcolor="#64B0F7"/>
				<box leftPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[Valor CDP]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="516" y="0" width="109" height="12" forecolor="#000000" backcolor="#64B0F7"/>
				<box leftPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[Valor RPS]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="625" y="0" width="125" height="12" forecolor="#000000" backcolor="#64B0F7"/>
				<box leftPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[Saldo Disponible]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="20" splitType="Stretch">
			<textField pattern="¤ #,##0.00">
				<reportElement stretchType="RelativeToTallestObject" x="412" y="0" width="104" height="20"/>
				<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="4">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{VALOR}]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00">
				<reportElement stretchType="RelativeToTallestObject" x="516" y="0" width="109" height="20"/>
				<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="4">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{RPS}]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00">
				<reportElement stretchType="RelativeToTallestObject" x="625" y="0" width="125" height="20"/>
				<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="4">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{VALOR}-$F{RPS}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true">
				<reportElement x="129" y="0" width="283" height="20"/>
				<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Justified">
					<font size="6"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{OBJETO}]]></textFieldExpression>
			</textField>
			<textField pattern="dd MMMMM yyyy">
				<reportElement stretchType="RelativeToTallestObject" x="54" y="0" width="75" height="20"/>
				<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[$F{FECHA}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="54" height="20"/>
				<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="2">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{ID}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band height="23" splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="24" splitType="Stretch">
			<textField>
				<reportElement mode="Opaque" x="299" y="12" width="89" height="12" forecolor="#575757" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Página "+$V{PAGE_NUMBER}+" de "]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
				<reportElement mode="Opaque" x="389" y="12" width="60" height="12" forecolor="#575757" backcolor="#FFFFFF"/>
				<textElement verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement mode="Opaque" x="299" y="0" width="150" height="12" forecolor="#575757"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<text><![CDATA[Websafi - Presupuesto]]></text>
			</staticText>
		</band>
	</pageFooter>
	<summary>
		<band height="20" splitType="Stretch">
			<textField pattern="¤ #,##0.00">
				<reportElement x="625" y="0" width="125" height="20"/>
				<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="6">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Right">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{TOTAL}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="0" y="0" width="412" height="20"/>
				<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="5">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Right">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Totales]]></text>
			</staticText>
			<textField pattern="¤ #,##0.00">
				<reportElement x="412" y="0" width="104" height="20"/>
				<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="4">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Right">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{VALOR_1}]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00">
				<reportElement x="516" y="0" width="109" height="20"/>
				<box topPadding="2" leftPadding="2" bottomPadding="2" rightPadding="4">
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement textAlignment="Right">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{RPS_1}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
	<noData>
		<band height="20">
			<staticText>
				<reportElement x="0" y="0" width="752" height="20"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[No hay objetos a mostrar.]]></text>
			</staticText>
		</band>
	</noData>
</jasperReport>
