<?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="SUB_ITENS_CONSUMO" pageWidth="535" pageHeight="752" columnWidth="535" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="0a3fc6e8-5f47-4479-afab-0a84f7a561b8">
	<property name="ireport.zoom" value="2.143588810000005"/>
	<property name="ireport.x" value="309"/>
	<property name="ireport.y" value="0"/>
	<field name="PRODUTO" class="java.lang.String">
		<fieldDescription><![CDATA[produto.nome]]></fieldDescription>
	</field>
	<field name="ID_PRODUTO" class="java.lang.Long">
		<fieldDescription><![CDATA[produto.identificador]]></fieldDescription>
	</field>
	<field name="VALOR_UNITARIO" class="java.lang.Number">
		<fieldDescription><![CDATA[valorUnitario]]></fieldDescription>
	</field>
	<field name="VALOR_DESCONTO" class="java.lang.Number">
		<fieldDescription><![CDATA[valorDesconto]]></fieldDescription>
	</field>
	<field name="VALOR_TOTAL" class="java.lang.Number">
		<fieldDescription><![CDATA[valorTotal]]></fieldDescription>
	</field>
	<variable name="SUM_QUANTIDADE" class="java.lang.Double" calculation="Sum">
		<variableExpression><![CDATA[($F{VALOR_TOTAL}.doubleValue() + $F{VALOR_DESCONTO}.doubleValue()) / $F{VALOR_UNITARIO}.doubleValue()]]></variableExpression>
	</variable>
	<variable name="SUM_VALOR_UNITARIO" class="java.lang.Double" calculation="Sum">
		<variableExpression><![CDATA[$F{VALOR_UNITARIO}]]></variableExpression>
	</variable>
	<variable name="SUM_VALOR_DESCONTO" class="java.lang.Double" calculation="Sum">
		<variableExpression><![CDATA[$F{VALOR_DESCONTO}]]></variableExpression>
	</variable>
	<variable name="SUM_VALOR_TOTAL" class="java.lang.Double" calculation="Sum">
		<variableExpression><![CDATA[$F{VALOR_TOTAL}]]></variableExpression>
	</variable>
	<columnHeader>
		<band height="12" splitType="Stretch">
			<rectangle>
				<reportElement uuid="49f2edb0-cdb1-495b-8f07-e67c96bc32e5" positionType="Float" x="13" y="0" width="522" height="12" backcolor="#CCCCCC"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</rectangle>
			<staticText>
				<reportElement uuid="21db074a-0ef3-419e-a1bd-874b5e2c16ff" positionType="Float" x="14" y="0" width="149" height="12"/>
				<textElement verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Item Consumo]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="df4a8f30-bcc0-49f7-bcef-70ee8cd71b76" positionType="Float" x="268" y="0" width="70" height="12"/>
				<textElement verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Quantidade]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="92255805-3342-4610-9f82-bee1883c287b" positionType="Float" x="340" y="0" width="59" height="12"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Vlr. Unitário]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="bf8d7e05-5b78-473a-b2a2-3b4a7cfd841f" positionType="Float" x="399" y="0" width="61" height="12"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Vlr. Desconto]]></text>
			</staticText>
			<staticText>
				<reportElement uuid="f846763b-edc7-4b47-8f9f-6ba46e0345bd" positionType="Float" x="462" y="0" width="72" height="12"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Vlr. Total]]></text>
			</staticText>
		</band>
	</columnHeader>
	<detail>
		<band height="12" splitType="Stretch">
			<rectangle>
				<reportElement uuid="65396891-8ce7-4264-8945-d360349d64f8" positionType="Float" x="267" y="0" width="74" height="12"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</rectangle>
			<rectangle>
				<reportElement uuid="8ed99e0d-975b-4ef7-b07e-d6ebb81a7cfc" positionType="Float" x="13" y="0" width="254" height="12"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</rectangle>
			<rectangle>
				<reportElement uuid="ce84799b-4b0a-434d-ab1e-b8027dcbbc81" positionType="Float" x="341" y="0" width="59" height="12"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</rectangle>
			<rectangle>
				<reportElement uuid="33aec818-354f-4503-bacd-bbaf72a63a8f" positionType="Float" x="400" y="0" width="61" height="12"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</rectangle>
			<rectangle>
				<reportElement uuid="1fcd81ff-dae1-4d6a-97ed-3d0952785d14" positionType="Float" x="461" y="0" width="74" height="12"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</rectangle>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement uuid="fc097f14-e8df-4611-abb2-f8012aa0a8fb" positionType="Float" x="14" y="0" width="253" height="12"/>
				<textElement verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{ID_PRODUTO}+" - "+$F{PRODUTO}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="85296204-14a7-41a3-9dd4-c32843bd993c" positionType="Float" x="341" y="0" width="58" height="12"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{VALOR_UNITARIO}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="5250b197-51d7-4278-b944-598b0f5953f3" positionType="Float" x="400" y="0" width="60" height="12"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{VALOR_DESCONTO}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="9f9a31c5-54e6-4ba6-8f14-ec2f55e46b07" positionType="Float" x="462" y="0" width="72" height="12"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{VALOR_TOTAL}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="751ffe56-20fa-4c2c-816d-2a9b64555282" positionType="Float" x="268" y="0" width="71" height="12"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8"/>
				</textElement>
				<textFieldExpression><![CDATA[($F{VALOR_TOTAL}.doubleValue() + $F{VALOR_DESCONTO}.doubleValue()) / $F{VALOR_UNITARIO}.doubleValue()]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<summary>
		<band height="12">
			<rectangle>
				<reportElement uuid="76960ee6-4855-4c9a-99e0-692f79189b51" positionType="Float" x="461" y="0" width="74" height="12"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</rectangle>
			<rectangle>
				<reportElement uuid="b70ea4db-4b9b-4759-99f5-6194c5588430" positionType="Float" x="400" y="0" width="61" height="12"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</rectangle>
			<rectangle>
				<reportElement uuid="c418c147-f94c-44f4-a17f-5035531ab306" positionType="Float" x="341" y="0" width="59" height="12"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</rectangle>
			<rectangle>
				<reportElement uuid="bf02ef1d-a5d0-463a-987a-969a1eb22ac9" positionType="Float" x="267" y="0" width="74" height="12"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</rectangle>
			<rectangle>
				<reportElement uuid="f75cdf94-0e99-4678-b74d-8955d70a97ff" positionType="Float" x="13" y="0" width="254" height="12"/>
				<graphicElement>
					<pen lineWidth="0.5"/>
				</graphicElement>
			</rectangle>
			<staticText>
				<reportElement uuid="f9739dac-1f8b-446e-aa7e-5208e0f561e0" positionType="Float" x="53" y="0" width="209" height="12"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true"/>
				</textElement>
				<text><![CDATA[Totais]]></text>
			</staticText>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="c985f33e-bf8a-4c6e-a8e8-b59d69442404" positionType="Float" x="268" y="0" width="71" height="12"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{SUM_QUANTIDADE}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="0296245b-3bd1-4782-82a5-fbd93f5a50bc" positionType="Float" x="341" y="0" width="58" height="12"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{SUM_VALOR_UNITARIO}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="596f7e2c-7bad-40f9-9744-d37bd453583f" positionType="Float" x="400" y="0" width="60" height="12"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{SUM_VALOR_DESCONTO}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement uuid="fb825c1b-2c42-404a-9b86-ad023382233b" positionType="Float" x="462" y="0" width="72" height="12"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{SUM_VALOR_TOTAL}]]></textFieldExpression>
			</textField>
		</band>
	</summary>
</jasperReport>
