<?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="750" pageHeight="900" columnWidth="710" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="1.461537825000007"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="96"/>
	<property name="ireport.jasperserver.reportUnit" value="/reports/inventario/contrato_general"/>
	<property name="ireport.jasperserver.url" value="http://192.168.2.43:8090/jasperserver/services/repository"/>
	<parameter name="id_vigencia" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="id_cen_op" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="numero_letras" class="java.lang.String"/>
	<parameter name="id_contrato" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="entidad_cliente" class="java.lang.String">
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<parameter name="username" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<queryString>
		<![CDATA[select tab0.*, tab1.razon_soc_prov, tab1.reteiva, tab2.prefijo, tab3.*, tab5.cantidad, tab6.valor as valor_unitario, tab6.subtotal, tab8.*,
terlog.razon_soc as razon_soc_elaboro
from in_contrato tab0
join in_cotizacion_v tab1 on tab0.id_cotizacion = tab1.id_cotizacion and tab0.id_cen_op =tab1.id_cen_op and tab0.id_vigencia=tab1.id_vigencia
join centro_operacion tab2 on tab2.id_cen_op =$P{id_cen_op}

left join in_firma_contrato tab3 on tab0.id_cen_op = tab3.id_cen_op and tab3.id_tipo_firma_contrato = 1
and (tab0.fecha_contrato  between tab3.fecha_ini and case when  tab3.fecha_fin is null then sysdate else tab3.fecha_fin end)



join in_det_contrato tab5 on tab5.id_contrato=tab0.id_contrato and tab5.id_vigencia = tab0.id_vigencia and tab5.id_cen_op= tab0.id_cen_op
join in_det_cotizacion tab6 on tab6.id_det_cotizacion=tab5.id_det_cotizacion and tab6.id_vigencia = tab5.id_vigencia and tab6.id_cen_op= tab5.id_cen_op

join in_soli_det_compra tab7 on tab7.id_soli_det_compra = tab5.id_soli_det_compra and tab5.id_vigencia = tab7.id_vigencia and tab5.id_cen_op= tab7.id_cen_op
join in_codigo_elemento_v tab8 on tab8.id_clase =tab7.id_clase and tab8.id_linea = tab7.id_linea and tab8.id_catalogo =tab7.id_catalogo

left join interceros terlog on terlog.id_mae_ter=tab0.id_usuario_log

WHERE 1=1 and tab0.id_cen_op = $P{id_cen_op} and tab0.id_vigencia=$P{id_vigencia} and tab0.id_contrato = $P{id_contrato}]]>
	</queryString>
	<field name="ID_CONTRATO" class="java.math.BigDecimal"/>
	<field name="ID_VIGENCIA" class="java.math.BigDecimal"/>
	<field name="ID_CEN_OP" class="java.math.BigDecimal"/>
	<field name="ID_COTIZACION" class="java.math.BigDecimal"/>
	<field name="CDP" class="java.math.BigDecimal"/>
	<field name="ID_MAE_TER" class="java.math.BigDecimal"/>
	<field name="VALOR_TOTAL" class="java.math.BigDecimal"/>
	<field name="ID_SOLI_COMPRA" class="java.math.BigDecimal"/>
	<field name="PLAZO_ENTREGA" class="java.lang.String"/>
	<field name="SITIO_ENTREGA" class="java.lang.String"/>
	<field name="OBSERVACIONES" class="java.lang.String"/>
	<field name="TIPO_CONTRATO" class="java.math.BigDecimal"/>
	<field name="NO_CONTRATO" class="java.math.BigDecimal"/>
	<field name="ESTADO" class="java.math.BigDecimal"/>
	<field name="ANULADO" class="java.math.BigDecimal"/>
	<field name="FECHA_ANU" class="java.sql.Timestamp"/>
	<field name="MOTIVO_ANU" class="java.lang.String"/>
	<field name="ID_USUARIO_ANU" class="java.math.BigDecimal"/>
	<field name="FECHA_CONTRATO" class="java.sql.Timestamp"/>
	<field name="FECHA_CONTRATO_DOC" class="java.sql.Timestamp"/>
	<field name="FORMA_PAGO" class="java.lang.String"/>
	<field name="TIPO_PROCESO" class="java.lang.String"/>
	<field name="NUM_PROCESO" class="java.lang.String"/>
	<field name="ID_VIGENCIA_PROCESO" class="java.math.BigDecimal"/>
	<field name="ID_USUARIO_LOG" class="java.math.BigDecimal"/>
	<field name="VALOR_NETO" class="java.math.BigDecimal"/>
	<field name="VALOR_IVA" class="java.math.BigDecimal"/>
	<field name="SEC" class="java.math.BigDecimal"/>
	<field name="VIG_CDP" class="java.math.BigDecimal"/>
	<field name="FECHA_CDP" class="java.sql.Timestamp"/>
	<field name="RAZON_SOC_PROV" class="java.lang.String"/>
	<field name="RETEIVA" class="java.math.BigDecimal"/>
	<field name="PREFIJO" class="java.lang.String"/>
	<field name="ID_FIRMA_CONTRATO" class="java.math.BigDecimal"/>
	<field name="CARGO" class="java.lang.String"/>
	<field name="FECHA_INI" class="java.sql.Timestamp"/>
	<field name="FECHA_FIN" class="java.sql.Timestamp"/>
	<field name="ID_TIPO_FIRMA_CONTRATO" class="java.math.BigDecimal"/>
	<field name="CANTIDAD" class="java.math.BigDecimal"/>
	<field name="VALOR_UNITARIO" class="java.math.BigDecimal"/>
	<field name="SUBTOTAL" class="java.math.BigDecimal"/>
	<field name="CODIGO_ELEMENTO" class="java.lang.String"/>
	<field name="ID_CODIGO_ELEMENTO" class="java.lang.String"/>
	<field name="ID_CATALOGO" class="java.math.BigDecimal"/>
	<field name="ID_LINEA" class="java.math.BigDecimal"/>
	<field name="ID_CLASE" class="java.math.BigDecimal"/>
	<field name="DIGITOS_CATALOGO" class="java.lang.String"/>
	<field name="DESC_CATALOGO" class="java.lang.String"/>
	<field name="DESC_CORTA_CATALOGO" class="java.lang.String"/>
	<field name="VIDA_UTIL_CATALOG" class="java.math.BigDecimal"/>
	<field name="STOCK_MIN" class="java.math.BigDecimal"/>
	<field name="STOCK_MAX" class="java.math.BigDecimal"/>
	<field name="TIENE_IVA" class="java.math.BigDecimal"/>
	<field name="ID_UNIDAD_MEDIDA" class="java.math.BigDecimal"/>
	<field name="ID_AGRUP_COMERCIAL" class="java.math.BigDecimal"/>
	<field name="ESTADO_CATALOGO" class="java.math.BigDecimal"/>
	<field name="MARCA" class="java.lang.String"/>
	<field name="MODELO" class="java.lang.String"/>
	<field name="CARACTERES" class="java.lang.String"/>
	<field name="DESC_CLASE" class="java.lang.String"/>
	<field name="DESC_CORTA_CLASE" class="java.lang.String"/>
	<field name="VIDA_UTIL_CLASE" class="java.math.BigDecimal"/>
	<field name="TIPO_INVENTARIO" class="java.math.BigDecimal"/>
	<field name="ID_TIPO_SEGURO" class="java.math.BigDecimal"/>
	<field name="ESTADO_CLASE" class="java.math.BigDecimal"/>
	<field name="DIGITOS_LINEA" class="java.lang.String"/>
	<field name="DESC_LINEA" class="java.lang.String"/>
	<field name="DESC_CORTA_LINEA" class="java.lang.String"/>
	<field name="ESTADO_LINEA" class="java.math.BigDecimal"/>
	<field name="APLICA_PEDIDO" class="java.math.BigDecimal"/>
	<field name="RAZON_SOC_ELABORO" class="java.lang.String"/>
	<variable name="total_items" class="java.math.BigDecimal" calculation="Count">
		<variableExpression><![CDATA[$F{CODIGO_ELEMENTO}]]></variableExpression>
	</variable>
	<variable name="total_cant" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{SUBTOTAL}]]></variableExpression>
	</variable>
	<group name="contrato">
		<groupExpression><![CDATA[$F{ID_CONTRATO}]]></groupExpression>
		<groupHeader>
			<band height="25">
				<staticText>
					<reportElement mode="Opaque" x="0" y="0" width="95" height="25" backcolor="#E2D9D9"/>
					<box leftPadding="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" verticalAlignment="Middle" rotation="None"/>
					<text><![CDATA[CÓDIGO]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="95" y="0" width="326" height="25" backcolor="#E2D9D9"/>
					<box leftPadding="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" verticalAlignment="Middle" rotation="None"/>
					<text><![CDATA[DESCRIPCIÓN]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="421" y="0" width="68" height="25" backcolor="#E2D9D9"/>
					<box leftPadding="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" verticalAlignment="Middle" rotation="None"/>
					<text><![CDATA[CANT.]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="489" y="0" width="103" height="25" backcolor="#E2D9D9"/>
					<box leftPadding="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" verticalAlignment="Middle" rotation="None"/>
					<text><![CDATA[VALOR UNITARIO]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="592" y="0" width="118" height="25" backcolor="#E2D9D9"/>
					<box leftPadding="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" verticalAlignment="Middle" rotation="None"/>
					<text><![CDATA[VALOR TOTAL]]></text>
				</staticText>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="50">
				<textField pattern="#,##0.00;(-#,##0.00)" isBlankWhenNull="true">
					<reportElement mode="Opaque" x="0" y="0" width="489" height="20" forecolor="#000000" backcolor="#E2D9D9"/>
					<box>
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.0"/>
					</box>
					<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" markup="none">
						<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[" Total Items: "+$V{total_items}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement mode="Opaque" x="489" y="0" width="103" height="20" forecolor="#000000" backcolor="#E2D9D9"/>
					<box>
						<topPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
					</box>
					<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[SUBTOTAL:]]></text>
				</staticText>
				<textField pattern="#,##0.00;(-#,##0.00)" isBlankWhenNull="true">
					<reportElement mode="Opaque" x="592" y="0" width="118" height="20" isRemoveLineWhenBlank="true" backcolor="#E2D9D9"/>
					<box leftPadding="0" rightPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.0"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Middle">
						<font size="8" isBold="true"/>
					</textElement>
					<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{total_cant}]]></textFieldExpression>
				</textField>
				<subreport>
					<reportElement stretchType="RelativeToTallestObject" x="0" y="34" width="710" height="15"/>
					<subreportParameter name="id_contrato">
						<subreportParameterExpression><![CDATA[$P{id_contrato}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="reteiva">
						<subreportParameterExpression><![CDATA[$F{RETEIVA}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="id_vigencia">
						<subreportParameterExpression><![CDATA[$P{id_vigencia}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="numero_letras">
						<subreportParameterExpression><![CDATA[$P{numero_letras}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter name="id_cen_op">
						<subreportParameterExpression><![CDATA[$P{id_cen_op}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression class="java.lang.String"><![CDATA["repo:subreporte_iva"]]></subreportExpression>
				</subreport>
			</band>
		</groupFooter>
	</group>
	<background>
		<band height="418">
			<image>
				<reportElement x="210" y="0" width="480" height="240">
					<printWhenExpression><![CDATA[$F{ANULADO}.intValue()==1]]></printWhenExpression>
				</reportElement>
				<imageExpression class="java.lang.String"><![CDATA["repo:anulado.jpg"]]></imageExpression>
			</image>
		</band>
	</background>
	<title>
		<band height="10" splitType="Stretch"/>
	</title>
	<pageHeader>
		<band height="172" splitType="Stretch">
			<staticText>
				<reportElement x="0" y="60" width="454" height="112"/>
				<box leftPadding="2" rightPadding="2">
					<pen lineWidth="1.0"/>
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<textElement/>
				<text><![CDATA[]]></text>
			</staticText>
			<staticText>
				<reportElement x="454" y="60" width="256" height="112"/>
				<box leftPadding="2" rightPadding="2">
					<pen lineWidth="1.0"/>
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="1.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<textElement/>
				<text><![CDATA[]]></text>
			</staticText>
			<staticText>
				<reportElement x="0" y="70" width="107" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[PROVEEDOR:]]></text>
			</staticText>
			<staticText>
				<reportElement x="0" y="132" width="107" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[OBSERVACIONES:]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="107" y="70" width="344" height="20"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{RAZON_SOC_PROV}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="454" y="70" width="74" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[NÚMERO DE FUENTE:]]></text>
			</staticText>
			<staticText>
				<reportElement x="454" y="125" width="74" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[FECHA:]]></text>
			</staticText>
			<staticText>
				<reportElement x="454" y="152" width="74" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[CIUDAD:]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true">
				<reportElement x="553" y="70" width="147" height="20" isRemoveLineWhenBlank="true"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{NUM_PROCESO}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" pattern="dd-MM-yyyy" isBlankWhenNull="true">
				<reportElement x="553" y="125" width="147" height="20" isRemoveLineWhenBlank="true"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.sql.Timestamp"><![CDATA[$F{FECHA_CONTRATO}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="553" y="152" width="147" height="20" isRemoveLineWhenBlank="true"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{PREFIJO}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="107" y="105" width="345" height="20"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{ID_COTIZACION}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="107" y="132" width="345" height="20"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{OBSERVACIONES}]]></textFieldExpression>
			</textField>
			<image>
				<reportElement x="0" y="0" width="283" height="53"/>
				<imageExpression class="java.lang.String"><![CDATA["repo:LogoEmpresa003.jpg"]]></imageExpression>
			</image>
			<staticText>
				<reportElement x="0" y="105" width="107" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[No. COTIZACIÓN:]]></text>
			</staticText>
			<textField>
				<reportElement x="283" y="24" width="427" height="29"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="14"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{entidad_cliente}.equals("2")?
"LISTADO DE BIENES Y/O ELEMENTOS No."+$F{SEC}.toString():
$P{entidad_cliente}.equals("3")?
"LISTADO DE BIENES Y/O ELEMENTOS No."+$F{SEC}.toString():
" CONTRATO No."+$F{SEC}.toString()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="454" y="98" width="99" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[TIPO DE FUENTE:]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" pattern="###0" isBlankWhenNull="true">
				<reportElement x="553" y="98" width="147" height="20" isRemoveLineWhenBlank="true"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{TIPO_PROCESO}]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="47" splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="20" splitType="Immediate">
			<textField pattern="#,##0.00;(#,##0.00)">
				<reportElement x="489" y="0" width="103" height="20"/>
				<box leftPadding="0" 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="Right" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{VALOR_UNITARIO}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="0" y="0" width="95" height="20"/>
				<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 textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{CODIGO_ELEMENTO}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="421" y="0" width="68" height="20"/>
				<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 textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{CANTIDAD}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="95" y="0" width="326" height="20"/>
				<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">
					<font size="6"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{DESC_CATALOGO}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00;(#,##0.00)">
				<reportElement x="592" y="0" width="118" height="20"/>
				<box leftPadding="0" 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="Right" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{SUBTOTAL}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band height="11"/>
	</columnFooter>
	<lastPageFooter>
		<band height="27">
			<textField>
				<reportElement mode="Opaque" x="0" y="12" width="383" height="12" forecolor="#575757" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{entidad_cliente}.equals("1")?
"Impreso por: "+$P{username}
:""]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement mode="Opaque" x="0" y="0" width="383" height="12" forecolor="#575757" backcolor="#FFFFFF"/>
				<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{entidad_cliente}.equals("1")?
 "Elaborado por: "+$F{RAZON_SOC_ELABORO}
 :""]]></textFieldExpression>
			</textField>
		</band>
	</lastPageFooter>
	<summary>
		<band height="136" splitType="Stretch">
			<staticText>
				<reportElement x="0" y="43" width="710" height="83"/>
				<box leftPadding="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/>
				<text><![CDATA[]]></text>
			</staticText>
			<textField>
				<reportElement x="95" y="94" width="164" height="20"/>
				<box>
					<topPen lineWidth="0.75"/>
				</box>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{entidad_cliente}.equals("2")?"ELABORÓ":($P{entidad_cliente}.equals("3")?"ELABORÓ":"ORDENADOR DEL GASTO")]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="315" y="94" width="164" height="20"/>
				<box>
					<topPen lineWidth="0.75"/>
				</box>
				<textElement verticalAlignment="Middle" markup="none">
					<font size="8" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{entidad_cliente}.equals("2")?"SUPERVISOR":$P{entidad_cliente}.equals("3")?"SUPERVISOR":"CONTRATISTA"]]></textFieldExpression>
			</textField>
		</band>
	</summary>
</jasperReport>
