<?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="comprobante_ingreso_con" pageWidth="750" pageHeight="900" columnWidth="710" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="1.2100000000000013"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="240"/>
	<property name="ireport.jasperserver.reportUnit" value="/reports/inventario/comprobante_entrada_con"/>
	<property name="ireport.jasperserver.url" value="http://192.168.2.43:8090/jasperserver/services/repository"/>
	<parameter name="id_movimientos_con" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="numero_letras" class="java.lang.String">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<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="entidad_cliente" class="java.lang.String"/>
	<parameter name="username" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<queryString>
		<![CDATA[select

 (select razon_soc from interceros_v where id_mae_ter = tab0.id_mae_ter) as tercero
, (select num_doc from interceros_v where id_mae_ter = tab0.id_mae_ter) as num_doc_ter
, (select descripcion from in_tipo_almacenamiento where id_tipo_almacenamiento = tab0.id_tipo_almacenamiento) as tipo_almacenamiento
, (select descripcion from in_espacio where id_espacio = tab0.id_espacio) as ubicacion
, (select razon_soc from interceros_v where id_mae_ter = tab1.id_mae_ter) as tercero_firma
, (select razon_soc from interceros_v where id_mae_ter = tab2.id_mae_ter) as tercero_firma2
, (select num_doc from interceros_v where id_mae_ter = tab1.id_mae_ter) as num_doc_ter_firma
, (select num_doc from interceros_v where id_mae_ter = tab0.id_usuario) as num_doc_elabora
, (select razon_soc from interceros_v where id_mae_ter = tab0.id_usuario) as razon_soc_elabora
,tab0.*
, tab0.total_movimiento
, tab1.cargo
, tab2.cargo as cargo2
from (

select
tab1.id_movimientos_con
, tab1.fecha_mov
,tab1.id_vigencia
, to_char(tab1.fecha_doc, 'dd-mm-yyyy') as fecha_doc
, tab1.id_tipo_almacenamiento_fin as id_tipo_almacenamiento
, tab1.id_espacio_fin as id_espacio
, tab1.num_doc
, tab1.observaciones as obser_mov
, tab1.valor_factura
, tab1.valor_ajuste
, tab1.id_usuario
, tab2.valor_unitario
--, tab2.valor_unitario as total
, tab2.id_det_mov_con
, tab2.cantidad
, tab2.valor_unitario*tab2.cantidad as valor_total
, tab3.codigo_elemento  as codigo_inventario_con
, tab3.desc_catalogo as desc_catalogo
, tab3.id_catalogo
, tab3.id_clase
, tab3.id_linea
, tab4.prefijo
,tab4.nom_cen_op
, tab4.id_cen_op
, tab5.descripcion as desc_corta_tipo_mov
, tab5.id_tipo_movimiento
, tab6.unidad
, tab6.descripcion as desc_unidad_medida
, tab6.id_unidad_medida
, tab7.id_inventario_con
, tab8.id_concepto_movimiento
, tab8.descripcion as desc_concepto_movimiento
, case when tab1.id_tipo_movimiento = 3 then tab1.id_mae_ter_ini else id_mae_ter_fin end as id_mae_ter
, tab9.id
, tab9.descripcion as desc_ts_td
, tab7.codigo
,tab1.anulado
,tab1.fecha_anu
,tab1.estado
,(select total_movimiento from in_movimientos_con_v m where tab1.id_movimientos_con = m.id_movimientos_con and m.id_cen_op = tab1.id_cen_op
and m.id_vigencia = tab1.id_vigencia and m.id_tipo_movimiento = tab1.id_tipo_movimiento) as total_movimiento,
tab1.valor_iva_descontable

from in_movimientos_con tab1

left join in_det_mov_con tab2
on tab2.id_movimientos_con = tab1.id_movimientos_con
and tab2.id_cen_op = tab1.id_cen_op
and tab2.id_vigencia = tab1.id_vigencia
and tab2.id_tipo_movimiento= tab1.id_tipo_movimiento

left join ts_td tab9 on tab9.id = tab1.id_ts_td
left join in_codigo_elemento_v tab3 on tab3.id_linea = tab2.id_linea and tab3.id_clase = tab2.id_clase and tab3.id_catalogo = tab2.id_catalogo
join centro_operacion tab4 on tab4.id_cen_op = tab1.id_cen_op
join in_tipo_movimiento tab5 on tab5.id_tipo_movimiento = tab1.id_tipo_movimiento
left join in_unidad_medida tab6 on tab6.id_unidad_medida = tab3.id_unidad_medida
left join in_inventario_con tab7 on tab7.id_inventario_con = tab2.id_inventario_con
join in_concepto_movimiento tab8 on tab8.id_concepto_movimiento = tab1.id_concepto_movimiento

where
tab1.id_movimientos_con = $P{id_movimientos_con}
and tab1.id_cen_op = $P{id_cen_op}
and tab1.id_vigencia = $P{id_vigencia}
and tab1.id_tipo_movimiento = 1
--and tab1.estado = 0

order by  tab2.id_movimientos_con , tab1.id_movimientos_con, tab2.id_inventario_con

)tab0
left join in_firma tab1 on tab1.id_tipo_movimiento = tab0.id_tipo_movimiento
and tab0.id_cen_op = tab1.id_cen_op and tab1.id_tipo_firma = 1
and (tab0.fecha_mov  between tab1.fecha_ini
and case when  tab1.fecha_fin is null then sysdate else tab1.fecha_fin end)
left join in_firma tab2 on tab2.id_tipo_movimiento = tab0.id_tipo_movimiento
and tab0.id_cen_op = tab2.id_cen_op and tab2.id_tipo_firma = 2
and (tab0.fecha_mov  between tab2.fecha_ini
and case when  tab2.fecha_fin is null then sysdate else tab2.fecha_fin end)


where 1 = 1]]>
	</queryString>
	<field name="TERCERO" class="java.lang.String"/>
	<field name="NUM_DOC_TER" class="java.lang.String"/>
	<field name="TIPO_ALMACENAMIENTO" class="java.lang.String"/>
	<field name="UBICACION" class="java.lang.String"/>
	<field name="TERCERO_FIRMA" class="java.lang.String"/>
	<field name="TERCERO_FIRMA2" class="java.lang.String"/>
	<field name="NUM_DOC_TER_FIRMA" class="java.lang.String"/>
	<field name="NUM_DOC_ELABORA" class="java.lang.String"/>
	<field name="RAZON_SOC_ELABORA" class="java.lang.String"/>
	<field name="ID_MOVIMIENTOS_CON" class="java.math.BigDecimal"/>
	<field name="FECHA_MOV" class="java.sql.Timestamp"/>
	<field name="ID_VIGENCIA" class="java.math.BigDecimal"/>
	<field name="FECHA_DOC" class="java.lang.String"/>
	<field name="ID_TIPO_ALMACENAMIENTO" class="java.math.BigDecimal"/>
	<field name="ID_ESPACIO" class="java.math.BigDecimal"/>
	<field name="NUM_DOC" class="java.lang.String"/>
	<field name="OBSER_MOV" class="java.lang.String"/>
	<field name="VALOR_FACTURA" class="java.math.BigDecimal"/>
	<field name="VALOR_AJUSTE" class="java.math.BigDecimal"/>
	<field name="ID_USUARIO" class="java.math.BigDecimal"/>
	<field name="VALOR_UNITARIO" class="java.math.BigDecimal"/>
	<field name="ID_DET_MOV_CON" class="java.math.BigDecimal"/>
	<field name="CANTIDAD" class="java.math.BigDecimal"/>
	<field name="VALOR_TOTAL" class="java.math.BigDecimal"/>
	<field name="CODIGO_INVENTARIO_CON" class="java.lang.String"/>
	<field name="DESC_CATALOGO" class="java.lang.String"/>
	<field name="ID_CATALOGO" class="java.math.BigDecimal"/>
	<field name="ID_CLASE" class="java.math.BigDecimal"/>
	<field name="ID_LINEA" class="java.math.BigDecimal"/>
	<field name="PREFIJO" class="java.lang.String"/>
	<field name="NOM_CEN_OP" class="java.lang.String"/>
	<field name="ID_CEN_OP" class="java.math.BigDecimal"/>
	<field name="DESC_CORTA_TIPO_MOV" class="java.lang.String"/>
	<field name="ID_TIPO_MOVIMIENTO" class="java.math.BigDecimal"/>
	<field name="UNIDAD" class="java.lang.String"/>
	<field name="DESC_UNIDAD_MEDIDA" class="java.lang.String"/>
	<field name="ID_UNIDAD_MEDIDA" class="java.math.BigDecimal"/>
	<field name="ID_INVENTARIO_CON" class="java.math.BigDecimal"/>
	<field name="ID_CONCEPTO_MOVIMIENTO" class="java.math.BigDecimal"/>
	<field name="DESC_CONCEPTO_MOVIMIENTO" class="java.lang.String"/>
	<field name="ID_MAE_TER" class="java.math.BigDecimal"/>
	<field name="ID" class="java.math.BigDecimal"/>
	<field name="DESC_TS_TD" class="java.lang.String"/>
	<field name="CODIGO" class="java.math.BigDecimal"/>
	<field name="ANULADO" class="java.math.BigDecimal"/>
	<field name="FECHA_ANU" class="java.sql.Timestamp"/>
	<field name="ESTADO" class="java.math.BigDecimal"/>
	<field name="TOTAL_MOVIMIENTO" class="java.math.BigDecimal"/>
	<field name="VALOR_IVA_DESCONTABLE" class="java.math.BigDecimal"/>
	<field name="CARGO" class="java.lang.String"/>
	<field name="CARGO2" class="java.lang.String"/>
	<variable name="valor_total" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{VALOR_TOTAL}]]></variableExpression>
	</variable>
	<variable name="CANTIDAD_ELEMENTOS" class="java.math.BigDecimal" resetType="Group" resetGroup="Inventario" calculation="Sum">
		<variableExpression><![CDATA[$F{CANTIDAD}]]></variableExpression>
	</variable>
	<variable name="TOTAL_ELEMENTOS_GRUPO" class="java.math.BigDecimal" resetType="Group" resetGroup="Inventario" calculation="Sum">
		<variableExpression><![CDATA[$F{VALOR_TOTAL}]]></variableExpression>
	</variable>
	<group name="Inventario">
		<groupExpression><![CDATA[$F{ID_MOVIMIENTOS_CON}.toString()+$F{ID_CATALOGO}.toString()]]></groupExpression>
		<groupFooter>
			<band height="16">
				<textField isBlankWhenNull="true">
					<reportElement stretchType="RelativeToTallestObject" x="0" y="0" width="74" height="16"/>
					<box>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.0"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Top">
						<font size="8"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{CODIGO_INVENTARIO_CON}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="true" isBlankWhenNull="true">
					<reportElement stretchType="RelativeToTallestObject" x="74" y="0" width="309" height="15"/>
					<box>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.0"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement verticalAlignment="Top">
						<font size="8"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{DESC_CATALOGO}]]></textFieldExpression>
				</textField>
				<textField isBlankWhenNull="true">
					<reportElement stretchType="RelativeToTallestObject" x="383" y="0" width="73" height="16"/>
					<box>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.0"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Top">
						<font size="8"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{DESC_UNIDAD_MEDIDA}]]></textFieldExpression>
				</textField>
				<textField pattern="###0" isBlankWhenNull="true">
					<reportElement stretchType="RelativeToTallestObject" x="456" y="0" width="54" height="16"/>
					<box>
						<leftPen lineWidth="0.0"/>
						<bottomPen lineWidth="0.0"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Center" verticalAlignment="Top">
						<font size="8"/>
					</textElement>
					<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{CANTIDAD_ELEMENTOS}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
					<reportElement stretchType="RelativeToTallestObject" x="510" y="0" width="100" height="16"/>
					<box rightPadding="2">
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.0"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Top">
						<font size="8"/>
					</textElement>
					<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{VALOR_UNITARIO}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0.00;-#,##0.00" isBlankWhenNull="true">
					<reportElement stretchType="RelativeToTallestObject" x="610" y="0" width="100" height="16"/>
					<box rightPadding="2">
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.0"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Right" verticalAlignment="Top">
						<font size="8"/>
					</textElement>
					<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{TOTAL_ELEMENTOS_GRUPO}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<background>
		<band height="860" splitType="Stretch">
			<staticText>
				<reportElement x="0" y="193" width="74" height="417"/>
				<box>
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.0"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement/>
				<text><![CDATA[]]></text>
			</staticText>
			<staticText>
				<reportElement x="74" y="193" width="309" height="417"/>
				<box>
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.0"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement/>
				<text><![CDATA[]]></text>
			</staticText>
			<staticText>
				<reportElement x="383" y="193" width="73" height="417"/>
				<box>
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.0"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement/>
				<text><![CDATA[]]></text>
			</staticText>
			<staticText>
				<reportElement x="456" y="193" width="54" height="417"/>
				<box>
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.0"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement/>
				<text><![CDATA[]]></text>
			</staticText>
			<staticText>
				<reportElement x="510" y="193" width="100" height="417"/>
				<box>
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.0"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement/>
				<text><![CDATA[]]></text>
			</staticText>
			<staticText>
				<reportElement x="610" y="193" width="100" height="417"/>
				<box>
					<pen lineWidth="0.75"/>
					<topPen lineWidth="0.0"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.0"/>
					<rightPen lineWidth="0.75"/>
				</box>
				<textElement/>
				<text><![CDATA[]]></text>
			</staticText>
			<image>
				<reportElement x="181" y="229" width="494" height="361">
					<printWhenExpression><![CDATA[$F{ANULADO}.intValue()==1]]></printWhenExpression>
				</reportElement>
				<imageExpression class="java.lang.String"><![CDATA["repo:anulado.jpg"]]></imageExpression>
			</image>
			<staticText>
				<reportElement mode="Transparent" x="466" y="0" width="144" height="37" forecolor="#ADA8A8" backcolor="#FFFFFF">
					<printWhenExpression><![CDATA[$F{ANULADO}.intValue()==1]]></printWhenExpression>
				</reportElement>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="15" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[Fecha Anulación:]]></text>
			</staticText>
			<textField pattern="dd/MM/yyyy" isBlankWhenNull="true">
				<reportElement x="610" y="0" width="100" height="37" forecolor="#ADA8A8">
					<printWhenExpression><![CDATA[$F{ANULADO}.intValue()==1]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="15"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[$F{FECHA_ANU}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement mode="Transparent" x="74" y="229" width="589" height="381" forecolor="#C5C5C5" backcolor="#FDFBFB">
					<printWhenExpression><![CDATA[$F{ESTADO}.intValue()==1]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="98"/>
				</textElement>
				<text><![CDATA[Borrador]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Transparent" x="283" y="0" width="183" height="37" forecolor="#ADA8A8" backcolor="#FFFFFF">
					<printWhenExpression><![CDATA[$F{ESTADO}.intValue()==1]]></printWhenExpression>
				</reportElement>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" rotation="None" markup="none">
					<font fontName="SansSerif" size="15" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<text><![CDATA[Comprobante Abierto]]></text>
			</staticText>
		</band>
	</background>
	<pageHeader>
		<band height="168" splitType="Stretch">
			<staticText>
				<reportElement x="1" y="54" width="469" height="114"/>
				<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="471" y="54" width="239" height="114"/>
				<box leftPadding="2" rightPadding="2">
					<pen lineWidth="1.0"/>
					<topPen lineWidth="1.0"/>
					<leftPen lineWidth="0.0"/>
					<bottomPen lineWidth="1.0"/>
					<rightPen lineWidth="1.0"/>
				</box>
				<textElement/>
				<text><![CDATA[]]></text>
			</staticText>
			<staticText>
				<reportElement x="2" y="54" width="106" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[CONCEPTO        :]]></text>
			</staticText>
			<staticText>
				<reportElement x="2" y="141" width="106" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[ANTECEDENTE    :]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement x="109" y="54" width="363" height="20"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{DESC_CONCEPTO_MOVIMIENTO}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="498" y="54" width="74" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[No.]]></text>
			</staticText>
			<staticText>
				<reportElement x="498" y="114" width="74" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[FECHA:]]></text>
			</staticText>
			<staticText>
				<reportElement x="498" y="141" width="74" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[CIUDAD:]]></text>
			</staticText>
			<textField pattern="###0" isBlankWhenNull="true">
				<reportElement x="572" y="54" width="122" height="20" isRemoveLineWhenBlank="true"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{ID_MOVIMIENTOS_CON}.toString()]]></textFieldExpression>
			</textField>
			<textField pattern="dd-MM-yyyy" isBlankWhenNull="true">
				<reportElement x="572" y="114" width="122" height="20" isRemoveLineWhenBlank="true"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression class="java.sql.Timestamp"><![CDATA[$F{FECHA_MOV}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="572" y="141" width="122" height="20" isRemoveLineWhenBlank="true"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{PREFIJO}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="110" y="114" width="362" height="20"/>
				<box topPadding="6"/>
				<textElement verticalAlignment="Top">
					<font size="7"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{OBSER_MOV}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="108" y="141" width="363" height="20"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{NUM_DOC}==null?"":$F{DESC_TS_TD}+ " No. "+$F{NUM_DOC}+" del "+$F{FECHA_DOC}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="292" y="22" width="416" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font size="16"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[" COMPROBANTE DE "+$F{DESC_CORTA_TIPO_MOV}+" No."+$F{ID_MOVIMIENTOS_CON}.toString()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="2" y="114" width="107" height="20"/>
				<textElement>
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[OBSERVACIONES: ]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement x="572" y="84" width="126" height="20" isRemoveLineWhenBlank="true"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement verticalAlignment="Middle"/>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$F{ID_VIGENCIA}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="498" y="84" width="74" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement textAlignment="Left" verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[VIGENCIA:]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement x="124" y="84" width="327" height="20"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{NOM_CEN_OP}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="2" y="84" width="122" height="20"/>
				<textElement verticalAlignment="Middle">
					<font size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[CENTRO OPERACION: ]]></text>
			</staticText>
			<image>
				<reportElement x="2" y="0" width="283" height="53"/>
				<imageExpression class="java.lang.String"><![CDATA["repo:LogoEmpresa003.jpg"]]></imageExpression>
			</image>
		</band>
	</pageHeader>
	<columnHeader>
		<band height="44" splitType="Stretch">
			<staticText>
				<reportElement mode="Opaque" x="0" y="19" width="74" 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="74" y="19" width="309" 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="383" y="19" width="73" 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[UNIDAD DE MEDIDA]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="510" y="19" width="100" 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="610" y="19" width="100" 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>
			<staticText>
				<reportElement mode="Opaque" x="456" y="19" width="54" 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>
		</band>
	</columnHeader>
	<detail>
		<band splitType="Immediate">
			<printWhenExpression><![CDATA[]]></printWhenExpression>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="64" splitType="Stretch">
			<staticText>
				<reportElement mode="Opaque" x="273" y="25" width="164" height="12" forecolor="#575757"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<text><![CDATA[Websafi - Control De Recursos Físicos
]]></text>
			</staticText>
			<textField>
				<reportElement x="273" y="37" width="110" height="12" forecolor="#575757"/>
				<textElement textAlignment="Right">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Página "+$V{PAGE_NUMBER}+" de "]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report">
				<reportElement x="383" y="37" width="54" height="12" forecolor="#575757"/>
				<box leftPadding="2"/>
				<textElement>
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
	<lastPageFooter>
		<band height="333">
			<staticText>
				<reportElement x="0" y="182" width="710" height="151"/>
				<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>
			<staticText>
				<reportElement x="0" y="80" width="710" height="102"/>
				<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 pattern="#,##0.00;(-#,##0.00)" isBlankWhenNull="true">
				<reportElement mode="Opaque" x="610" y="60" width="100" 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[$F{TOTAL_MOVIMIENTO}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="285" y="85" width="141" height="20"/>
				<textElement verticalAlignment="Middle"/>
				<text><![CDATA[ELEMENTOS DE CONSUMO]]></text>
			</staticText>
			<staticText>
				<reportElement x="140" y="93" width="62" height="14"/>
				<box leftPadding="2"/>
				<textElement textAlignment="Center" verticalAlignment="Middle"/>
				<text><![CDATA[INGRESO]]></text>
			</staticText>
			<staticText>
				<reportElement x="9" y="143" width="87" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Responsable:]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement x="96" y="143" width="602" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{TERCERO}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="96" y="123" width="602" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement verticalAlignment="Middle">
					<font size="9"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{TIPO_ALMACENAMIENTO}+ " "+$F{UBICACION}]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement x="96" y="163" width="602" height="13"/>
				<box leftPadding="5" rightPadding="2"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["CC/Nit: "+$F{NUM_DOC_TER}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="9" y="123" width="87" height="20"/>
				<box leftPadding="2" rightPadding="2"/>
				<textElement verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[Ubicación     :]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement x="26" y="210" width="216" height="20"/>
				<box leftPadding="2" rightPadding="2">
					<topPen lineWidth="0.75"/>
				</box>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{TERCERO}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="26" y="230" width="216" height="13"/>
				<box leftPadding="5" rightPadding="2"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["CC/Nit: "+$F{NUM_DOC_TER}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00;(-#,##0.00)" isBlankWhenNull="true">
				<reportElement mode="Opaque" x="0" y="60" width="510" 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[" VALOR EN LETRAS: "+$P{numero_letras}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement mode="Opaque" x="510" y="60" width="100" 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[TOTAL:]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="0" y="20" width="610" height="20" forecolor="#000000" backcolor="#E2D9D9"/>
				<box>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</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>
				<text><![CDATA[ Valor IVA descontable: ]]></text>
			</staticText>
			<textField pattern="#,##0.00;(-#,##0.00)" isBlankWhenNull="true">
				<reportElement mode="Opaque" x="610" y="20" width="100" 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[$F{VALOR_IVA_DESCONTABLE}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="10" y="301" width="600" height="10">
					<printWhenExpression><![CDATA[1 == 0]]></printWhenExpression>
				</reportElement>
				<box leftPadding="2" rightPadding="2">
					<topPen lineWidth="0.0"/>
				</box>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{entidad_cliente}.equals("4")?($F{ID_CEN_OP}.intValue()!=28?("Vo.Bo. "+$F{TERCERO_FIRMA2}+" - "+$F{CARGO2}+" ___________________________________"):""):""]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="10" y="284" width="600" height="10"/>
				<box leftPadding="2" rightPadding="2">
					<topPen lineWidth="0.0"/>
				</box>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{entidad_cliente}.equals("4")?($F{ID_CEN_OP}.intValue()==28?("Vo.Bo. "+$F{TERCERO_FIRMA2}+" - "+$F{CARGO2}):("Verificación técnica y elaborado por: "+($F{RAZON_SOC_ELABORA}==null?"":$F{RAZON_SOC_ELABORA})+" ___________________________________")):($F{RAZON_SOC_ELABORA}==null?"":"Elaborado por: "+$F{RAZON_SOC_ELABORA})]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="10" y="266" width="600" height="10" isRemoveLineWhenBlank="true"/>
				<box leftPadding="2" rightPadding="2">
					<topPen lineWidth="0.0"/>
				</box>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{entidad_cliente}.equals("4")?($F{ID_CEN_OP}.intValue()==28?("Vo.Bo. "+$F{TERCERO_FIRMA}+" - "+$F{CARGO}):($F{TERCERO_FIRMA}==null?"":($F{CARGO}+"                      : "+$F{TERCERO_FIRMA}+" ___________________________________"))):""]]></textFieldExpression>
			</textField>
			<textField>
				<reportElement mode="Opaque" x="10" y="321" 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["Impreso por: "+$P{username}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00;(-#,##0.00)" isBlankWhenNull="true">
				<reportElement mode="Opaque" x="610" y="40" width="100" 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[$F{VALOR_AJUSTE}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement mode="Opaque" x="0" y="40" width="610" height="20" forecolor="#000000" backcolor="#E2D9D9"/>
				<box>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</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>
				<text><![CDATA[ Valor de Ajuste al Peso: ]]></text>
			</staticText>
			<textField pattern="#,##0.00;(-#,##0.00)" isBlankWhenNull="true">
				<reportElement mode="Opaque" x="610" y="0" width="100" 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{valor_total}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement mode="Opaque" x="0" y="0" width="610" height="20" forecolor="#000000" backcolor="#E2D9D9"/>
				<box>
					<topPen lineWidth="0.75"/>
					<leftPen lineWidth="0.75"/>
					<bottomPen lineWidth="0.75"/>
					<rightPen lineWidth="0.75"/>
				</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>
				<text><![CDATA[ Valor Total Elementos: ]]></text>
			</staticText>
		</band>
	</lastPageFooter>
</jasperReport>
