<?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_REGITRO_ENTRADAS2"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Landscape"
		 pageWidth="842"
		 pageHeight="595"
		 columnWidth="782"
		 columnSpacing="0"
		 leftMargin="30"
		 rightMargin="30"
		 topMargin="20"
		 bottomMargin="20"
		 whenNoDataType="AllSectionsNoDetail"
		 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="NOME_EMPRESA" isForPrompting="false" class="java.lang.String"/>
	<parameter name="LOGO" isForPrompting="false" class="java.lang.String"/>
	<parameter name="INSCRICAO_ESTADUAL_NOME" isForPrompting="false" class="java.lang.String"/>
	<parameter name="CNPJ_NOME" 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="SUBREPORT_DIR_OUTR" isForPrompting="true" class="java.lang.String">
		<defaultValueExpression ><![CDATA["F:\\Projetos\\Mentor\\relatorios\\outros\\subreports\\"]]></defaultValueExpression>
	</parameter>
	<parameter name="FOLHA" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="SERIE" isForPrompting="false" class="java.lang.String"/>
	<parameter name="ID_UF_INICIAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_MODELO_DOC_FISCAL_INICIAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_PLANO_CONTA" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_INCIDENCIA_ICMS" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_CFOP_INICIAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_FORNECEDOR" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_INCIDENCIA_IPI" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_UF_FINAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_CFOP_FINAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_MODELO_INICIAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_MODELO_FINAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_PROCEDENCIA_INICIAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_PROCEDENCIA_FINAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_INCIDENCIA_ICMS_INICIAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_INCIDENCIA_ICMS_FINAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_FORNECEDOR_INICIAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_FORNECEDOR_FINAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_INCIDENCIA_IPI_INICIAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_INCIDENCIA_IPI_FINAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="LOGO_RELATORIO" isForPrompting="false" class="net.sf.jasperreports.engine.JRImageRenderer"/>
	<parameter name="ID_MODELO_DOC_FISCAL_FINAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_EMPRESA" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_PLANO_INICIAL" isForPrompting="false" class="java.lang.Integer"/>
	<parameter name="ID_PLANO_FINAL" isForPrompting="false" class="java.lang.Integer"/>
	<queryString><![CDATA[SELECT

      distinct e.data_entrada_saida,e.tipo,nt.numero_nota,nt.serie,e.data_emissao,f.id_fornecedor,uf.sigla,
      l.valor_total,pl.reduzida,cf.codigo,l.valor_icms_tributado,l.valor_icms_isento,l.valor_icms_outros,l.aliquota_icms,
      l.valor_icms,l.valor_ipi_tributado,l.valor_ipi_isento,l.valor_ipi_outros,l.valor_ipi_industria+l.valor_ipi_comercio,
      l.valor_ipi_observacao,l.valor_bc_icms_st,l.valor_icms_st,n.id_situacao_documento,nt.id_modelo_doc_fiscal,np.numero_nota as numero_propria,
      np.serie as serie_propria,l.valor_ipi_industria
FROM
    livro_fiscal l
left join
    nota_livros_fiscais nl on (nl.id_livro_fiscal=l.id_livro_fiscal)
left join
    nota n on (n.id_nota=nl.id_nota)
left join
    estnota e on (e.id_estnota=n.id_nota)
left join
    nota_terceiros nt on (nt.id_nota_terceiros=n.id_nota)
left join
    unidade_fat_forn uff on (uff.id_unidade_fat_forn=nt.id_unidade_fat_forn)
left join
    fornecedor f on (f.id_fornecedor=uff.id_fornecedor)
left join
    pessoa p on (p.id_pessoa=f.id_pessoa)
left join
    endereco en on (en.id_endereco=p.id_endereco)
left join
    cidade ci on (ci.id_cidade=en.id_cidade)
left join
    uf uf on (uf.id_uf=l.id_uf)
left join
    cfop cf on (cf.id_cfop=l.id_cfop)
LEFT JOIN
    plano_conta pl on (pl.id_plano_conta=l.id_plano_conta)
left join
    nota_propria np on (np.id_nota_propria=n.id_nota)
WHERE
          e.data_entrada_saida BETWEEN $P{DATA_INICIAL} AND $P{DATA_FINAL}

    
AND
    l.ID_CFOP BETWEEN $P{ID_CFOP_INICIAL} AND $P{ID_CFOP_FINAL}
and
    l.ID_PROCEDENCIA BETWEEN $P{ID_PROCEDENCIA_INICIAL} AND $P{ID_PROCEDENCIA_FINAL}
and
    l.id_uf between $P{ID_UF_INICIAL} AND $P{ID_UF_FINAL}
and
    nt.id_modelo_doc_fiscal between $P{ID_MODELO_DOC_FISCAL_INICIAL} AND $P{ID_MODELO_DOC_FISCAL_FINAL}

AND
    L.ID_INCIDENCIA_ICMS BETWEEN $P{ID_INCIDENCIA_ICMS_INICIAL} AND $P{ID_INCIDENCIA_ICMS_FINAL}
AND
    L.ID_INCIDENCIA_IPI BETWEEN $P{ID_INCIDENCIA_IPI_INICIAL} AND $P{ID_INCIDENCIA_IPI_FINAL}
AND
    L.ID_EMPRESA=$P{ID_EMPRESA}
AND
l.id_plano_conta between $P{ID_PLANO_INICIAL} AND $P{ID_PLANO_FINAL}
and (
l.entrada_saida_natureza_op = 0
or
l.entrada_saida_natureza_op=2   )



ORDER BY
    E.data_entrada_saida,NT.numero_nota]]></queryString>

	<field name="DATA_ENTRADA_SAIDA" class="java.sql.Date"/>
	<field name="TIPO" class="java.lang.Integer"/>
	<field name="NUMERO_NOTA" class="java.lang.Integer"/>
	<field name="SERIE" class="java.lang.String"/>
	<field name="DATA_EMISSAO" class="java.sql.Date"/>
	<field name="ID_FORNECEDOR" class="java.lang.Integer"/>
	<field name="SIGLA" class="java.lang.String"/>
	<field name="VALOR_TOTAL" class="java.math.BigDecimal"/>
	<field name="REDUZIDA" class="java.lang.String"/>
	<field name="CODIGO" class="java.lang.String"/>
	<field name="VALOR_ICMS_TRIBUTADO" class="java.math.BigDecimal"/>
	<field name="VALOR_ICMS_ISENTO" class="java.math.BigDecimal"/>
	<field name="VALOR_ICMS_OUTROS" class="java.math.BigDecimal"/>
	<field name="ALIQUOTA_ICMS" class="java.math.BigDecimal"/>
	<field name="VALOR_ICMS" class="java.math.BigDecimal"/>
	<field name="VALOR_IPI_TRIBUTADO" class="java.math.BigDecimal"/>
	<field name="VALOR_IPI_ISENTO" class="java.math.BigDecimal"/>
	<field name="VALOR_IPI_OUTROS" class="java.math.BigDecimal"/>
	<field name="ADD" class="java.math.BigDecimal"/>
	<field name="VALOR_IPI_OBSERVACAO" class="java.math.BigDecimal"/>
	<field name="VALOR_BC_ICMS_ST" class="java.math.BigDecimal"/>
	<field name="VALOR_ICMS_ST" class="java.math.BigDecimal"/>
	<field name="ID_SITUACAO_DOCUMENTO" class="java.lang.Integer"/>
	<field name="ID_MODELO_DOC_FISCAL" class="java.lang.Integer"/>
	<field name="NUMERO_PROPRIA" class="java.lang.Integer"/>
	<field name="SERIE_PROPRIA" class="java.lang.String"/>
	<field name="VALOR_IPI_INDUSTRIA" class="java.math.BigDecimal"/>

	<variable name="CONTADOR" class="java.lang.Integer" resetType="Report" calculation="Count">
		<variableExpression><![CDATA[new Integer($V{CONTADOR}.intValue()+1)]]></variableExpression>
	</variable>
	<variable name="SUM_VALOR_TOTAL_1" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[new Double($F{ID_SITUACAO_DOCUMENTO}.intValue()==1?$F{VALOR_TOTAL}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2?$F{VALOR_TOTAL}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7?$F{VALOR_TOTAL}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8?$F{VALOR_TOTAL}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9?$F{VALOR_TOTAL}.doubleValue():+0D
)]]></variableExpression>
	</variable>
	<variable name="SUM_VALOR_ICMS_TRIBUTADO_1" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[
new Double($F{ID_SITUACAO_DOCUMENTO}.intValue()==1?$F{VALOR_ICMS_TRIBUTADO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2?$F{VALOR_ICMS_TRIBUTADO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7?$F{VALOR_ICMS_TRIBUTADO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8?$F{VALOR_ICMS_TRIBUTADO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9?$F{VALOR_ICMS_TRIBUTADO}.doubleValue():+0D
)]]></variableExpression>
	</variable>
	<variable name="SUM_VALOR_ICMS_ISENTO_1" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[new Double($F{ID_SITUACAO_DOCUMENTO}.intValue()==1?$F{VALOR_ICMS_ISENTO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2?$F{VALOR_ICMS_ISENTO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7?$F{VALOR_ICMS_ISENTO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8?$F{VALOR_ICMS_ISENTO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9?$F{VALOR_ICMS_ISENTO}.doubleValue():+0D
)]]></variableExpression>
	</variable>
	<variable name="SUM_VALOR_ICMS_OUTROS_1" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[new Double($F{ID_SITUACAO_DOCUMENTO}.intValue()==1?$F{VALOR_ICMS_OUTROS}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2?$F{VALOR_ICMS_OUTROS}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7?$F{VALOR_ICMS_OUTROS}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8?$F{VALOR_ICMS_OUTROS}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9?$F{VALOR_ICMS_OUTROS}.doubleValue():+0D
)]]></variableExpression>
	</variable>
	<variable name="SUM_VALOR_ICMS_1" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[new Double($F{ID_SITUACAO_DOCUMENTO}.intValue()==1?$F{VALOR_ICMS}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2?$F{VALOR_ICMS}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7?$F{VALOR_ICMS}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8?$F{VALOR_ICMS}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9?$F{VALOR_ICMS}.doubleValue():+0D
)]]></variableExpression>
	</variable>
	<variable name="SUM_VALOR_IPI_TRIBUTADO_1" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[new Double($F{ID_SITUACAO_DOCUMENTO}.intValue()==1?$F{VALOR_IPI_TRIBUTADO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2?$F{VALOR_IPI_TRIBUTADO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7?$F{VALOR_IPI_TRIBUTADO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8?$F{VALOR_IPI_TRIBUTADO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9?$F{VALOR_IPI_TRIBUTADO}.doubleValue():+0D
)]]></variableExpression>
	</variable>
	<variable name="SUM_VALOR_IPI_ISENTO_1" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[new Double($F{ID_SITUACAO_DOCUMENTO}.intValue()==1?$F{VALOR_IPI_ISENTO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2?$F{VALOR_IPI_ISENTO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7?$F{VALOR_IPI_ISENTO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8?$F{VALOR_IPI_ISENTO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9?$F{VALOR_IPI_ISENTO}.doubleValue():+0D
)]]></variableExpression>
	</variable>
	<variable name="SUM_VALOR_IPI_OUTROS_1" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[
new Double($F{ID_SITUACAO_DOCUMENTO}.intValue()==1?$F{VALOR_IPI_OUTROS}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2?$F{VALOR_IPI_OUTROS}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7?$F{VALOR_IPI_OUTROS}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8?$F{VALOR_IPI_OUTROS}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9?$F{VALOR_IPI_OUTROS}.doubleValue():+0D
)]]></variableExpression>
	</variable>
	<variable name="SUM_ADD_1" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[
new Double($F{ID_SITUACAO_DOCUMENTO}.intValue()==1?$F{ADD}
.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2?$F{ADD}
.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7?$F{ADD}
.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8?$F{ADD}
.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9?$F{ADD}
.doubleValue():+0D
)]]></variableExpression>
	</variable>
	<variable name="SUM_VALOR_IPI_OBSERVACAO_1" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[new Double($F{ID_SITUACAO_DOCUMENTO}.intValue()==1?$F{VALOR_IPI_OBSERVACAO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2?$F{VALOR_IPI_OBSERVACAO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7?$F{VALOR_IPI_OBSERVACAO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8?$F{VALOR_IPI_OBSERVACAO}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9?$F{VALOR_IPI_OBSERVACAO}.doubleValue():+0D
)]]></variableExpression>
	</variable>
	<variable name="SUM_VALOR_BC_ICMS_ST_1" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[new Double($F{ID_SITUACAO_DOCUMENTO}.intValue()==1?$F{VALOR_BC_ICMS_ST}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2?$F{VALOR_BC_ICMS_ST}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7?$F{VALOR_BC_ICMS_ST}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8?$F{VALOR_BC_ICMS_ST}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9?$F{VALOR_BC_ICMS_ST}.doubleValue():+0D
)]]></variableExpression>
	</variable>
	<variable name="SUM_VALOR_ICMS_ST_1" class="java.lang.Double" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[
new Double($F{ID_SITUACAO_DOCUMENTO}.intValue()==1?$F{VALOR_ICMS_ST}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2?$F{VALOR_ICMS_ST}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7?$F{VALOR_ICMS_ST}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8?$F{VALOR_ICMS_ST}.doubleValue():
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9?$F{VALOR_ICMS_ST}.doubleValue():+0D
)]]></variableExpression>
	</variable>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="70"  isSplitAllowed="true" >
				<rectangle>
					<reportElement
						x="0"
						y="58"
						width="535"
						height="12"
						forecolor="#CCCCCC"
						backcolor="#CCCCCC"
						key="rectangle-2"/>
					<graphicElement stretchType="NoStretch"/>
				</rectangle>
				<staticText>
					<reportElement
						mode="Opaque"
						x="0"
						y="58"
						width="782"
						height="12"
						forecolor="#003333"
						backcolor="#CCCCCC"
						key="staticText-30"/>
					<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="8" isBold="true"/>
					</textElement>
				<text><![CDATA[REGISTRO DE ENTRADAS]]></text>
				</staticText>
				<staticText>
					<reportElement
						mode="Transparent"
						x="290"
						y="-252"
						width="234"
						height="12"
						forecolor="#000000"
						backcolor="#FFFFFF"
						key="staticText-31"/>
					<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" rotation="None" lineSpacing="Single">
						<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
					</textElement>
				<text><![CDATA[Contato Sistemas]]></text>
				</staticText>
				<staticText>
					<reportElement
						mode="Transparent"
						x="290"
						y="-252"
						width="234"
						height="12"
						forecolor="#000000"
						backcolor="#FFFFFF"
						key="staticText-32"/>
					<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" rotation="None" lineSpacing="Single">
						<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
					</textElement>
				<text><![CDATA[Contato Sistemas]]></text>
				</staticText>
				<staticText>
					<reportElement
						mode="Transparent"
						x="290"
						y="-252"
						width="234"
						height="12"
						forecolor="#000000"
						backcolor="#FFFFFF"
						key="staticText-33"/>
					<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" rotation="None" lineSpacing="Single">
						<font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
					</textElement>
				<text><![CDATA[Contato Sistemas]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						mode="Opaque"
						x="292"
						y="-239"
						width="243"
						height="1"
						forecolor="#000000"
						backcolor="#FFFFFF"
						key="line-6"/>
					<graphicElement stretchType="NoStretch" fill="Solid" >
					<pen lineWidth="0.25" lineStyle="Solid"/>
</graphicElement>
				</line>
				<staticText>
					<reportElement
						x="457"
						y="27"
						width="77"
						height="12"
						key="staticText-55"/>
					<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="535"
						y="27"
						width="102"
						height="12"
						key="textField-27"/>
					<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>
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						mode="Transparent"
						x="326"
						y="8"
						width="313"
						height="17"
						forecolor="#000000"
						backcolor="#FFFFFF"
						key="textField-28"/>
					<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" rotation="None" lineSpacing="Single">
						<font fontName="Arial" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{NOME_EMPRESA}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="327"
						y="27"
						width="29"
						height="12"
						key="staticText-57"/>
					<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>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Page" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="356"
						y="27"
						width="101"
						height="12"
						key="textField-31"/>
					<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 size="8"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{CNPJ_NOME}]]></textFieldExpression>
				</textField>
				<image  onErrorType="Blank" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="172"
						y="4"
						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="48"  isSplitAllowed="false" >
				<staticText>
					<reportElement
						x="25"
						y="0"
						width="30"
						height="12"
						key="staticText-58"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Folha:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="112"
						y="0"
						width="55"
						height="12"
						key="staticText-59"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Data Inicial:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="228"
						y="0"
						width="55"
						height="12"
						key="staticText-60"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Data Final:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="524"
						y="0"
						width="97"
						height="12"
						key="staticText-87"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica" size="8" isBold="false"/>
					</textElement>
				<text><![CDATA[(a) CODIGO DE VALORES FISCAIS]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="524"
						y="12"
						width="168"
						height="12"
						key="staticText-88"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica" size="8" isBold="false"/>
					</textElement>
				<text><![CDATA[1 - Operações com Crédito do Imposto]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="524"
						y="24"
						width="253"
						height="12"
						key="staticText-89"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica" size="8" isBold="false"/>
					</textElement>
				<text><![CDATA[2 - Operações Sem Crédito do Imposto -Isento ou Não Tributado]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="524"
						y="36"
						width="191"
						height="12"
						key="staticText-90"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica" size="8" isBold="false"/>
					</textElement>
				<text><![CDATA[3 - Operações Sem Crédito do Imposto - Outras]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="dd/MM/yyyy" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="167"
						y="0"
						width="45"
						height="12"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Center">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$P{DATA_INICIAL}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="dd/MM/yyyy" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="283"
						y="0"
						width="43"
						height="12"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Center">
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$P{DATA_FINAL}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="57"
						y="0"
						width="18"
						height="12"
						key="textField"/>
					<box></box>
					<textElement>
						<font size="8"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[new Integer($V{PAGE_NUMBER}.intValue()+$P{FOLHA}.intValue()-1)]]></textFieldExpression>
				</textField>
			</band>
		</pageHeader>
		<columnHeader>
			<band height="65"  isSplitAllowed="true" >
				<rectangle radius="5" >
					<reportElement
						x="324"
						y="1"
						width="301"
						height="62"
						key="rectangle-12"/>
					<graphicElement stretchType="NoStretch"/>
				</rectangle>
				<rectangle radius="5" >
					<reportElement
						x="200"
						y="1"
						width="40"
						height="22"
						key="rectangle-13"/>
					<graphicElement stretchType="NoStretch"/>
				</rectangle>
				<rectangle radius="5" >
					<reportElement
						x="631"
						y="1"
						width="74"
						height="12"
						key="rectangle-14"/>
					<graphicElement stretchType="NoStretch"/>
				</rectangle>
				<rectangle radius="5" >
					<reportElement
						x="244"
						y="1"
						width="69"
						height="22"
						key="rectangle-15"/>
					<graphicElement stretchType="NoStretch"/>
				</rectangle>
				<rectangle radius="5" >
					<reportElement
						x="0"
						y="1"
						width="198"
						height="62"
						key="rectangle-16"/>
					<graphicElement stretchType="NoStretch"/>
				</rectangle>
				<staticText>
					<reportElement
						x="30"
						y="1"
						width="147"
						height="12"
						key="staticText-91"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[DOCUMENTOS FISCAIS]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="49"
						y="12"
						width="31"
						height="11"
						key="staticText-92"/>
					<box></box>
					<textElement textAlignment="Left" rotation="None">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Espécie]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="79"
						y="13"
						width="12"
						height="21"
						key="staticText-93"/>
					<box></box>
					<textElement textAlignment="Left" rotation="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Série]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="99"
						y="11"
						width="14"
						height="31"
						key="staticText-94"/>
					<box></box>
					<textElement textAlignment="Left" rotation="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Número]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="129"
						y="12"
						width="32"
						height="22"
						key="staticText-95"/>
					<box></box>
					<textElement textAlignment="Center" rotation="None">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Data Doc.]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="168"
						y="12"
						width="15"
						height="40"
						key="staticText-96"/>
					<box></box>
					<textElement textAlignment="Left" rotation="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Cod Emit.]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="184"
						y="13"
						width="13"
						height="44"
						key="staticText-97"/>
					<box></box>
					<textElement textAlignment="Right" rotation="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[UF Origem]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="200"
						y="2"
						width="40"
						height="22"
						key="staticText-98"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Valor Contábil]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="244"
						y="1"
						width="69"
						height="12"
						key="staticText-99"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[CODIFICAÇÃO]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="245"
						y="12"
						width="37"
						height="12"
						key="staticText-100"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Contábil]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="285"
						y="11"
						width="27"
						height="12"
						key="staticText-101"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Fiscal]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="324"
						y="24"
						width="144"
						height="12"
						key="staticText-102"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Operações com Débito do Imposto]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="635"
						y="1"
						width="59"
						height="12"
						key="staticText-103"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[OBSERVAÇÃO]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="348"
						y="35"
						width="12"
						height="27"
						key="staticText-104"/>
					<box></box>
					<textElement textAlignment="Left" rotation="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[CODa]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="361"
						y="34"
						width="37"
						height="12"
						key="staticText-105"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[B.Cálculo]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="403"
						y="34"
						width="17"
						height="12"
						key="staticText-106"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Aliq]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="425"
						y="34"
						width="37"
						height="12"
						key="staticText-107"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Imposto]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="420"
						y="45"
						width="42"
						height="12"
						key="staticText-108"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Creditado]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="1"
						y="64"
						width="780"
						height="0"
						key="line-8"/>
					<graphicElement stretchType="NoStretch"/>
				</line>
				<staticText>
					<reportElement
						x="468"
						y="24"
						width="146"
						height="12"
						key="staticText-109"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Operações sem Débito do Imposto]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="500"
						y="35"
						width="12"
						height="27"
						key="staticText-110"/>
					<box></box>
					<textElement textAlignment="Left" rotation="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[CODa]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="513"
						y="34"
						width="48"
						height="11"
						key="staticText-111"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Isentas ou]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="577"
						y="34"
						width="37"
						height="12"
						key="staticText-112"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Outras]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="513"
						y="44"
						width="57"
						height="12"
						key="staticText-113"/>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[não tributadas]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="395"
						y="3"
						width="138"
						height="12"
						key="staticText-114"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[VALORES              FISCAIS]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="17"
						y="13"
						width="31"
						height="23"
						key="staticText-128"/>
					<box></box>
					<textElement textAlignment="Center" rotation="None">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Data Entrada]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="4"
						y="13"
						width="14"
						height="48"
						key="staticText-129"/>
					<box></box>
					<textElement textAlignment="Left" rotation="Left">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[Lançamento]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="377"
						y="14"
						width="35"
						height="12"
						key="staticText-130"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA["ICMS"]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="535"
						y="13"
						width="19"
						height="12"
						key="staticText-131"/>
					<box></box>
					<textElement textAlignment="Center">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA["IPI"]]></text>
				</staticText>
			</band>
		</columnHeader>
		<detail>
			<band height="37"  isSplitAllowed="true" >
				<line direction="TopDown">
					<reportElement
						x="0"
						y="36"
						width="782"
						height="0"
						key="line-7"
						positionType="Float"/>
					<graphicElement stretchType="NoStretch">
					<pen lineWidth="0.25" lineStyle="Dashed"/>
</graphicElement>
				</line>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="77"
						y="2"
						width="16"
						height="10"
						key="textField-32"
						positionType="Float"
						isRemoveLineWhenBlank="true"/>
					<box></box>
					<textElement textAlignment="Center">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{SERIE}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="93"
						y="2"
						width="36"
						height="10"
						key="textField-33"
						positionType="Float"
						isRemoveLineWhenBlank="true"/>
					<box></box>
					<textElement textAlignment="Center">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$F{NUMERO_NOTA}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="dd/MM/yy" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="129"
						y="2"
						width="37"
						height="10"
						key="textField-34"
						positionType="Float"
						isRemoveLineWhenBlank="true"/>
					<box></box>
					<textElement textAlignment="Center">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$F{DATA_EMISSAO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="166"
						y="2"
						width="16"
						height="10"
						key="textField-35"
						positionType="Float"
						isRemoveLineWhenBlank="true"/>
					<box></box>
					<textElement textAlignment="Center">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$F{ID_FORNECEDOR}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="183"
						y="2"
						width="17"
						height="10"
						key="textField-36"
						positionType="Float"
						isRemoveLineWhenBlank="true"/>
					<box></box>
					<textElement>
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{SIGLA}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="200"
						y="2"
						width="31"
						height="10"
						key="textField-37"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VALOR_TOTAL}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="245"
						y="2"
						width="37"
						height="10"
						key="textField-38"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Center">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{REDUZIDA}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="286"
						y="2"
						width="23"
						height="10"
						key="textField-39"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Center">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{CODIGO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="357"
						y="1"
						width="39"
						height="10"
						key="textField-40"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VALOR_ICMS_TRIBUTADO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="401"
						y="1"
						width="21"
						height="10"
						key="textField-41"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 && $F{VALOR_ICMS}.doubleValue()>0d||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 && $F{VALOR_ICMS}.doubleValue()>0d||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7 && $F{VALOR_ICMS}.doubleValue()>0d||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8 && $F{VALOR_ICMS}.doubleValue()>0d||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9 && $F{VALOR_ICMS}.doubleValue()>0d)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{ALIQUOTA_ICMS}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="427"
						y="1"
						width="33"
						height="10"
						key="textField-42"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VALOR_ICMS}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="349"
						y="2"
						width="7"
						height="10"
						key="staticText-115"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica" size="7" isBold="false"/>
					</textElement>
				<text><![CDATA[1]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="349"
						y="14"
						width="7"
						height="10"
						key="staticText-116"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica" size="7" isBold="false"/>
					</textElement>
				<text><![CDATA[2]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="357"
						y="13"
						width="39"
						height="10"
						key="textField-43"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VALOR_ICMS_ISENTO}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="349"
						y="25"
						width="7"
						height="10"
						key="staticText-117"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica" size="7" isBold="false"/>
					</textElement>
				<text><![CDATA[3]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="357"
						y="25"
						width="39"
						height="10"
						key="textField-44"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VALOR_ICMS_OUTROS}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="634"
						y="1"
						width="60"
						height="10"
						key="staticText-118"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica" size="7" isBold="false"/>
					</textElement>
				<text><![CDATA[Ipi Observação:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="634"
						y="12"
						width="60"
						height="10"
						key="staticText-119"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica" size="7" isBold="false"/>
					</textElement>
				<text><![CDATA[Bc.IcmsSt:]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="634"
						y="24"
						width="60"
						height="10"
						key="staticText-120"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica" size="7" isBold="false"/>
					</textElement>
				<text><![CDATA[Vr.IcmsSt:]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="696"
						y="12"
						width="34"
						height="10"
						key="textField-45"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VALOR_BC_ICMS_ST}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="696"
						y="24"
						width="34"
						height="10"
						key="textField-46"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VALOR_ICMS_ST}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="696"
						y="2"
						width="34"
						height="10"
						key="textField-47"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VALOR_IPI_OBSERVACAO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="47"
						y="2"
						width="26"
						height="10"
						key="textField-48"
						isRemoveLineWhenBlank="true"/>
					<box></box>
					<textElement textAlignment="Center">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{ID_MODELO_DOC_FISCAL}.intValue()==52?"NF":
$F{ID_MODELO_DOC_FISCAL}.intValue()==53?"NF":
$F{ID_MODELO_DOC_FISCAL}.intValue()==54?"NF":
$F{ID_MODELO_DOC_FISCAL}.intValue()==55?"NF":
$F{ID_MODELO_DOC_FISCAL}.intValue()==56?"NF":
$F{ID_MODELO_DOC_FISCAL}.intValue()==57?"CTRC":
$F{ID_MODELO_DOC_FISCAL}.intValue()==58?"CTAC":
$F{ID_MODELO_DOC_FISCAL}.intValue()==59?"CTA":
$F{ID_MODELO_DOC_FISCAL}.intValue()==60?"CTFC":
$F{ID_MODELO_DOC_FISCAL}.intValue()==61?"BPR":
$F{ID_MODELO_DOC_FISCAL}.intValue()==62?"BPA":
$F{ID_MODELO_DOC_FISCAL}.intValue()==63?"BPNB":
$F{ID_MODELO_DOC_FISCAL}.intValue()==64?"BPF":
$F{ID_MODELO_DOC_FISCAL}.intValue()==65?"DT":
$F{ID_MODELO_DOC_FISCAL}.intValue()==66?"RMD":
$F{ID_MODELO_DOC_FISCAL}.intValue()==67?"OCC":
$F{ID_MODELO_DOC_FISCAL}.intValue()==68?"NF":
$F{ID_MODELO_DOC_FISCAL}.intValue()==69?"NF":
$F{ID_MODELO_DOC_FISCAL}.intValue()==70?"CNRE":
$F{ID_MODELO_DOC_FISCAL}.intValue()==71?"ACT":
$F{ID_MODELO_DOC_FISCAL}.intValue()==72?"MC":
$F{ID_MODELO_DOC_FISCAL}.intValue()==73?"CTMC":
$F{ID_MODELO_DOC_FISCAL}.intValue()==74?"NF":
$F{ID_MODELO_DOC_FISCAL}.intValue()==75?"NF":
$F{ID_MODELO_DOC_FISCAL}.intValue()==76?"CF":
$F{ID_MODELO_DOC_FISCAL}.intValue()==77?"CF":"CF"]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="635"
						y="1"
						width="93"
						height="10"
						key="staticText-121"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==3)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica" size="7" isBold="false"/>
					</textElement>
				<text><![CDATA["Documento Cancelado"]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="635"
						y="1"
						width="145"
						height="10"
						key="staticText-122"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==4)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica" size="7" isBold="false"/>
					</textElement>
				<text><![CDATA[Documento Cancelado Extemporaneo"]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="635"
						y="1"
						width="60"
						height="10"
						key="staticText-123"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==5
)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica" size="7" isBold="false"/>
					</textElement>
				<text><![CDATA["Nfe denegada""]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="635"
						y="1"
						width="128"
						height="10"
						key="staticText-124"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==6
)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Left">
						<font pdfFontName="Helvetica" size="7" isBold="false"/>
					</textElement>
				<text><![CDATA["Nfe - numeração inutilizada"]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="502"
						y="2"
						width="7"
						height="10"
						key="staticText-125"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica" size="7" isBold="false"/>
					</textElement>
				<text><![CDATA[1]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="502"
						y="14"
						width="7"
						height="10"
						key="staticText-126"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica" size="7" isBold="false"/>
					</textElement>
				<text><![CDATA[2]]></text>
				</staticText>
				<staticText>
					<reportElement
						x="502"
						y="25"
						width="7"
						height="10"
						key="staticText-127"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica" size="7" isBold="false"/>
					</textElement>
				<text><![CDATA[3]]></text>
				</staticText>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="512"
						y="1"
						width="39"
						height="10"
						key="textField-49"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VALOR_IPI_TRIBUTADO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="569"
						y="1"
						width="37"
						height="10"
						key="textField-50"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{ADD}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="512"
						y="13"
						width="39"
						height="10"
						key="textField-51"
						positionType="Float"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VALOR_IPI_ISENTO}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="512"
						y="25"
						width="39"
						height="10"
						key="textField-52"
						isRemoveLineWhenBlank="true">
							<printWhenExpression><![CDATA[new Boolean($F{ID_SITUACAO_DOCUMENTO}.intValue()==1 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==2 ||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==7||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==8||
$F{ID_SITUACAO_DOCUMENTO}.intValue()==9)]]></printWhenExpression>
						</reportElement>
					<box></box>
					<textElement textAlignment="Right">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.math.BigDecimal"><![CDATA[$F{VALOR_IPI_OUTROS}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="dd/MM/yy" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="17"
						y="2"
						width="31"
						height="10"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Center">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.util.Date"><![CDATA[$F{DATA_ENTRADA_SAIDA}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="2"
						y="2"
						width="17"
						height="10"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Center">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[new Integer($V{CONTADOR}.intValue()+1)]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="93"
						y="2"
						width="37"
						height="10"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Center">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.Integer"><![CDATA[$F{NUMERO_PROPRIA}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="75"
						y="2"
						width="16"
						height="10"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Center">
						<font size="7"/>
					</textElement>
				<textFieldExpression   class="java.lang.String"><![CDATA[$F{SERIE_PROPRIA}]]></textFieldExpression>
				</textField>
			</band>
		</detail>
		<columnFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</columnFooter>
		<pageFooter>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</pageFooter>
		<summary>
			<band height="40"  isSplitAllowed="true" >
				<rectangle>
					<reportElement
						x="886"
						y="6"
						width="0"
						height="0"
						key="rectangle-11"/>
					<graphicElement stretchType="NoStretch"/>
				</rectangle>
				<subreport  isUsingCache="true">
					<reportElement
						x="-1"
						y="35"
						width="782"
						height="2"
						key="subreport-1"
						positionType="Float"/>
					<subreportParameter  name="DATA_INICIAL">
						<subreportParameterExpression><![CDATA[$P{DATA_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="DATA_FINAL">
						<subreportParameterExpression><![CDATA[$P{DATA_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_UF_INICIAL">
						<subreportParameterExpression><![CDATA[$P{ID_UF_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_UF_FINAL">
						<subreportParameterExpression><![CDATA[$P{ID_UF_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_CFOP_INICIAL">
						<subreportParameterExpression><![CDATA[$P{ID_CFOP_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_CFOP_FINAL">
						<subreportParameterExpression><![CDATA[$P{ID_CFOP_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_PROCEDENCIA_INICIAL">
						<subreportParameterExpression><![CDATA[$P{ID_PROCEDENCIA_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_PROCEDENCIA_FINAL">
						<subreportParameterExpression><![CDATA[$P{ID_PROCEDENCIA_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_FORNECEDOR_INICIAL">
						<subreportParameterExpression><![CDATA[$P{ID_FORNECEDOR_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_FORNECEDOR_FINAL">
						<subreportParameterExpression><![CDATA[$P{ID_FORNECEDOR_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_INCIDENCIA_ICMS_INICIAL">
						<subreportParameterExpression><![CDATA[$P{ID_INCIDENCIA_ICMS_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_INCIDENCIA_ICMS_FINAL">
						<subreportParameterExpression><![CDATA[$P{ID_INCIDENCIA_ICMS_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_INCIDENCIA_IPI_INICIAL">
						<subreportParameterExpression><![CDATA[$P{ID_INCIDENCIA_IPI_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_INCIDENCIA_IPI_FINAL">
						<subreportParameterExpression><![CDATA[$P{ID_INCIDENCIA_IPI_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="SERIE">
						<subreportParameterExpression><![CDATA[$P{SERIE}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_MODELO_DOC_FISCAL_INICIAL">
						<subreportParameterExpression><![CDATA[$P{ID_MODELO_DOC_FISCAL_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_MODELO_DOC_FISCAL_FINAL">
						<subreportParameterExpression><![CDATA[$P{ID_MODELO_DOC_FISCAL_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_EMPRESA">
						<subreportParameterExpression><![CDATA[$P{ID_EMPRESA}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression  class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR_OUTR} + "SUB_OUTROS_REGISTRO_ENTRADAS_CFOP2.jasper"]]></subreportExpression>
				</subreport>
				<subreport  isUsingCache="true">
					<reportElement
						x="-1"
						y="38"
						width="782"
						height="2"
						key="subreport-2"
						positionType="Float"/>
					<subreportParameter  name="DATA_INICIAL">
						<subreportParameterExpression><![CDATA[$P{DATA_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="DATA_FINAL">
						<subreportParameterExpression><![CDATA[$P{DATA_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_UF_INICIAL">
						<subreportParameterExpression><![CDATA[$P{ID_UF_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_UF_FINAL">
						<subreportParameterExpression><![CDATA[$P{ID_UF_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_CFOP_INICIAL">
						<subreportParameterExpression><![CDATA[$P{ID_CFOP_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_CFOP_FINAL">
						<subreportParameterExpression><![CDATA[$P{ID_CFOP_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_MODELO_DOC_FISCAL_INICIAL">
						<subreportParameterExpression><![CDATA[$P{ID_MODELO_DOC_FISCAL_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_PROCEDENCIA_INICIAL">
						<subreportParameterExpression><![CDATA[$P{ID_PROCEDENCIA_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_PROCEDENCIA_FINAL">
						<subreportParameterExpression><![CDATA[$P{ID_PROCEDENCIA_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_FORNECEDOR_INICIAL">
						<subreportParameterExpression><![CDATA[$P{ID_FORNECEDOR_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_FORNECEDOR_FINAL">
						<subreportParameterExpression><![CDATA[$P{ID_FORNECEDOR_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_INCIDENCIA_ICMS_INICIAL">
						<subreportParameterExpression><![CDATA[$P{ID_INCIDENCIA_ICMS_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_INCIDENCIA_ICMS_FINAL">
						<subreportParameterExpression><![CDATA[$P{ID_INCIDENCIA_ICMS_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_INCIDENCIA_IPI_INICIAL">
						<subreportParameterExpression><![CDATA[$P{ID_INCIDENCIA_IPI_INICIAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_INCIDENCIA_IPI_FINAL">
						<subreportParameterExpression><![CDATA[$P{ID_INCIDENCIA_IPI_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="SERIE">
						<subreportParameterExpression><![CDATA[$P{SERIE}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_MODELO_DOC_FISCAL_FINAL">
						<subreportParameterExpression><![CDATA[$P{ID_MODELO_DOC_FISCAL_FINAL}]]></subreportParameterExpression>
					</subreportParameter>
					<subreportParameter  name="ID_EMPRESA">
						<subreportParameterExpression><![CDATA[$P{ID_EMPRESA}]]></subreportParameterExpression>
					</subreportParameter>
					<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
					<subreportExpression  class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR_OUTR} + "SUB_OUTROS_REGISTRO_ENTRADAS_UF2.jasper"]]></subreportExpression>
				</subreport>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="172"
						y="0"
						width="59"
						height="11"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{SUM_VALOR_TOTAL_1}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="337"
						y="0"
						width="59"
						height="11"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{SUM_VALOR_ICMS_TRIBUTADO_1}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="337"
						y="11"
						width="59"
						height="11"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{SUM_VALOR_ICMS_ISENTO_1}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="337"
						y="22"
						width="59"
						height="11"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{SUM_VALOR_ICMS_OUTROS_1}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="401"
						y="0"
						width="59"
						height="11"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{SUM_VALOR_ICMS_1}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="492"
						y="0"
						width="59"
						height="11"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{SUM_VALOR_IPI_TRIBUTADO_1}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="492"
						y="11"
						width="59"
						height="11"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{SUM_VALOR_IPI_ISENTO_1}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="492"
						y="22"
						width="59"
						height="11"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{SUM_VALOR_IPI_OUTROS_1}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="548"
						y="0"
						width="59"
						height="11"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{SUM_ADD_1}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="671"
						y="0"
						width="59"
						height="11"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{SUM_VALOR_IPI_OBSERVACAO_1}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="671"
						y="11"
						width="59"
						height="11"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{SUM_VALOR_BC_ICMS_ST_1}]]></textFieldExpression>
				</textField>
				<textField isStretchWithOverflow="false" pattern="#,##0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
					<reportElement
						x="671"
						y="22"
						width="59"
						height="11"
						key="textField"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<textFieldExpression   class="java.lang.Double"><![CDATA[$V{SUM_VALOR_ICMS_ST_1}]]></textFieldExpression>
				</textField>
				<staticText>
					<reportElement
						x="42"
						y="0"
						width="41"
						height="12"
						key="staticText-132"/>
					<box></box>
					<textElement textAlignment="Right">
						<font pdfFontName="Helvetica-Bold" size="8" isBold="true"/>
					</textElement>
				<text><![CDATA[TOTAIS:]]></text>
				</staticText>
				<line direction="TopDown">
					<reportElement
						x="0"
						y="33"
						width="782"
						height="0"
						key="line-9"/>
					<graphicElement stretchType="NoStretch">
					<pen lineWidth="0.8" lineStyle="Solid"/>
</graphicElement>
				</line>
			</band>
		</summary>
</jasperReport>
