<?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="ResCompTipComp" language="groovy" pageWidth="792" pageHeight="612" orientation="Landscape" whenNoDataType="NoDataSection" columnWidth="752" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20">
	<property name="ireport.zoom" value="1.4641000000000008"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<property name="ireport.jasperserver.url" value="http://websafitest.sofhouse.net:8080/jasperserver/"/>
	<property name="ireport.jasperserver.user" value="jasperadmin"/>
	<property name="ireport.jasperserver.reportUnit" value="/reports/contab/qcad_tip_com"/>
	<property name="com.jaspersoft.studio.report.description" value="Main jrxml"/>
	<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Contab"/>
	<property name="com.jaspersoft.studio.data.sql.tables" value=""/>
	<property name="ireport.jasperserver.report.resource" value="/reports/contab/qcad_tip_com_files/qcad_tip_com_jrxml"/>
	<parameter name="id_cia" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="id_cen_op" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="id_periodo_contable" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="id_vigencia" class="java.math.BigDecimal">
		<defaultValueExpression><![CDATA[]]></defaultValueExpression>
	</parameter>
	<parameter name="nom_cen_op" class="java.lang.String"/>
	<parameter name="nom_periodo" class="java.lang.String"/>
	<parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA["/home/lavila/reports-dev/Res_comp_tip_comp/"]]></defaultValueExpression>
	</parameter>
	<parameter name="whereTipComp" class="java.lang.String">
		<defaultValueExpression><![CDATA[" "]]></defaultValueExpression>
	</parameter>
	<parameter name="whereCenOp" class="java.lang.String">
		<defaultValueExpression><![CDATA[' ']]></defaultValueExpression>
	</parameter>
	<parameter name="nom_corto" class="java.lang.String">
		<parameterDescription><![CDATA[""]]></parameterDescription>
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
	</parameter>
	<queryString>
		<![CDATA[select
tab0.*,
tab1.FECHA_CAD,
tab1.ID_CAD,
tab1.TOT_DEBITO as TOT_DEBITO_det,
tab1.TOT_CREDITO as TOT_CREDITO_det,
tab1.nom_cen_op,
tab1.descr_cen_op,
nvl(tab1.NUM_MOV,0) as num_mov_det

from(

    SELECT DISTINCT
    tab0.nom_tipo_comprobante,
    tab0.nom_corto,
    tab0.activo,
    tab1.*

    FROM CN_TIPO_COMPROBANTE tab0

    JOIN CN_CONTROL_CAD_TOT_TC tab1

    ON tab0.id_tipo_comprobante = tab1.id_tipo_comprobante

)tab0

left join(

    SELECT DISTINCT

    tab0.id_cia,
    tab0.id_cen_op,
    tab0.id_periodo_contable,
    tab0.id_vigencia,
    tab0.id_tipo_comprobante,
    tab0.FECHA_CAD,
    tab0.ID_CAD,
    tab0.TOT_DEBITO,
    tab0.TOT_CREDITO,
    tab1.nom_cen_op,
    tab1.descr_cen_op,
    count( mov.id_mov_cont ) as NUM_MOV
    --tab5.NUM_MOV

    FROM CN_CONTROL_CAD_TOT tab0

    JOIN CN_CENTRO_OPERACION tab1
    ON tab0.id_cia = tab1.id_cia
    AND tab0.id_cen_op = tab1.id_cen_op

    JOIN CN_PERIODO_CONTABLE tab2
    ON tab0.id_periodo_contable = tab2.id_periodo_contable

    JOIN CN_TIPO_COMPROBANTE tab3
    ON tab0.id_tipo_comprobante = tab3.id_tipo_comprobante

    LEFT JOIN CN_DOCUMENTO tab4
    ON tab0.id_cia = tab4.id_cia
    AND tab0.id_cad = tab4.id_cad
    AND tab0.id_cen_op = tab4.id_cen_op
    AND tab0.id_vigencia = tab4.id_vigencia

    left join CN_MOVIMIENTO_CONTABLE mov
    ON tab4.id_cia = mov.id_cia
    AND tab4.id_cad = mov.id_cad
    AND tab4.id_cen_op = mov.id_cen_op
    AND tab4.id_vigencia = mov.id_vigencia
    AND tab4.id_documento = mov.id_documento

    /*LEFT JOIN CN_CONTROL_CAD_NUM_MOV tab5
    ON tab0.id_cia = tab5.id_cia
    AND tab0.id_cad = tab5.id_cad
    AND tab0.id_cen_op = tab5.id_cen_op
    AND tab0.id_vigencia = tab5.id_vigencia*/

    where
    1 = 1
    AND tab0.id_cia =  $P{id_cia}
    AND tab0.id_periodo_contable =  $P{id_periodo_contable}
    AND tab0.id_vigencia =  $P{id_vigencia}

    group by
    tab0.id_cia,
    tab0.id_cen_op,
    tab0.id_periodo_contable,
    tab0.id_vigencia,
    tab0.id_tipo_comprobante,
    tab0.FECHA_CAD,
    tab0.ID_CAD,
    tab0.TOT_DEBITO,
    tab0.TOT_CREDITO,
    tab1.nom_cen_op,
    tab1.descr_cen_op

)tab1 on
tab1.id_cia = tab0.id_cia and
tab1.id_cen_op=tab0.id_cen_op and
tab0.id_tipo_comprobante=tab1.id_tipo_comprobante and
tab0.id_vigencia = tab1.id_vigencia and
tab0.id_periodo_contable = tab1.id_periodo_contable

where
1 = 1
AND tab0.id_cia =  $P{id_cia}
AND tab0.id_periodo_contable =  $P{id_periodo_contable}
AND tab0.id_vigencia =  $P{id_vigencia}
$P!{whereTipComp}
$P!{whereCenOp}

ORDER BY
tab0.id_tipo_comprobante,
tab1.fecha_cad]]>
	</queryString>
	<field name="NOM_TIPO_COMPROBANTE" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.name" value="NOM_TIPO_COMPROBANTE"/>
		<property name="com.jaspersoft.studio.field.label" value="NOM_TIPO_COMPROBANTE"/>
	</field>
	<field name="NOM_CORTO" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.name" value="NOM_CORTO"/>
		<property name="com.jaspersoft.studio.field.label" value="NOM_CORTO"/>
	</field>
	<field name="ACTIVO" class="java.math.BigDecimal">
		<property name="com.jaspersoft.studio.field.name" value="ACTIVO"/>
		<property name="com.jaspersoft.studio.field.label" value="ACTIVO"/>
	</field>
	<field name="ID_VIGENCIA" class="java.math.BigDecimal">
		<property name="com.jaspersoft.studio.field.name" value="ID_VIGENCIA"/>
		<property name="com.jaspersoft.studio.field.label" value="ID_VIGENCIA"/>
	</field>
	<field name="ID_CEN_OP" class="java.math.BigDecimal">
		<property name="com.jaspersoft.studio.field.name" value="ID_CEN_OP"/>
		<property name="com.jaspersoft.studio.field.label" value="ID_CEN_OP"/>
	</field>
	<field name="ID_CIA" class="java.math.BigDecimal">
		<property name="com.jaspersoft.studio.field.name" value="ID_CIA"/>
		<property name="com.jaspersoft.studio.field.label" value="ID_CIA"/>
	</field>
	<field name="ID_PERIODO_CONTABLE" class="java.math.BigDecimal">
		<property name="com.jaspersoft.studio.field.name" value="ID_PERIODO_CONTABLE"/>
		<property name="com.jaspersoft.studio.field.label" value="ID_PERIODO_CONTABLE"/>
	</field>
	<field name="ID_TIPO_COMPROBANTE" class="java.math.BigDecimal">
		<property name="com.jaspersoft.studio.field.name" value="ID_TIPO_COMPROBANTE"/>
		<property name="com.jaspersoft.studio.field.label" value="ID_TIPO_COMPROBANTE"/>
	</field>
	<field name="TOT_DEBITO" class="java.math.BigDecimal">
		<property name="com.jaspersoft.studio.field.name" value="TOT_DEBITO"/>
		<property name="com.jaspersoft.studio.field.label" value="TOT_DEBITO"/>
	</field>
	<field name="TOT_CREDITO" class="java.math.BigDecimal">
		<property name="com.jaspersoft.studio.field.name" value="TOT_CREDITO"/>
		<property name="com.jaspersoft.studio.field.label" value="TOT_CREDITO"/>
	</field>
	<field name="NUM_MOV" class="java.math.BigDecimal">
		<property name="com.jaspersoft.studio.field.name" value="NUM_MOV"/>
		<property name="com.jaspersoft.studio.field.label" value="NUM_MOV"/>
	</field>
	<field name="FECHA_CAD" class="java.sql.Timestamp">
		<property name="com.jaspersoft.studio.field.name" value="FECHA_CAD"/>
		<property name="com.jaspersoft.studio.field.label" value="FECHA_CAD"/>
	</field>
	<field name="ID_CAD" class="java.math.BigDecimal">
		<property name="com.jaspersoft.studio.field.name" value="ID_CAD"/>
		<property name="com.jaspersoft.studio.field.label" value="ID_CAD"/>
	</field>
	<field name="TOT_DEBITO_DET" class="java.math.BigDecimal">
		<property name="com.jaspersoft.studio.field.name" value="TOT_DEBITO_DET"/>
		<property name="com.jaspersoft.studio.field.label" value="TOT_DEBITO_DET"/>
	</field>
	<field name="TOT_CREDITO_DET" class="java.math.BigDecimal">
		<property name="com.jaspersoft.studio.field.name" value="TOT_CREDITO_DET"/>
		<property name="com.jaspersoft.studio.field.label" value="TOT_CREDITO_DET"/>
	</field>
	<field name="NOM_CEN_OP" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.name" value="NOM_CEN_OP"/>
		<property name="com.jaspersoft.studio.field.label" value="NOM_CEN_OP"/>
	</field>
	<field name="DESCR_CEN_OP" class="java.lang.String">
		<property name="com.jaspersoft.studio.field.name" value="DESCR_CEN_OP"/>
		<property name="com.jaspersoft.studio.field.label" value="DESCR_CEN_OP"/>
	</field>
	<field name="NUM_MOV_DET" class="java.math.BigDecimal">
		<property name="com.jaspersoft.studio.field.name" value="NUM_MOV_DET"/>
		<property name="com.jaspersoft.studio.field.label" value="NUM_MOV_DET"/>
	</field>
	<variable name="sum_debito" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{TOT_DEBITO_DET}]]></variableExpression>
	</variable>
	<variable name="sum_credito" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{TOT_CREDITO_DET}]]></variableExpression>
	</variable>
	<variable name="tot_mov" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{NUM_MOV_DET}]]></variableExpression>
	</variable>
	<variable name="tot_diferencia" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{TOT_DEBITO_DET} - $F{TOT_CREDITO_DET}]]></variableExpression>
	</variable>
	<variable name="sum_debito_grup" class="java.math.BigDecimal" resetType="Group" resetGroup="detalle_comprobante" calculation="Sum">
		<variableExpression><![CDATA[$F{TOT_DEBITO_DET}]]></variableExpression>
	</variable>
	<variable name="sum_credito_grup" class="java.math.BigDecimal" resetType="Group" resetGroup="detalle_comprobante" calculation="Sum">
		<variableExpression><![CDATA[$F{TOT_CREDITO_DET}]]></variableExpression>
	</variable>
	<variable name="sum_diferencia_grup" class="java.math.BigDecimal" resetType="Group" resetGroup="detalle_comprobante" calculation="Sum">
		<variableExpression><![CDATA[$F{TOT_DEBITO_DET} - $F{TOT_CREDITO_DET}]]></variableExpression>
	</variable>
	<variable name="sum_num_mov_grup" class="java.math.BigDecimal" resetType="Group" resetGroup="detalle_comprobante" calculation="Sum">
		<variableExpression><![CDATA[$F{NUM_MOV_DET}]]></variableExpression>
	</variable>
	<group name="detalle_comprobante">
		<groupExpression><![CDATA[$F{ID_TIPO_COMPROBANTE}]]></groupExpression>
		<groupHeader>
			<band height="40">
				<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="false">
					<reportElement mode="Transparent" x="452" y="12" width="100" height="10" forecolor="#000000" backcolor="#FFFFFF"/>
					<box 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" 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.math.BigDecimal"><![CDATA[$F{TOT_CREDITO}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement mode="Opaque" x="652" y="0" width="100" height="12" forecolor="#000000" backcolor="#88C2F9"/>
					<box>
						<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" markup="none">
						<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<text><![CDATA[Movimientos]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="0" y="0" width="90" height="12" forecolor="#000000" backcolor="#88C2F9"/>
					<box>
						<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" markup="none">
						<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<text><![CDATA[No. Tip Comp]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="352" y="0" width="100" height="12" forecolor="#000000" backcolor="#88C2F9"/>
					<box>
						<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" markup="none">
						<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<text><![CDATA[Total Débito]]></text>
				</staticText>
				<textField pattern="#,##0.00;(#,##0.00)">
					<reportElement x="352" y="12" width="100" height="10"/>
					<box 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{TOT_DEBITO}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement mode="Opaque" x="452" y="0" width="100" height="12" forecolor="#000000" backcolor="#88C2F9"/>
					<box>
						<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" markup="none">
						<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<text><![CDATA[Total Crédito]]></text>
				</staticText>
				<textField>
					<reportElement x="90" y="12" width="262" height="10"/>
					<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{NOM_TIPO_COMPROBANTE}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement mode="Opaque" x="90" y="0" width="262" height="12" forecolor="#000000" backcolor="#88C2F9"/>
					<box>
						<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" markup="none">
						<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<text><![CDATA[Tipo de comprobante]]></text>
				</staticText>
				<textField>
					<reportElement x="0" y="12" width="90" height="10"/>
					<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{NOM_CORTO}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0" isBlankWhenNull="true">
					<reportElement x="652" y="12" width="100" height="10"/>
					<box 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{NUM_MOV}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="false">
					<reportElement mode="Transparent" x="552" y="12" width="100" height="10" forecolor="#000000" backcolor="#FFFFFF"/>
					<box 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" 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.math.BigDecimal"><![CDATA[$F{TOT_DEBITO} - $F{TOT_CREDITO}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement mode="Opaque" x="552" y="0" width="100" height="12" forecolor="#000000" backcolor="#88C2F9"/>
					<box>
						<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" markup="none">
						<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<text><![CDATA[Dif. Deb-Cre]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="170" y="28" width="182" height="12" backcolor="#AED6FB"/>
					<box>
						<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="8" isBold="true"/>
					</textElement>
					<text><![CDATA[Centro de Operación]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="652" y="28" width="100" height="12" forecolor="#000000" backcolor="#AED6FB"/>
					<box>
						<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" markup="none">
						<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<text><![CDATA[Movimientos]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="552" y="28" width="100" height="12" forecolor="#000000" backcolor="#AED6FB"/>
					<box>
						<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" markup="none">
						<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<text><![CDATA[Dif. Deb-Cre]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="452" y="28" width="100" height="12" forecolor="#000000" backcolor="#AED6FB"/>
					<box>
						<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" markup="none">
						<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<text><![CDATA[Total Crédito]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="90" y="28" width="80" height="12" backcolor="#AED6FB"/>
					<box>
						<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="8" isBold="true"/>
					</textElement>
					<text><![CDATA[No. CAD]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="352" y="28" width="100" height="12" forecolor="#000000" backcolor="#AED6FB"/>
					<box>
						<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" markup="none">
						<font fontName="SansSerif" size="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<text><![CDATA[Total Débito]]></text>
				</staticText>
				<staticText>
					<reportElement mode="Opaque" x="0" y="28" width="90" height="12" backcolor="#AED6FB"/>
					<box>
						<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="8" isBold="true"/>
					</textElement>
					<text><![CDATA[Fecha CAD]]></text>
				</staticText>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="18">
				<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="false">
					<reportElement mode="Opaque" x="552" y="0" width="100" height="12" forecolor="#000000" backcolor="#D2D0D0"/>
					<box 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" rotation="None" markup="none">
						<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{sum_diferencia_grup}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0" isBlankWhenNull="false">
					<reportElement mode="Opaque" x="652" y="0" width="100" height="12" forecolor="#000000" backcolor="#D2D0D0"/>
					<box 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" rotation="None" markup="none">
						<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{sum_num_mov_grup}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="false">
					<reportElement mode="Opaque" x="452" y="0" width="100" height="12" forecolor="#000000" backcolor="#D2D0D0"/>
					<box 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" rotation="None" markup="none">
						<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{sum_credito_grup}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement mode="Opaque" x="0" y="0" width="170" height="12" forecolor="#000000" backcolor="#D2D0D0"/>
					<box leftPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.75"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.0"/>
					</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 Comprobante: ]]></text>
				</staticText>
				<textField>
					<reportElement mode="Opaque" x="170" y="0" width="182" height="12" forecolor="#000000" backcolor="#D2D0D0"/>
					<box leftPadding="2">
						<pen lineWidth="0.75"/>
						<topPen lineWidth="0.75"/>
						<leftPen lineWidth="0.0"/>
						<bottomPen lineWidth="0.75"/>
						<rightPen lineWidth="0.75"/>
					</box>
					<textElement textAlignment="Left" verticalAlignment="Middle" rotation="None" markup="none">
						<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<textFieldExpression class="java.lang.String"><![CDATA[$F{NOM_CORTO}]]></textFieldExpression>
				</textField>
				<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="false">
					<reportElement mode="Opaque" x="352" y="0" width="100" height="12" forecolor="#000000" backcolor="#D2D0D0"/>
					<box 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" rotation="None" markup="none">
						<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
					</textElement>
					<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{sum_debito_grup}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band height="60" splitType="Stretch">
			<staticText>
				<reportElement mode="Opaque" x="552" y="4" width="200" 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 Impresión:]]></text>
			</staticText>
			<staticText>
				<reportElement mode="Opaque" x="552" y="28" width="200" 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[Centro de operación:]]></text>
			</staticText>
			<textField pattern="dd-MMM-yyyy   hh:mm aaa">
				<reportElement mode="Opaque" x="552" y="16" width="200" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" 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.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="170" y="0" width="382" height="40"/>
				<textElement textAlignment="Center" verticalAlignment="Bottom" markup="none">
					<font fontName="SansSerif" size="12" isBold="true"/>
				</textElement>
				<text><![CDATA[Sistema de Contabilidad
Resumen de comprobantes por tipo de comprobantes]]></text>
			</staticText>
			<textField>
				<reportElement x="170" y="40" width="382" height="20"/>
				<textElement textAlignment="Center" verticalAlignment="Middle" markup="none">
					<font fontName="SansSerif" size="12" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Periodo: "+$P{nom_periodo}+" de "+$P{id_vigencia}]]></textFieldExpression>
			</textField>
			<image>
				<reportElement x="0" y="10" width="140" height="40"/>
				<imageExpression class="java.lang.String"><![CDATA["repo:LogoEmpresa003.jpg"]]></imageExpression>
			</image>
			<textField pattern="dd-MMM-yyyy   hh:mm aaa">
				<reportElement mode="Opaque" x="552" y="40" width="200" height="12" forecolor="#000000" backcolor="#FFFFFF"/>
				<textElement textAlignment="Right" 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{nom_cen_op}]]></textFieldExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="15" splitType="Stretch"/>
	</pageHeader>
	<detail>
		<band height="10" splitType="Stretch">
			<textField pattern="" isBlankWhenNull="true">
				<reportElement x="170" y="0" width="182" height="10"/>
				<box leftPadding="2" rightPadding="0">
					<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{NOM_CEN_OP}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00;(#,##0.00)">
				<reportElement x="352" y="0" width="100" height="10"/>
				<box 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{TOT_DEBITO_DET}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0" isBlankWhenNull="true">
				<reportElement x="652" y="0" width="100" height="10"/>
				<box 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{NUM_MOV_DET}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="452" y="0" width="100" height="10" forecolor="#000000" backcolor="#FFFFFF"/>
				<box 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" 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.math.BigDecimal"><![CDATA[$F{TOT_CREDITO_DET}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="false">
				<reportElement mode="Transparent" x="552" y="0" width="100" height="10" forecolor="#000000" backcolor="#FFFFFF"/>
				<box 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" 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.math.BigDecimal"><![CDATA[$F{TOT_DEBITO_DET} - $F{TOT_CREDITO_DET}]]></textFieldExpression>
			</textField>
			<textField pattern="dd/MM/yyyy">
				<reportElement x="0" y="0" width="90" height="10"/>
				<box leftPadding="0" rightPadding="0">
					<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.util.Date"><![CDATA[$F{FECHA_CAD}]]></textFieldExpression>
			</textField>
			<textField pattern="###0">
				<reportElement x="90" y="0" width="80" height="10"/>
				<box rightPadding="3">
					<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.lang.String"><![CDATA[$F{ID_CAD}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<pageFooter>
		<band height="25" splitType="Stretch">
			<printWhenExpression><![CDATA[!$P{IS_IGNORE_PAGINATION}]]></printWhenExpression>
			<textField>
				<reportElement mode="Opaque" x="296" 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>
			<staticText>
				<reportElement mode="Opaque" x="296" y="0" width="150" height="12" forecolor="#575757"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="6"/>
				</textElement>
				<text><![CDATA[Websafi - Contabilidad]]></text>
			</staticText>
			<textField evaluationTime="Report" pattern="" isBlankWhenNull="false">
				<reportElement mode="Opaque" x="386" y="12" width="60" height="12" forecolor="#575757" backcolor="#FFFFFF"/>
				<box leftPadding="2"/>
				<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>
		</band>
	</pageFooter>
	<summary>
		<band height="18">
			<staticText>
				<reportElement mode="Opaque" x="0" y="6" width="352" height="12" forecolor="#000000" backcolor="#BCBABA"/>
				<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[TOTALES]]></text>
			</staticText>
			<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="false">
				<reportElement mode="Opaque" x="352" y="6" width="100" height="12" forecolor="#000000" backcolor="#BCBABA"/>
				<box 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" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{sum_debito}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="false">
				<reportElement mode="Opaque" x="452" y="6" width="100" height="12" forecolor="#000000" backcolor="#BCBABA"/>
				<box 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" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{sum_credito}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0" isBlankWhenNull="false">
				<reportElement mode="Opaque" x="652" y="6" width="100" height="12" forecolor="#000000" backcolor="#BCBABA"/>
				<box 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" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{tot_mov}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00;(#,##0.00)" isBlankWhenNull="false">
				<reportElement mode="Opaque" x="552" y="6" width="100" height="12" forecolor="#000000" backcolor="#BCBABA"/>
				<box 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" rotation="None" markup="none">
					<font fontName="SansSerif" size="6" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfEncoding="Cp1252" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{tot_diferencia}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
	<noData>
		<band height="20">
			<staticText>
				<reportElement x="1" y="0" width="751" height="20"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font isBold="true"/>
				</textElement>
				<text><![CDATA[No hay objetos a mostrar.]]></text>
			</staticText>
		</band>
	</noData>
</jasperReport>
