<?xml version="1.0" encoding="UTF-8"  ?>
<!-- Created with iReport - A designer for JasperReports -->
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport
		 name="OUTROS_RESUMO_APURACAO_IMPOSTO_ANUAL"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Portrait"
		 pageWidth="595"
		 pageHeight="842"
		 columnWidth="535"
		 columnSpacing="0"
		 leftMargin="30"
		 rightMargin="30"
		 topMargin="20"
		 bottomMargin="20"
		 whenNoDataType="NoPages"
		 isTitleNewPage="false"
		 isSummaryNewPage="false">
	<property name="ireport.scriptlethandling" value="0" />
	<property name="ireport.encoding" value="UTF-8" />
	<import value="java.util.*" />
	<import value="net.sf.jasperreports.engine.*" />
	<import value="net.sf.jasperreports.engine.data.*" />

	<parameter name="LOGO" isForPrompting="false" class="java.lang.String"/>
	<parameter name="NOME_EMPRESA" isForPrompting="false" class="java.lang.String"/>
	<parameter name="CNPJ_NOME" isForPrompting="false" class="java.lang.String"/>
	<parameter name="INSCRICAO" isForPrompting="false" class="java.lang.String"/>
	<parameter name="DATA_INICIAL" isForPrompting="false" class="java.util.Date"/>
	<parameter name="DATA_FINAL" isForPrompting="false" class="java.util.Date"/>
	<parameter name="INSCRICAO_ESTADUAL_NOME" isForPrompting="false" class="java.lang.String"/>
	<parameter name="FOLHA" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="LOGO_RELATORIO" isForPrompting="false" class="net.sf.jasperreports.engine.JRImageRenderer"/>
	<queryString><![CDATA[SELECT

    SUM(A.VR_DEBITO)              AS VR_DEBITO,
    SUM(A.VR_OUTRO_DEBITO)        AS VR_OUTRO_DEBITO,
    SUM(A.VR_ESTORNO_CREDITO)     AS VR_ESTORNO_CREDITO,
    SUM(A.VR_ESTORNO_DEBITO)      AS VR_ESTORNO_DEBITO,
    SUM(A.VR_CREDITO)             AS VR_CREDITO,
    SUM(A.VR_OUTRO_CREDITO)       AS VR_OUTRO_CREDITO,
    SUM(A.VR_ESTORNO_CREDITO)     AS VR_ESTORNO_CREDITO,
    SUM(A.SALDO_CREDITO_ANTERIOR) AS SALDO_CREDITO_ANTERIOR,
    SUM(A.VR_DEDUCOES)            AS VR_DEDUCOES,
    SUM(A.SALDO_DEVEDOR)          AS SALDO_DEVEDOR,
    SUM(A.SALDO_CREDOR)           AS SALDO_CREDOR

FROM APURACAO_IPI A

WHERE A.ANO_MES BETWEEN $P{DATA_INICIAL} AND $P{DATA_FINAL}]]></queryString>

	<field name="VR_DEBITO" class="java.math.BigDecimal"/>
	<field name="VR_OUTRO_DEBITO" class="java.math.BigDecimal"/>
	<field name="VR_ESTORNO_CREDITO" class="java.math.BigDecimal"/>
	<field name="VR_ESTORNO_DEBITO" class="java.math.BigDecimal"/>
	<field name="VR_CREDITO" class="java.math.BigDecimal"/>
	<field name="VR_OUTRO_CREDITO" class="java.math.BigDecimal"/>
	<field name="SALDO_CREDITO_ANTERIOR" class="java.math.BigDecimal"/>
	<field name="VR_DEDUCOES" class="java.math.BigDecimal"/>
	<field name="SALDO_DEVEDOR" class="java.math.BigDecimal"/>
	<field name="SALDO_CREDOR" class="java.math.BigDecimal"/>

	<variable name="dataRel" class="java.util.Date" resetType="Page" calculation="Nothing">
		<initialValueExpression><![CDATA[new java.util.Date()]]></initialValueExpression>
	</variable>
	<variable name="TOTAL_DEBITO" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[new Double($F{VR_DEBITO}.doubleValue()+$F{VR_OUTRO_DEBITO}.doubleValue()+$F{VR_ESTORNO_CREDITO}.doubleValue())]]></variableExpression>
		<initialValueExpression><![CDATA[new Double("0.00")]]></initialValueExpression>
	</variable>
	<variable name="TOTAL_CREDITO" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[new Double($F{VR_CREDITO}.doubleValue()+$F{VR_OUTRO_CREDITO}.doubleValue()+$F{VR_ESTORNO_DEBITO}.doubleValue())]]></variableExpression>
		<initialValueExpression><![CDATA[new Double("0.00")]]></initialValueExpression>
	</variable>
	<variable name="CALCULO_SALDO_DEVEDOR" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[new Double(($F{VR_DEBITO}.doubleValue()+$F{VR_OUTRO_DEBITO}.doubleValue()+$F{VR_ESTORNO_CREDITO}.doubleValue())-($F{VR_CREDITO}.doubleValue()+$F{VR_OUTRO_CREDITO}.doubleValue()+$F{VR_ESTORNO_DEBITO}.doubleValue()+$F{SALDO_CREDITO_ANTERIOR}.doubleValue()))]]></variableExpression>
		<initialValueExpression><![CDATA[new Double("0.00")]]></initialValueExpression>
	</variable>
	<variable name="TOTAL_CREDITO_2" class="java.lang.Double" resetType="Report" calculation="Nothing">
		<variableExpression><![CDATA[new Double($V{TOTAL_CREDITO}.doubleValue()+$F{SALDO_CREDITO_ANTERIOR}.doubleValue())]]></variableExpression>
		<initialValueExpression><![CDATA[new Double("0.00")]]></initialValueExpression>
	</variable>
	<variable name="CALCULO_SALDO_CREDOR" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[new Double(($F{VR_CREDITO}.doubleValue()+$F{VR_OUTRO_CREDITO}.doubleValue()+$F{VR_ESTORNO_DEBITO}.doubleValue()+$F{SALDO_CREDITO_ANTERIOR}.doubleValue())-($F{VR_DEBITO}.doubleValue()+$F{VR_OUTRO_DEBITO}.doubleValue()+$F{VR_ESTORNO_CREDITO}.doubleValue()))]]></variableExpression>
		<initialValueExpression><![CDATA[new Double("0.00")]]></initialValueExpression>
	</variable>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="52"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="154"
						y="8"
						width="279"
						height="17"
						key="textField-12"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
					<textElement textAlignment="Center" verticalAlignment="Top">
						<font pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{NOME_EMPRESA}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="158"
						y="32"
						width="27"
						height="12"
						key="staticText-16"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
					<textElement>
						<font pdfFontName="Helvetica-BoldOblique" size="8" isBold="true" isItalic="true"/>
					</textElement>
				<text><![CDATA[CNPJ :]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="267"
						y="32"
						width="77"
						height="12"
						key="staticText-17"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
					<textElement>
						<font pdfFontName="Helvetica-BoldOblique" size="8" isBold="true" isItalic="true"/>
					</textElement>
				<text><![CDATA[Inscrição Estadual :]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="186"
						y="32"
						width="80"
						height="12"
						key="textField-15"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
					<textElement verticalAlignment="Middle">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{CNPJ_NOME}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="345"
						y="32"
						width="85"
						height="12"
						key="textField-16"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
					<textElement verticalAlignment="Middle">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{INSCRICAO_ESTADUAL_NOME}]]></textFieldExpression>
				</textField>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="50"
						width="535"
						height="1"
						key="line-4"/>
					<graphicElement stretchType="NoStretch">
					<pen lineWidth="0.25" lineStyle="Solid"/>
</graphicElement>
				</line>
				<image  onErrorType="Blank" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="1"
						y="0"
						width="154"
						height="52"
						key="image-1"/>
					<box></box>
					<graphicElement stretchType="NoStretch"/>
					<imageExpression class="net.sf.jasperreports.engine.JRRenderable"><![CDATA[$P{LOGO_RELATORIO}]]></imageExpression>
				</image>
			</band>
		</title>
		<pageHeader>
			<band height="14"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						mode="Opaque"
						x="0"
						y="0"
						width="535"
						height="14"
						backcolor="#CCCCCC"
						key="staticText-5"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
					<textElement textAlignment="Center" verticalAlignment="Top">
						<font pdfFontName="Helvetica-Bold" size="10" isBold="true"/>
					</textElement>
				<text><![CDATA[RESUMO DA APURAÇAO DO IMPOSTO IPI - ANUAL]]></text>
				</staticText>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="15"  isSplitAllowed="true" >
				<staticText>
					<reportElement
						x="8"
						y="3"
						width="28"
						height="12"
						key="staticText-18"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Folha:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="91"
						y="3"
						width="38"
						height="12"
						key="staticText-19"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Período:]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="35"
						y="3"
						width="28"
						height="12"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Center">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$P{FOLHA}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="130"
						y="3"
						width="38"
						height="12"
						key="staticText-59"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica" size="8" isBold="false"/>
					</textElement>
				<text><![CDATA[Anual]]></text>
				</staticText>
			</band>
		</columnHeader>
		<detail>
			<band height="583"  isSplitAllowed="true" >
				<rectangle radius="5" >
					<reportElement
						x="204"
						y="500"
						width="322"
						height="45"
						key="rectangle-20"
						positionType="Float"/>
					<graphicElement stretchType="NoStretch">
					<pen lineWidth="0.25" lineStyle="Solid"/>
</graphicElement>
				</rectangle>
				<rectangle radius="5" >
					<reportElement
						x="14"
						y="500"
						width="181"
						height="45"
						key="rectangle-19"
						positionType="Float"/>
					<graphicElement stretchType="NoStretch">
					<pen lineWidth="0.25" lineStyle="Solid"/>
</graphicElement>
				</rectangle>
				<rectangle radius="5" >
					<reportElement
						x="340"
						y="32"
						width="160"
						height="31"
						key="rectangle-3"/>
					<graphicElement stretchType="NoStretch">
					<pen lineWidth="0.25" lineStyle="Solid"/>
</graphicElement>
				</rectangle>
				<rectangle radius="5" >
					<reportElement
						x="452"
						y="44"
						width="39"
						height="14"
						key="rectangle-2"/>
					<graphicElement stretchType="NoStretch">
					<pen lineWidth="0.25" lineStyle="Solid"/>
</graphicElement>
				</rectangle>
				<rectangle radius="5" >
					<reportElement
						x="343"
						y="44"
						width="94"
						height="14"
						key="rectangle-1"/>
					<graphicElement stretchType="NoStretch">
					<pen lineWidth="0.25" lineStyle="Solid"/>
</graphicElement>
				</rectangle>
				<staticText>
					<reportElement
						x="0"
						y="14"
						width="535"
						height="14"
						key="staticText-20"/>
					<box>					<pen lineWidth="1.0" lineStyle="Solid"/>
					<topPen lineWidth="1.0" lineStyle="Solid"/>
					<leftPen lineWidth="1.0" lineStyle="Solid"/>
					<bottomPen lineWidth="1.0" lineStyle="Solid"/>
					<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<text><![CDATA[DEBITO DO IMPOSTO]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="378"
						y="32"
						width="91"
						height="14"
						key="staticText-21"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<text><![CDATA[VALORES]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="344"
						y="44"
						width="91"
						height="14"
						key="staticText-22"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<text><![CDATA[COLUNA AUXILIAR]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="446"
						y="44"
						width="49"
						height="14"
						key="staticText-23"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<text><![CDATA[SOMAS]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="7"
						y="66"
						width="210"
						height="12"
						key="staticText-24"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[001 - Por Saídas/Prestações Com Débito do Imposto]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="7"
						y="81"
						width="210"
						height="12"
						key="staticText-25"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[002 - Outros Débitos (Discriminar Abaixo)]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="7"
						y="102"
						width="210"
						height="12"
						key="staticText-26"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[003 - Estorno de Creditos (Discriminar Abaixo)]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="7"
						y="120"
						width="210"
						height="12"
						key="staticText-27"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[004 - SUB TOTAL]]></text>
				</staticText>
				<rectangle radius="5" >
					<reportElement
						x="339"
						y="172"
						width="160"
						height="31"
						key="rectangle-6"
						positionType="Float"/>
					<graphicElement stretchType="NoStretch">
					<pen lineWidth="0.25" lineStyle="Solid"/>
</graphicElement>
				</rectangle>
				<rectangle radius="5" >
					<reportElement
						x="451"
						y="184"
						width="39"
						height="14"
						key="rectangle-7"
						positionType="Float"/>
					<graphicElement stretchType="NoStretch">
					<pen lineWidth="0.25" lineStyle="Solid"/>
</graphicElement>
				</rectangle>
				<rectangle radius="5" >
					<reportElement
						x="342"
						y="184"
						width="94"
						height="14"
						key="rectangle-8"
						positionType="Float"/>
					<graphicElement stretchType="NoStretch">
					<pen lineWidth="0.25" lineStyle="Solid"/>
</graphicElement>
				</rectangle>
				<staticText>
					<reportElement
						x="0"
						y="154"
						width="535"
						height="14"
						key="staticText-28"
						positionType="Float"/>
					<box>					<pen lineWidth="1.0" lineStyle="Solid"/>
					<topPen lineWidth="1.0" lineStyle="Solid"/>
					<leftPen lineWidth="1.0" lineStyle="Solid"/>
					<bottomPen lineWidth="1.0" lineStyle="Solid"/>
					<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<text><![CDATA[CREDITO DO IMPOSTO]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="377"
						y="172"
						width="91"
						height="14"
						key="staticText-29"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<text><![CDATA[VALORES]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="343"
						y="184"
						width="91"
						height="14"
						key="staticText-30"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<text><![CDATA[COLUNA AUXILIAR]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="445"
						y="184"
						width="49"
						height="14"
						key="staticText-31"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<text><![CDATA[SOMAS]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="6"
						y="218"
						width="210"
						height="12"
						key="staticText-32"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[005 - Por Entrada / Aquisições Com Credito do Imposto]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="6"
						y="233"
						width="210"
						height="12"
						key="staticText-33"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[006 - Outros Creditos (Discriminar Abaixo)]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="6"
						y="253"
						width="210"
						height="12"
						key="staticText-34"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[007 - Estorno de Debitos (Discriminar Abaixo)]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="6"
						y="281"
						width="210"
						height="12"
						key="staticText-35"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[008 - SUB TOTAL]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="6"
						y="296"
						width="210"
						height="12"
						key="staticText-36"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="7" isBold="true"/>
					</textElement>
				<text><![CDATA[009 - Saldo Credor do Período Anterior]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="6"
						y="311"
						width="210"
						height="12"
						key="staticText-37"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[010 - TOTAL]]></text>
				</staticText>
				<rectangle radius="5" >
					<reportElement
						x="339"
						y="366"
						width="160"
						height="31"
						key="rectangle-10"
						positionType="Float"/>
					<graphicElement stretchType="NoStretch">
					<pen lineWidth="0.25" lineStyle="Solid"/>
</graphicElement>
				</rectangle>
				<rectangle radius="5" >
					<reportElement
						x="451"
						y="378"
						width="39"
						height="14"
						key="rectangle-11"
						positionType="Float"/>
					<graphicElement stretchType="NoStretch">
					<pen lineWidth="0.25" lineStyle="Solid"/>
</graphicElement>
				</rectangle>
				<rectangle radius="5" >
					<reportElement
						x="342"
						y="378"
						width="94"
						height="14"
						key="rectangle-12"
						positionType="Float"/>
					<graphicElement stretchType="NoStretch">
					<pen lineWidth="0.25" lineStyle="Solid"/>
</graphicElement>
				</rectangle>
				<staticText>
					<reportElement
						x="0"
						y="342"
						width="535"
						height="14"
						key="staticText-38"
						positionType="Float"/>
					<box>					<pen lineWidth="1.0" lineStyle="Solid"/>
					<topPen lineWidth="1.0" lineStyle="Solid"/>
					<leftPen lineWidth="1.0" lineStyle="Solid"/>
					<bottomPen lineWidth="1.0" lineStyle="Solid"/>
					<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<text><![CDATA[APURAÇÃO DO SALDO]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="377"
						y="366"
						width="91"
						height="14"
						key="staticText-39"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<text><![CDATA[VALORES]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="343"
						y="378"
						width="91"
						height="14"
						key="staticText-40"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<text><![CDATA[COLUNA AUXILIAR]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="445"
						y="378"
						width="49"
						height="14"
						key="staticText-41"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<text><![CDATA[SOMAS]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="6"
						y="398"
						width="210"
						height="12"
						key="staticText-42"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[011 - Saldo Devedor]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="6"
						y="413"
						width="210"
						height="12"
						key="staticText-43"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[012 - Deduções]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="6"
						y="437"
						width="210"
						height="12"
						key="staticText-44"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[013 - Imposto a Recolher]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="6"
						y="452"
						width="210"
						height="12"
						key="staticText-45"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[014 - Saldo Credor]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="0"
						y="480"
						width="535"
						height="14"
						key="staticText-46"
						positionType="Float"/>
					<box>					<pen lineWidth="1.0" lineStyle="Solid"/>
					<topPen lineWidth="1.0" lineStyle="Solid"/>
					<leftPen lineWidth="1.0" lineStyle="Solid"/>
					<bottomPen lineWidth="1.0" lineStyle="Solid"/>
					<rightPen lineWidth="1.0" lineStyle="Solid"/>
</box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<text><![CDATA[INFORMAÇÕES COMPLEMENTARES]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="25"
						y="500"
						width="114"
						height="12"
						key="staticText-47"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Guias de Recolhimento(DAE)]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="21"
						y="513"
						width="34"
						height="12"
						key="staticText-48"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Numero]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="97"
						y="513"
						width="22"
						height="12"
						key="staticText-49"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Data]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="159"
						y="513"
						width="28"
						height="12"
						key="staticText-50"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Valor]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="306"
						y="501"
						width="103"
						height="12"
						key="staticText-51"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Gui de Informação (DAPI)]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="214"
						y="513"
						width="83"
						height="12"
						key="staticText-52"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Orgão Arrecadador]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="306"
						y="513"
						width="64"
						height="12"
						key="staticText-53"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Data da Entrega]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="394"
						y="513"
						width="83"
						height="12"
						key="staticText-54"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Local Entrega]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="6"
						y="548"
						width="53"
						height="12"
						key="staticText-55"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Observações:]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="437"
						y="66"
						width="63"
						height="12"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VR_DEBITO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="437"
						y="81"
						width="63"
						height="12"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VR_OUTRO_DEBITO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="354"
						y="102"
						width="80"
						height="12"
						key="textField"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VR_ESTORNO_CREDITO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="437"
						y="102"
						width="63"
						height="12"
						key="textField-18"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VR_ESTORNO_CREDITO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="437"
						y="218"
						width="63"
						height="12"
						key="textField"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VR_CREDITO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="354"
						y="218"
						width="80"
						height="12"
						key="textField"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VR_OUTRO_CREDITO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="437"
						y="233"
						width="63"
						height="12"
						key="textField-19"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VR_OUTRO_CREDITO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="354"
						y="253"
						width="80"
						height="12"
						key="textField"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VR_ESTORNO_DEBITO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="437"
						y="253"
						width="63"
						height="12"
						key="textField-20"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VR_ESTORNO_DEBITO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="437"
						y="413"
						width="63"
						height="12"
						key="textField"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VR_DEDUCOES}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="437"
						y="437"
						width="63"
						height="12"
						key="textField"
						positionType="Float">
							<printWhenExpression><![CDATA[new Boolean($F{SALDO_DEVEDOR}.doubleValue()>0d && ($V{TOTAL_CREDITO}.doubleValue()<$V{TOTAL_DEBITO}.doubleValue()))]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{SALDO_DEVEDOR}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="437"
						y="120"
						width="63"
						height="12"
						key="textField"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{TOTAL_DEBITO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="437"
						y="281"
						width="63"
						height="12"
						key="textField"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{TOTAL_CREDITO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="437"
						y="398"
						width="63"
						height="12"
						key="textField"
						positionType="Float">
							<printWhenExpression><![CDATA[new Boolean($V{CALCULO_SALDO_DEVEDOR}.doubleValue()>=0d)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{CALCULO_SALDO_DEVEDOR}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="437"
						y="397"
						width="63"
						height="12"
						key="staticText-56"
						positionType="Float">
							<printWhenExpression><![CDATA[new Boolean($V{CALCULO_SALDO_DEVEDOR}.doubleValue()<=0d)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<text><![CDATA[0,00]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="354"
						y="437"
						width="80"
						height="12"
						key="staticText-57"
						positionType="Float">
							<printWhenExpression><![CDATA[new Boolean($F{SALDO_DEVEDOR}.doubleValue()>0d && ($V{TOTAL_CREDITO}.doubleValue()<$V{TOTAL_DEBITO}.doubleValue()))]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<text><![CDATA[0,00]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="437"
						y="437"
						width="63"
						height="12"
						key="staticText-58"
						positionType="Float">
							<printWhenExpression><![CDATA[new Boolean($F{SALDO_DEVEDOR}.doubleValue()>0d && ($V{TOTAL_CREDITO}.doubleValue()>$V{TOTAL_DEBITO}.doubleValue()))]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<text><![CDATA[0,00]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="437"
						y="311"
						width="63"
						height="12"
						key="textField"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{TOTAL_CREDITO_2}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="354"
						y="413"
						width="80"
						height="12"
						key="textField-21"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VR_DEDUCOES}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="437"
						y="453"
						width="63"
						height="12"
						key="textField"
						positionType="Float">
							<printWhenExpression><![CDATA[new Boolean($V{CALCULO_SALDO_CREDOR}.doubleValue()>0d)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{CALCULO_SALDO_CREDOR}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="354"
						y="296"
						width="80"
						height="12"
						key="textField"
						positionType="Float"/>
					<box></box>
					<textElement textAlignment="Right">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{SALDO_CREDITO_ANTERIOR}]]></textFieldExpression>
				</textField>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="27"  isSplitAllowed="true" >
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="505"
						y="12"
						width="11"
						height="15"
						key="textField-8"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Report" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="524"
						y="12"
						width="11"
						height="15"
						key="textField-9"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font pdfFontName="Helvetica-Bold" size="9" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="516"
						y="12"
						width="8"
						height="15"
						key="staticText-8"/>
					<box>					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
					<bottomPen lineWidth="0.0" lineColor="#000000"/>
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
</box>
					<textElement textAlignment="Center" verticalAlignment="Middle">
						<font pdfFontName="Helvetica-Bold" isBold="true"/>
					</textElement>
				<text><![CDATA[/]]></text>
				</staticText>
			</band>
		</pageFooter>
		<summary>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</summary>
</jasperReport>
