<?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="JKOSRazao" pageWidth="595" pageHeight="595" columnWidth="535" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" uuid="7bcf7805-0738-4839-a767-69986d3f41a7">
	<property name="ireport.scriptlethandling" value="0"/>
	<property name="ireport.encoding" value="UTF-8"/>
	<property name="ireport.zoom" value="2.0"/>
	<property name="ireport.x" value="1"/>
	<property name="ireport.y" value="331"/>
	<import value="net.sf.jasperreports.engine.*"/>
	<import value="java.util.*"/>
	<import value="net.sf.jasperreports.engine.data.*"/>
	<parameter name="EMPRESA" class="java.lang.String" isForPrompting="false"/>
	<parameter name="USUARIO" class="java.lang.String" isForPrompting="false"/>
	<parameter name="ARQUIVO" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA["JKVendaCB.jrxml"]]></defaultValueExpression>
	</parameter>
	<parameter name="CONTROLE" class="java.lang.Long"/>
	<parameter name="CODIGO_BARRA" class="java.lang.Integer" isForPrompting="false"/>
	<parameter name="LOGOTIPO" class="java.lang.String"/>
	<queryString>
		<![CDATA[SELECT
   fat_docto_c.controle,
   fat_docto_c.cad_cadastro_id,
   cad_cadastro.razaosocial,
   cad_cadastro.cpf,
   cad_cadastro.inscricaofederal,
   CASE WHEN cad_cadastro.pessoa = 'Fisica'THEN cad_cadastro.cpf ELSE cad_cadastro.inscricaofederal END AS cnpj_cpf,
   cad_cadastro.endereco,
   cad_cadastro.complemento,
   cad_cadastro.bairro,
   cad_cadastro.numero,
   cad_cadastro.cep,
   cad_cadastro.municipio,
   cad_cadastro.uf,
   fat_docto_i.fat_produto_id,
   fat_produto.descricao AS produto,
   fat_produto.dadosadicionais AS caracteristica,
   fat_produto.unidadepadraovenda AS unid,
   fat_docto_i.qtde,
   fat_docto_i.valor_unitario,
   fat_docto_i.desc_perc_unitario,
   fat_docto_i.desc_valor_unitario,
   fat_docto_i.valor_unitario_liquido,
   fat_docto_i.valor_total,
   fat_docto_i.valor_total_liquido,
   fat_docto_c.cad_cadastro_idtransp,
   fat_docto_c.transp_nome,
   fat_docto_c.transp_endereco,
   fat_docto_c.transp_cidade,
   fat_docto_c.transp_uf,
   fat_docto_c.transp_cnpj_cpf,
   fat_docto_c.transp_placaveiculo,
   frete,
   totalprodutos,
   totalliquidoprodutos,
   valortotal_docto,
   fat_docto_c.dadosadicionais,
   fat_docto_c.descontodocto_perc,
   fat_docto_c.descontodocto_valor,
   fat_docto_c.valortotal_docto,
   fat_docto_c.nome AS nf_nome,
   fat_docto_c.cnpj_cpf AS nf_cpf_cnpj,
   fat_docto_c.endereco AS nf_endereco,
   fat_docto_c.endereco_numero AS nf_endereco_numero,
   fat_docto_c.complemento AS nf_coomplemento,
   fat_docto_c.bairro AS nf_bairro,
   fat_docto_c.cidade  AS nf_cidade,
   fat_docto_c.uf  AS nf_uf,
   fat_docto_c.defeitoreclamado,
   fat_docto_c.defeitoconstatado,
   cad_filial.telefone1 AS filial_fone,
   cad_filial.email AS filial_email,
   fat_produto.fat_grupoprodutos_id AS grupo_produto,
   fat_grupoprodutos.descricao AS grupo_descricao,
   fat_grupoprodutos.classificacao AS grupo_classificacao,
   cad_veiculo.descricaoveiculo,
   cad_veiculo.placa1,
   cad_veiculo.placa2,
   cad_veiculo.ano,
   cad_veiculo.modelo


FROM
   fat_docto_i
   LEFT JOIN fat_docto_c       ON fat_docto_c.controle = fat_docto_i.fat_docto_c_controle
   LEFT JOIN cad_cadastro      ON fat_docto_c.cad_cadastro_id = cad_cadastro.id
   LEFT JOIN fat_produto       ON fat_docto_i.fat_produto_id = fat_produto.id
   LEFT JOIN fat_grupoprodutos ON fat_produto.fat_grupoprodutos_id = fat_grupoprodutos.id
   LEFT JOIN cad_filial        ON fat_docto_c.cad_filial_id = cad_filial.id
   LEFT JOIN cad_veiculo       ON fat_docto_c.cad_veiculo_id = cad_veiculo.id
WHERE
    fat_docto_i.fat_docto_c_controle = $P{CONTROLE}
ORDER BY
    fat_grupoprodutos.id]]>
	</queryString>
	<field name="controle" class="java.lang.Long"/>
	<field name="cad_cadastro_id" class="java.lang.Integer"/>
	<field name="razaosocial" class="java.lang.String"/>
	<field name="cpf" class="java.lang.String"/>
	<field name="inscricaofederal" class="java.lang.String"/>
	<field name="cnpj_cpf" class="java.lang.String"/>
	<field name="endereco" class="java.lang.String"/>
	<field name="complemento" class="java.lang.String"/>
	<field name="bairro" class="java.lang.String"/>
	<field name="numero" class="java.lang.String"/>
	<field name="cep" class="java.lang.String"/>
	<field name="municipio" class="java.lang.String"/>
	<field name="uf" class="java.lang.String"/>
	<field name="fat_produto_id" class="java.lang.Integer"/>
	<field name="produto" class="java.lang.String"/>
	<field name="caracteristica" class="java.lang.String"/>
	<field name="unid" class="java.lang.String"/>
	<field name="qtde" class="java.math.BigDecimal"/>
	<field name="valor_unitario" class="java.math.BigDecimal"/>
	<field name="desc_perc_unitario" class="java.math.BigDecimal"/>
	<field name="desc_valor_unitario" class="java.math.BigDecimal"/>
	<field name="valor_unitario_liquido" class="java.math.BigDecimal"/>
	<field name="valor_total" class="java.math.BigDecimal"/>
	<field name="valor_total_liquido" class="java.math.BigDecimal"/>
	<field name="cad_cadastro_idtransp" class="java.lang.Integer"/>
	<field name="transp_nome" class="java.lang.String"/>
	<field name="transp_endereco" class="java.lang.String"/>
	<field name="transp_cidade" class="java.lang.String"/>
	<field name="transp_uf" class="java.lang.String"/>
	<field name="transp_cnpj_cpf" class="java.lang.String"/>
	<field name="transp_placaveiculo" class="java.lang.String"/>
	<field name="frete" class="java.lang.String"/>
	<field name="totalprodutos" class="java.math.BigDecimal"/>
	<field name="totalliquidoprodutos" class="java.math.BigDecimal"/>
	<field name="valortotal_docto" class="java.math.BigDecimal"/>
	<field name="dadosadicionais" class="java.lang.String"/>
	<field name="descontodocto_perc" class="java.math.BigDecimal"/>
	<field name="descontodocto_valor" class="java.math.BigDecimal"/>
	<field name="nf_nome" class="java.lang.String"/>
	<field name="nf_cpf_cnpj" class="java.lang.String"/>
	<field name="nf_endereco" class="java.lang.String"/>
	<field name="nf_endereco_numero" class="java.lang.String"/>
	<field name="nf_coomplemento" class="java.lang.String"/>
	<field name="nf_bairro" class="java.lang.String"/>
	<field name="nf_cidade" class="java.lang.String"/>
	<field name="nf_uf" class="java.lang.String"/>
	<field name="defeitoreclamado" class="java.lang.String"/>
	<field name="defeitoconstatado" class="java.lang.String"/>
	<field name="filial_fone" class="java.lang.String"/>
	<field name="filial_email" class="java.lang.String"/>
	<field name="grupo_produto" class="java.lang.Integer"/>
	<field name="grupo_descricao" class="java.lang.String"/>
	<field name="grupo_classificacao" class="java.lang.String"/>
	<field name="descricaoveiculo" class="java.lang.String"/>
	<field name="placa1" class="java.lang.String"/>
	<field name="placa2" class="java.lang.String"/>
	<field name="ano" class="java.lang.Integer"/>
	<field name="modelo" class="java.lang.Integer"/>
	<variable name="COUNTER" class="java.lang.Integer" calculation="Count">
		<variableExpression><![CDATA["1"]]></variableExpression>
	</variable>
	<variable name="VALOR_TOTAL" class="java.math.BigDecimal" calculation="Sum">
		<variableExpression><![CDATA[$F{valor_total_liquido}]]></variableExpression>
	</variable>
	<variable name="SB_VALOR_TOTAL" class="java.math.BigDecimal" resetType="Group" resetGroup="ITEM_GRUPO_PROD" calculation="Sum">
		<variableExpression><![CDATA[$F{valor_total_liquido}]]></variableExpression>
	</variable>
	<group name="ITEM_GRUPO_PROD">
		<groupExpression><![CDATA[$F{grupo_produto}]]></groupExpression>
		<groupHeader>
			<band height="13">
				<textField isBlankWhenNull="true">
					<reportElement key="textField" x="2" y="1" width="460" height="11" uuid="f8b76a7c-d738-42e4-8b6a-4f51c0d38bfa"/>
					<textElement verticalAlignment="Bottom">
						<font fontName="SansSerif" size="9" isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[String.format("%05d",$F{grupo_produto}) +"-"+$F{grupo_descricao}]]></textFieldExpression>
				</textField>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="11">
				<textField pattern="#,##0.00" isBlankWhenNull="false">
					<reportElement key="textField" x="434" y="0" width="92" height="11" uuid="e39b453a-513c-44a3-8bb7-bbbbc60cdfc9"/>
					<textElement textAlignment="Right">
						<font fontName="SansSerif" size="9" isBold="true"/>
					</textElement>
					<textFieldExpression><![CDATA[$V{SB_VALOR_TOTAL}]]></textFieldExpression>
				</textField>
			</band>
		</groupFooter>
	</group>
	<background>
		<band splitType="Stretch"/>
	</background>
	<title>
		<band splitType="Stretch"/>
	</title>
	<pageHeader>
		<band height="195" splitType="Stretch">
			<rectangle>
				<reportElement key="rectangle-1" x="-1" y="52" width="324" height="128" uuid="cd8bf768-cb19-43bb-a5fa-52b8d0f7606e"/>
			</rectangle>
			<line direction="BottomUp">
				<reportElement key="line-1" x="1" y="18" width="533" height="1" uuid="46179c22-dfa2-4782-a004-5e632de35d9c"/>
			</line>
			<textField isBlankWhenNull="true">
				<reportElement key="textField" x="514" y="0" width="16" height="18" uuid="d67bef52-9379-4556-81e6-6ffffa599b12"/>
				<textElement textAlignment="Right">
					<font fontName="SansSerif" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement key="staticText-2" x="475" y="0" width="38" height="16" uuid="51b0b5ef-2e40-4305-a8f8-93b4d4e6ce3c"/>
				<textElement textAlignment="Center">
					<font fontName="SansSerif" size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[PAG:]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement key="textField" x="1" y="0" width="231" height="18" uuid="9690fc69-96f2-4cb2-971a-f26c648d9258"/>
				<textElement>
					<font fontName="SansSerif" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{EMPRESA}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement key="staticText-6" x="9" y="55" width="40" height="13" uuid="2d8d84e7-2115-4ada-8587-4f2ccc555173"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[CLIENTE:]]></text>
			</staticText>
			<staticText>
				<reportElement key="staticText-8" x="9" y="111" width="51" height="10" uuid="ee75aecd-424e-4623-a8fe-c8c8b2e68472"/>
				<textElement verticalAlignment="Bottom">
					<font fontName="SansSerif" size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[ENDEREÇO:]]></text>
			</staticText>
			<staticText>
				<reportElement key="staticText-36" x="9" y="70" width="51" height="12" uuid="ca00a633-f275-4c61-808b-3dc87b887b10"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[CPF/CNPJ:]]></text>
			</staticText>
			<staticText>
				<reportElement key="staticText-38" x="5" y="181" width="126" height="12" uuid="e85c86fe-44d1-450f-bb21-7d89d8f20cd2"/>
				<textElement verticalAlignment="Bottom">
					<font fontName="SansSerif" size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[PRODUTOS/SERVICOS]]></text>
			</staticText>
			<staticText>
				<reportElement key="staticText-39" x="256" y="181" width="35" height="12" uuid="9dd2565b-d6d9-40b4-8d68-7e5166f17161"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="SansSerif" size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[QTDE]]></text>
			</staticText>
			<staticText>
				<reportElement key="staticText-40" x="325" y="181" width="50" height="12" uuid="5549b30a-4fb1-4aa8-aff5-9b73bb468bfa"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="SansSerif" size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[VL UN.]]></text>
			</staticText>
			<staticText>
				<reportElement key="staticText-41" x="323" y="24" width="207" height="16" uuid="bcc70e8a-f637-4b4b-bcf9-f971ce79302c"/>
				<textElement textAlignment="Center">
					<font fontName="SansSerif" size="12" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[ORDEM DE SERVIÇO]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement key="textField" x="54" y="55" width="269" height="13" uuid="bf665e4b-d4cb-4afc-9167-0b467eb8b979"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[String.format("%05d", $F{cad_cadastro_id})+"-"+$F{razaosocial}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement key="textField" x="9" y="83" width="91" height="12" uuid="f752a4d3-4dcd-4903-87fb-0e7b173cd03c"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{nf_cpf_cnpj}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement key="textField" x="9" y="122" width="233" height="12" uuid="11ad4175-dfd4-40dd-94b5-75d809b8b63d"/>
				<textElement verticalAlignment="Bottom">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{endereco}.trim()+  ", " +$F{bairro}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement key="staticText-43" x="255" y="122" width="14" height="12" uuid="8a9e1e11-28f9-4855-aa0c-48b4199d04a6"/>
				<textElement verticalAlignment="Bottom">
					<font fontName="SansSerif" size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[Nº:]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement key="textField" x="269" y="122" width="44" height="12" uuid="38a2ee77-60b9-40d6-8ca4-7716a53fc02d"/>
				<textElement verticalAlignment="Bottom">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{numero}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement key="textField" x="9" y="134" width="66" height="14" uuid="6aa50438-084b-49b2-b151-dfe079dcc0fb"/>
				<textElement verticalAlignment="Bottom">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{cep}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement key="textField" x="75" y="134" width="143" height="14" uuid="2c760416-5540-4f6d-b5e2-43aca43db860"/>
				<textElement verticalAlignment="Bottom">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{nf_cidade}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement key="staticText-44" x="478" y="181" width="48" height="12" uuid="ea87b930-92fe-4e6d-a6f7-03bd546fb2f8"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="SansSerif" size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[TOTAL]]></text>
			</staticText>
			<rectangle>
				<reportElement key="rectangle-4" x="325" y="52" width="209" height="22" uuid="01579ed8-10f1-488f-90ce-c333cec22001"/>
			</rectangle>
			<staticText>
				<reportElement key="staticText-50" x="325" y="56" width="66" height="15" uuid="e2e465e8-d4f0-45fc-b5ae-72fccea4786b"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="false" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[CONTROLE:]]></text>
			</staticText>
			<textField isBlankWhenNull="false">
				<reportElement key="textField" x="391" y="56" width="71" height="15" uuid="42441f77-e689-4e59-be60-3bc1951ff202"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font fontName="SansSerif" size="10" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<textFieldExpression><![CDATA[String.format("%09d", $F{controle})]]></textFieldExpression>
			</textField>
			<rectangle>
				<reportElement key="rectangle-5" x="325" y="74" width="209" height="106" uuid="87999db8-1ef9-4f73-aa65-e41cf4f2a0c5"/>
			</rectangle>
			<elementGroup>
				<componentElement>
					<reportElement stretchType="RelativeToBandHeight" x="9" y="95" width="94" height="14" uuid="59489df0-110a-46b5-aeaf-a826f5e49d67"/>
					<jr:barbecue xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" type="Code39" drawText="false" checksumRequired="false" barHeight="80">
						<jr:codeExpression><![CDATA[$F{cnpj_cpf}]]></jr:codeExpression>
					</jr:barbecue>
				</componentElement>
			</elementGroup>
			<componentElement>
				<reportElement stretchType="RelativeToBandHeight" x="479" y="56" width="51" height="16" uuid="8dc593d2-6ec3-4300-9771-606c2199cd86"/>
				<jr:barbecue xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" type="Code39" drawText="false" checksumRequired="false" barHeight="90">
					<jr:codeExpression><![CDATA[String.format("%09d",$F{controle})]]></jr:codeExpression>
				</jr:barbecue>
			</componentElement>
			<line direction="BottomUp">
				<reportElement key="line-1" x="2" y="194" width="533" height="1" uuid="5d75f11d-fdc9-4488-a34a-b3cb5a9e38a9"/>
			</line>
			<staticText>
				<reportElement key="staticText-40" x="424" y="181" width="42" height="12" uuid="ee32ca47-12f7-4a76-b3c0-4eb4fafca501"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="SansSerif" size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[VL LIQ.]]></text>
			</staticText>
			<staticText>
				<reportElement key="staticText-40" x="379" y="181" width="30" height="12" uuid="666c98c6-2c9a-4d9f-8569-f52950ab1c37"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="SansSerif" size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[DESC]]></text>
			</staticText>
			<staticText>
				<reportElement key="staticText-39" x="294" y="181" width="29" height="12" uuid="d237db45-bcbd-438c-8cc0-17ff19881fa7"/>
				<textElement verticalAlignment="Bottom">
					<font fontName="SansSerif" size="8" isBold="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[UN]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement key="textField" x="9" y="149" width="209" height="12" uuid="2c4606c0-aea0-4510-9186-c990241feefe"/>
				<textElement verticalAlignment="Bottom">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{complemento}]]></textFieldExpression>
			</textField>
			<subreport isUsingCache="true">
				<reportElement x="325" y="87" width="210" height="89" uuid="17ac55c1-a159-4472-945e-f3a839e2b01b"/>
				<subreportParameter name="CONTROLE">
					<subreportParameterExpression><![CDATA[$F{controle}]]></subreportParameterExpression>
				</subreportParameter>
				<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
				<subreportExpression><![CDATA[getClass().getResourceAsStream("/relatorios/jasper/JKVendaCB_subreport1.jasper")]]></subreportExpression>
			</subreport>
			<textField isBlankWhenNull="true">
				<reportElement key="textField" x="60" y="69" width="133" height="12" uuid="b6552037-da43-4ea6-8a5a-b465287423fa"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA["VEÍCULO/AUTOMÓVEL:"]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement key="textField" x="193" y="81" width="130" height="12" uuid="40181e47-15fb-4bbf-ae06-868effc75642"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA["PLACA:"+ $F{placa1}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement key="textField" x="193" y="93" width="130" height="12" uuid="cdc967b9-bd66-481d-a512-557515174f94"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA["ANO/MODELO: " + $F{ano} + "/"+ $F{modelo}]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="true">
				<reportElement key="textField" x="195" y="70" width="130" height="12" uuid="b2b3e18d-1834-4a94-91e5-198aaf450704"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{descricaoveiculo}]]></textFieldExpression>
			</textField>
			<image scaleImage="RetainShape" onErrorType="Blank">
				<reportElement key="" x="0" y="19" width="128" height="29" uuid="a33ad1ff-2488-43b4-9f49-bcf0d5fcc8cd"/>
				<imageExpression><![CDATA[$P{LOGOTIPO}]]></imageExpression>
			</image>
		</band>
	</pageHeader>
	<columnHeader>
		<band splitType="Stretch"/>
	</columnHeader>
	<detail>
		<band height="10" splitType="Stretch">
			<rectangle>
				<reportElement key="rectangle-1" mode="Opaque" x="1" y="1" width="534" height="9" forecolor="#CCCCCC" backcolor="#CCCCCC" uuid="8abaa0de-0175-41e5-a8c5-6f9a27663715">
					<printWhenExpression><![CDATA[new Boolean(new Integer(($V{COUNTER}.intValue())%2).equals (new Integer("1")))]]></printWhenExpression>
				</reportElement>
			</rectangle>
			<textField isBlankWhenNull="false">
				<reportElement key="textField" stretchType="RelativeToBandHeight" x="5" y="1" width="248" height="9" uuid="05a2100e-38c1-4e02-b6bd-3d4e4548e8a9"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="7" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[String.format("%05d",$F{fat_produto_id}) +"-"+ $F{produto}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="false">
				<reportElement key="textField" x="253" y="1" width="38" height="9" uuid="f958a971-50cc-4d4d-828c-aa3d9e0ac8b1"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="SansSerif" size="7" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{qtde}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="false">
				<reportElement key="textField" x="325" y="1" width="50" height="9" uuid="53eba249-8f9f-413a-96b7-544d21008013"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="SansSerif" size="7" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{valor_unitario}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="false">
				<reportElement key="textField" x="474" y="1" width="52" height="9" uuid="a497009c-ac84-4dfb-ab96-22a6ded8e49e"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="SansSerif" size="7" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{valor_total_liquido}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="false">
				<reportElement key="textField" x="412" y="1" width="54" height="9" uuid="b398db48-260d-43be-b3cb-330a37cd777d"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="SansSerif" size="7" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{valor_unitario_liquido}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement key="textField" x="378" y="1" width="31" height="9" uuid="c8c782e3-ec33-4e16-a741-af44322ec8b8"/>
				<textElement textAlignment="Right" verticalAlignment="Middle">
					<font fontName="SansSerif" size="7" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{desc_valor_unitario}]]></textFieldExpression>
			</textField>
			<textField pattern="#,##0.00" isBlankWhenNull="false">
				<reportElement key="textField" x="294" y="1" width="29" height="9" uuid="3c35b12e-5f63-457c-81ae-57026941b94c"/>
				<textElement>
					<font fontName="SansSerif" size="7" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{unid}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band splitType="Stretch"/>
	</columnFooter>
	<pageFooter>
		<band height="45" splitType="Stretch">
			<textField isBlankWhenNull="true">
				<reportElement key="textField-1" x="4" y="7" width="71" height="8" uuid="bf6ba3fc-05f3-4283-bd9e-c5283a9fa35c"/>
				<textElement>
					<font fontName="SansSerif" size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{ARQUIVO}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement key="staticText-47" x="81" y="7" width="22" height="8" uuid="d32d7e7e-b2d2-4170-8c8a-3242d39e5453"/>
				<textElement textAlignment="Center">
					<font fontName="SansSerif" size="6" isBold="true"/>
				</textElement>
				<text><![CDATA[-]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement key="textField-2" x="103" y="7" width="81" height="8" uuid="f5436462-5bdb-44b5-b788-ca7d9b37ca1c"/>
				<textElement>
					<font fontName="SansSerif" size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$P{USUARIO}]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report" pattern="dd/MM/yyyy HH:mm" isBlankWhenNull="false">
				<reportElement key="textField-3" x="249" y="7" width="100" height="8" uuid="9d4ba457-e056-48d5-95a0-cdb55caae48e"/>
				<textElement>
					<font fontName="SansSerif" size="6" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement key="staticText-49" x="349" y="7" width="178" height="8" uuid="013b8907-a5d8-47fb-b2c3-6f48a01bcfa1"/>
				<textElement textAlignment="Right">
					<font fontName="SansSerif" size="6" isBold="true"/>
				</textElement>
				<text><![CDATA[https://infokaw.com.br/jkawflex]]></text>
			</staticText>
			<line direction="BottomUp">
				<reportElement key="line-1" x="0" y="2" width="533" height="1" uuid="26aa9336-aebf-4c74-b4f6-28f1bc41c4e7"/>
			</line>
			<staticText>
				<reportElement x="14" y="32" width="517" height="12" uuid="e1946e2e-7493-43cd-ac25-bfbd4b433b20"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="SansSerif" size="7" isBold="true" isItalic="true"/>
				</textElement>
				<text><![CDATA["Agrdecemos a Preferencia, volte sempre "]]></text>
			</staticText>
			<textField isBlankWhenNull="true">
				<reportElement key="textField" x="4" y="20" width="512" height="12" uuid="6269c99b-e006-4119-88b7-2031faca9102"/>
				<textElement verticalAlignment="Middle">
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA["TELEFONE: " +$F{filial_fone} +"   E-MAIL: "+ $F{filial_email}]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
	<summary>
		<band height="67" splitType="Stretch">
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="9" y="29" width="245" height="38" uuid="43a38b2f-cdac-46f4-baea-5f371782a8cd"/>
				<textElement>
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{defeitoreclamado}.trim()]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement key="staticText-38" x="9" y="19" width="154" height="10" uuid="4decccd8-c89d-4340-9a8d-2b042963dc92"/>
				<textElement>
					<font fontName="SansSerif" size="7" isBold="true" isUnderline="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[APONTAMENTO RECLAMADO:]]></text>
			</staticText>
			<staticText>
				<reportElement x="14" y="2" width="138" height="16" uuid="89a931e1-ff5d-4559-ab98-52b96d01f4da"/>
				<textElement verticalAlignment="Top">
					<font fontName="SansSerif" size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[DESCONTO NO TOTAL:(%)]]></text>
			</staticText>
			<textField pattern="#,##0.00" isBlankWhenNull="true">
				<reportElement x="155" y="2" width="38" height="16" uuid="292f3d9f-9679-4ffd-9317-4a872b6017ce"/>
				<textElement textAlignment="Right">
					<font fontName="SansSerif" size="10" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{descontodocto_perc}]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00">
				<reportElement x="447" y="2" width="79" height="16" uuid="b9ff8af9-db3e-4b39-8491-b350c39d3a01"/>
				<textElement textAlignment="Right" verticalAlignment="Top">
					<font fontName="SansSerif" size="10" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{valortotal_docto}]]></textFieldExpression>
			</textField>
			<textField pattern="¤ #,##0.00" isBlankWhenNull="true">
				<reportElement x="193" y="2" width="74" height="16" uuid="bfa6114c-e036-4b84-b493-530f90963aee"/>
				<textElement textAlignment="Right">
					<font fontName="SansSerif" size="10" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{descontodocto_valor}]]></textFieldExpression>
			</textField>
			<staticText>
				<reportElement x="363" y="2" width="84" height="16" uuid="c7b928e1-325e-4674-9c5c-e4ce08e9ab73"/>
				<textElement textAlignment="Right" verticalAlignment="Top">
					<font fontName="SansSerif" size="10" isBold="true"/>
				</textElement>
				<text><![CDATA[TOTAL LIQ.:]]></text>
			</staticText>
			<staticText>
				<reportElement key="staticText-38" x="280" y="19" width="154" height="10" uuid="2162c05b-4a09-4f81-97d5-4216c7127862"/>
				<textElement>
					<font fontName="SansSerif" size="7" isBold="true" isUnderline="true" pdfFontName="Helvetica-Bold"/>
				</textElement>
				<text><![CDATA[APONTAMENTO CONSTATADO]]></text>
			</staticText>
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
				<reportElement x="279" y="29" width="245" height="38" uuid="9f6a1630-4bd0-4320-8f20-a48ccfded2df"/>
				<textElement>
					<font fontName="SansSerif" size="8" isBold="true"/>
				</textElement>
				<textFieldExpression><![CDATA[$F{defeitoconstatado}.trim()]]></textFieldExpression>
			</textField>
		</band>
	</summary>
</jasperReport>
