<?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="empresa_subreport" language="groovy" pageWidth="300" pageHeight="50" columnWidth="300" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">
	<property name="ireport.zoom" value="1.0"/>
	<property name="ireport.x" value="0"/>
	<property name="ireport.y" value="0"/>
	<parameter name="entidad_cliente" class="java.lang.String"/>
	<queryString>
		<![CDATA[SELECT nombre_empresa,
  direccion,
  TO_CHAR(to_number(nit),'999G999G999'),
  digito_verificacion(nit) AS digito,
  TO_CHAR(to_number(nit),'999G999G999')
  ||' - '
  || digito_verificacion(nit) AS NIT_COMPLETO
FROM DATOS_COMPANIA
WHERE id=1]]>
	</queryString>
	<field name="NOMBRE_EMPRESA" class="java.lang.String"/>
	<field name="DIRECCION" class="java.lang.String"/>
	<field name="TO_CHAR(TO_NUMBER(NIT),&apos;999G999G999&apos;)" class="java.lang.String"/>
	<field name="DIGITO" class="java.math.BigDecimal"/>
	<field name="NIT_COMPLETO" class="java.lang.String"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<detail>
		<band height="50" splitType="Stretch">
			<textField>
				<reportElement x="0" y="35" width="300" height="15"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["NIT. "+$F{NIT_COMPLETO}
]]></textFieldExpression>
			</textField>
			<textField isBlankWhenNull="false">
				<reportElement x="0" y="0" width="300" height="35"/>
				<textElement textAlignment="Center" verticalAlignment="Middle">
					<font size="12" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{NOMBRE_EMPRESA}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
</jasperReport>
