<?xml version="1.0" encoding="UTF-8"?>
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="RelatorioImpressaoRMD" printOrder="Horizontal" pageWidth="948" pageHeight="730" columnWidth="922" leftMargin="20" rightMargin="6" topMargin="0" bottomMargin="19" uuid="d3d490c9-33e7-4eeb-97cc-1fa9be0f10d4">
	<property name="ireport.zoom" value="1.1000000000000194"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<field name="empresa" class="java.lang.String"/>
	<field name="enderecoEmpresa" class="java.lang.String"/>
	<field name="cnpjEmpresa" class="java.lang.String"/>
	<field name="ieEmpresa" class="java.lang.String"/>
	<field name="rmd" class="java.lang.String"/>
	<field name="naturezaOperacao" class="java.lang.String"/>
	<field name="tipo" class="java.lang.String"/>
	<field name="serie" class="java.lang.String"/>
	<field name="numero" class="java.lang.String"/>
	<field name="valorContabil" class="java.math.BigDecimal"/>
	<field name="baseCalculo" class="java.math.BigDecimal"/>
	<field name="aliquota" class="java.math.BigDecimal"/>
	<field name="icms" class="java.math.BigDecimal"/>
	<field name="isentos" class="java.math.BigDecimal"/>
	<field name="outros" class="java.math.BigDecimal"/>
	<field name="obs" class="java.lang.String"/>
	<field name="folio" class="java.lang.String"/>
	<field name="data" class="java.util.Date"/>
	<variable name="sum_valorContabil" class="java.math.BigDecimal" resetType="Page" calculation="Sum">
		<variableExpression><![CDATA[$F{valorContabil}]]></variableExpression>
	</variable>
	<variable name="sum_baseCalculo" class="java.math.BigDecimal" resetType="Page" calculation="Sum">
		<variableExpression><![CDATA[$F{baseCalculo}]]></variableExpression>
	</variable>
	<variable name="sum_icms" class="java.math.BigDecimal" resetType="Page" calculation="Sum">
		<variableExpression><![CDATA[$F{icms}]]></variableExpression>
	</variable>
	<variable name="sum_isentos" class="java.math.BigDecimal" resetType="Page" calculation="Sum">
		<variableExpression><![CDATA[$F{isentos}]]></variableExpression>
	</variable>
	<variable name="sum_outros" class="java.math.BigDecimal" resetType="Page" calculation="Sum">
		<variableExpression><![CDATA[$F{outros}]]></variableExpression>
	</variable>
	<group name="datamov" isStartNewPage="true" isReprintHeaderOnEachPage="true" footerPosition="ForceAtBottom">
		<groupExpression><![CDATA[$F{data}]]></groupExpression>
		<groupHeader>
			<band height="156" splitType="Stretch">
				<textField>
					<reportElement x="329" y="7" width="394" height="15" uuid="76bd1c26-ed5d-4155-916b-f90dbdb2b9dc"/>
					<textElement>
						<font fontName="SansSerif" size="11" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{empresa}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="329" y="22" width="394" height="15" uuid="1bc67f62-16e9-4681-891c-4d2680466d91"/>
					<textElement>
						<font fontName="SansSerif" size="9" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{enderecoEmpresa}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="329" y="37" width="394" height="15" uuid="fe223feb-b29e-4f97-b359-272aa857ce87"/>
					<textElement>
						<font fontName="SansSerif" size="11" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{cnpjEmpresa}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="329" y="52" width="394" height="15" uuid="cc73dace-ff3e-40cf-8292-9519af0108d4"/>
					<textElement>
						<font fontName="SansSerif" size="11" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{ieEmpresa}]]></textFieldExpression>
				</textField>
				<textField pattern="dd/MM/yyyy">
					<reportElement x="329" y="67" width="394" height="15" uuid="b716c82c-1944-4691-b907-1d194b41ecfd"/>
					<textElement>
						<font fontName="SansSerif" size="11" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{data}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="742" y="22" width="181" height="38" uuid="1c447225-9f55-4f72-a269-d29c272ef2a4"/>
					<textElement textAlignment="Left" verticalAlignment="Middle">
						<font fontName="SansSerif" size="14" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{folio} != null ? Integer.parseInt($F{folio}) + ($V{PAGE_NUMBER} - 1) : $F{rmd}]]></textFieldExpression>
				</textField>
				<textField>
					<reportElement x="742" y="67" width="181" height="28" uuid="6de6219d-29c1-43bb-91be-718a93ee5e7b"/>
					<textElement>
						<font fontName="SansSerif" size="13" pdfFontName="Times-Roman" isPdfEmbedded="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$F{naturezaOperacao}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<detail>
		<band height="18" splitType="Stretch">
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="3" y="0" width="33" height="18" uuid="d9a99502-1f1e-4f22-930f-66bd8be3c7f0"/>
				<textElement>
					<font fontName="SansSerif" size="13" isItalic="false" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{tipo}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement positionType="Float" stretchType="RelativeToTallestObject" x="36" y="0" width="60" height="18" isPrintWhenDetailOverflows="true" uuid="b8964ae5-2660-4461-926e-8b7734cbe07f">
					<printWhenExpression><![CDATA[$F{serie} != null]]></printWhenExpression>
				</reportElement>
				<textElement textAlignment="Left">
					<font fontName="SansSerif" size="13" isItalic="false" isStrikeThrough="false" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
					<paragraph rightIndent="-25"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{serie}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement stretchType="RelativeToTallestObject" x="96" y="0" width="73" height="18" isPrintWhenDetailOverflows="true" uuid="b5444b15-beaa-42fb-814d-424acf42b6ab"/>
				<textElement textAlignment="Right" rotation="None">
					<font fontName="SansSerif" size="13" isItalic="false" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
					<paragraph lineSpacing="Proportional" leftIndent="-25"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{numero}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="169" y="0" width="92" height="18" uuid="f8fbd690-36bd-4d69-9af4-1490ec205698"/>
				<textElement textAlignment="Right">
					<font fontName="SansSerif" size="13" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{valorContabil}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="261" y="0" width="104" height="18" uuid="21f2b8f9-1acd-4e7d-bb27-643cfae50748"/>
				<textElement textAlignment="Right">
					<font fontName="SansSerif" size="13" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{baseCalculo}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="365" y="0" width="43" height="18" uuid="565fe3d7-bce7-480f-829f-0238cf7d2d74"/>
				<textElement textAlignment="Right">
					<font fontName="SansSerif" size="13" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{aliquota}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="408" y="0" width="90" height="18" uuid="c07a3fa8-12c6-4a5b-8707-02c0524f943c"/>
				<textElement textAlignment="Right">
					<font fontName="SansSerif" size="13" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{icms}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="608" y="0" width="115" height="18" uuid="4f082fb1-15bc-41f6-985e-0f670459fceb"/>
				<textElement textAlignment="Right">
					<font fontName="SansSerif" size="13" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{outros}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement x="723" y="0" width="200" height="18" uuid="7c171d60-9889-4845-89d5-f656e34b1c37"/>
				<textElement textAlignment="Center">
					<font fontName="SansSerif" size="13" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{obs}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="498" y="0" width="110" height="18" uuid="60865331-9449-4435-8b4a-664b747a90b3"/>
				<textElement textAlignment="Right">
					<font fontName="SansSerif" size="13" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{isentos}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<pageFooter>
		<band height="105">
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="169" y="0" width="92" height="20" uuid="e6c0383c-5062-4b22-989b-d1619add3ade"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="SansSerif" size="13" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{sum_valorContabil}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="261" y="0" width="104" height="20" uuid="810c93ac-4d8b-4edb-800c-ec2753286bb1"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="SansSerif" size="13" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{sum_baseCalculo}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="408" y="0" width="90" height="20" uuid="0a93d431-1b76-4590-aa1b-9af22283a5b3"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="SansSerif" size="13" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{sum_icms}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="498" y="0" width="110" height="20" uuid="748316ed-feb8-4a2d-9103-764eeb74873d"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="SansSerif" size="13" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{sum_isentos}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="608" y="0" width="115" height="20" uuid="66628be0-d424-4d61-96dc-aaf8652ded42"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="SansSerif" size="13" pdfFontName="Times-Roman" isPdfEmbedded="false"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{sum_outros}]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
	<summary>
		<band splitType="Stretch"/>
	</summary>
	<noData>
		<band/>
	</noData>
</jasperReport>
