<?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="nit_subreport" language="groovy" pageWidth="130" pageHeight="15" columnWidth="130" 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 language="SQL">
		<![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="NIT_COMPLETO" class="java.lang.String"/>
	<background>
		<band splitType="Stretch"/>
	</background>
	<detail>
		<band height="15" splitType="Stretch">
			<textField>
				<reportElement x="0" y="0" width="130" height="15"/>
				<textElement textAlignment="Center">
					<font size="8"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$P{entidad_cliente}.equals("1")?
"NIT. "+$F{NIT_COMPLETO}:
" "]]></textFieldExpression>
			</textField>
		</band>
	</detail>
</jasperReport>
