src/org/openbravo/erpCommon/ad_reports/ReportTaxInvoiceSale.jrxml
author Iván Perdomo <ivan.perdomo@openbravo.com>
Fri, 15 Apr 2011 18:07:36 +0200
changeset 11848 e900de861372
parent 4948 16fbb48b2f19
child 18035 41ed8d602a12
permissions -rw-r--r--
[lib-update] Update JasperReports to 4.0.1
- The jasperreports-4.0.1.jar was modified to not fail on missing fonts
- Update required jars
- Update the template definitions with antupdate task in jasperreports
distribution
ivan@11848
     1
<?xml version="1.0" encoding="UTF-8"?>
ivan@11848
     2
<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="ReportTaxInvoiceSale" pageWidth="605" pageHeight="842" columnWidth="605" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">
ivan@11848
     3
	<property name="ireport.scriptlethandling" value="0"/>
ivan@11848
     4
	<property name="ireport.encoding" value="UTF-8"/>
ivan@11848
     5
	<import value="net.sf.jasperreports.engine.*"/>
ivan@11848
     6
	<import value="java.util.*"/>
ivan@11848
     7
	<import value="net.sf.jasperreports.engine.data.*"/>
ivan@11848
     8
	<style name="default" vAlign="Middle" fontName="Bitstream Vera Sans" fontSize="10"/>
ivan@11848
     9
	<style name="Report_Title" fontName="Bitstream Vera Sans" fontSize="18"/>
ivan@11848
    10
	<style name="Report_Subtitle" forecolor="#555555" fontName="Bitstream Vera Sans" fontSize="14"/>
ivan@11848
    11
	<style name="Total_Field" mode="Opaque" forecolor="#000000" backcolor="#CCCCCC" vAlign="Middle"/>
ivan@11848
    12
	<style name="Detail_Header" mode="Opaque" forecolor="#FFFFFF" backcolor="#555555" vAlign="Middle"/>
ivan@11848
    13
	<style name="GroupHeader_DarkGray" mode="Opaque" forecolor="#FFFFFF" backcolor="#555555" vAlign="Middle" fontName="Bitstream Vera Sans" fontSize="14"/>
ivan@11848
    14
	<style name="GroupHeader_Gray" mode="Opaque" backcolor="#999999"/>
ivan@11848
    15
	<style name="Detail_Line" fontName="Bitstream Vera Sans" fontSize="9">
ivan@11848
    16
		<conditionalStyle>
ivan@11848
    17
			<conditionExpression><![CDATA[new Boolean($V{TAXNAME_COUNT}.intValue()%2==1)]]></conditionExpression>
ivan@11848
    18
			<style mode="Opaque" backcolor="#CCCCCC" fontName="Bitstream Vera Sans" fontSize="9"/>
ivan@11848
    19
		</conditionalStyle>
ivan@11848
    20
	</style>
ivan@11848
    21
	<style name="Total_Gray" mode="Opaque" forecolor="#000000" backcolor="#CCCCCC"/>
ivan@11848
    22
	<parameter name="ATTACH" class="java.lang.String" isForPrompting="false"/>
ivan@11848
    23
	<parameter name="BASE_WEB" class="java.lang.String" isForPrompting="false"/>
ivan@11848
    24
	<parameter name="BASE_DESIGN" class="java.lang.String" isForPrompting="false"/>
ivan@11848
    25
	<parameter name="LANGUAGE" class="java.lang.String" isForPrompting="false">
ivan@11848
    26
		<defaultValueExpression><![CDATA["en_US"]]></defaultValueExpression>
ivan@11848
    27
	</parameter>
ivan@11848
    28
	<parameter name="USER_CLIENT" class="java.lang.String" isForPrompting="false">
ivan@11848
    29
		<defaultValueExpression><![CDATA["'1000000'"]]></defaultValueExpression>
ivan@11848
    30
	</parameter>
ivan@11848
    31
	<parameter name="USER_ORG" class="java.lang.String" isForPrompting="false">
ivan@11848
    32
		<defaultValueExpression><![CDATA["'0','1000000'"]]></defaultValueExpression>
ivan@11848
    33
	</parameter>
ivan@11848
    34
	<parameter name="REPORT_TITLE" class="java.lang.String" isForPrompting="false">
ivan@11848
    35
		<defaultValueExpression><![CDATA["REPORT TITLE"]]></defaultValueExpression>
ivan@11848
    36
	</parameter>
ivan@11848
    37
	<parameter name="REPORT_SUBTITLE" class="java.lang.String" isForPrompting="false">
ivan@11848
    38
		<defaultValueExpression><![CDATA["Sale"]]></defaultValueExpression>
ivan@11848
    39
	</parameter>
ivan@11848
    40
	<parameter name="aux_client" class="java.lang.String" isForPrompting="false">
ivan@11848
    41
		<defaultValueExpression><![CDATA[$P{USER_CLIENT}.equals("") ? " " : " AND C_INVOICE.AD_CLIENT_ID IN ("+$P{USER_CLIENT}+") "]]></defaultValueExpression>
ivan@11848
    42
	</parameter>
ivan@11848
    43
	<parameter name="aux_org" class="java.lang.String" isForPrompting="false">
ivan@11848
    44
		<defaultValueExpression><![CDATA[$P{USER_ORG}.equals("") ? " " : " AND C_INVOICE.AD_ORG_ID IN ("+$P{USER_ORG}+") "]]></defaultValueExpression>
ivan@11848
    45
	</parameter>
ivan@11848
    46
	<parameter name="cCountryId" class="java.lang.String">
ivan@11848
    47
		<defaultValueExpression><![CDATA["100"]]></defaultValueExpression>
ivan@11848
    48
	</parameter>
ivan@11848
    49
	<parameter name="parDateFrom" class="java.util.Date"/>
ivan@11848
    50
	<parameter name="parDateTo" class="java.util.Date"/>
ivan@11848
    51
	<parameter name="ReportData" class="java.lang.String" isForPrompting="false">
ivan@11848
    52
		<defaultValueExpression><![CDATA[""]]></defaultValueExpression>
ivan@11848
    53
	</parameter>
ivan@11848
    54
	<parameter name="SALE" class="java.lang.String" isForPrompting="false"/>
ivan@11848
    55
	<parameter name="DETAIL" class="java.lang.String" isForPrompting="false"/>
ivan@11848
    56
	<parameter name="NUMBERFORMAT" class="java.text.DecimalFormat" isForPrompting="false"/>
ivan@11848
    57
	<parameter name="LOCALE" class="java.util.Locale" isForPrompting="false"/>
ivan@11848
    58
	<parameter name="PARAM_CURRENCY" class="java.lang.String" isForPrompting="false">
ivan@11848
    59
		<defaultValueExpression><![CDATA["102"]]></defaultValueExpression>
ivan@11848
    60
	</parameter>
ivan@11848
    61
	<queryString>
ivan@11848
    62
		<![CDATA[SELECT C_INVOICE.ISSOTRX AS SALES, 'Y' AS NATIONAL, C_INVOICE.DOCUMENTNO AS DOCUMENTNO, C_INVOICE.DATEINVOICED, C_BPARTNER.NAME AS BPARTNER, LTRIM(RTRIM(C_TAX.NAME, ' '), ' ') AS TAXNAME, 
harikrishnan@4429
    63
      SUM(CASE WHEN DOCBASETYPE IN ('ARC','APC') THEN -1 * (C_CURRENCY_CONVERT(C_INVOICETAX.TAXBASEAMT, C_INVOICE.C_CURRENCY_ID,$P{PARAM_CURRENCY}, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())), NULL, C_INVOICETAX.AD_CLIENT_ID, C_INVOICETAX.AD_ORG_ID))
harikrishnan@4429
    64
       ELSE (C_CURRENCY_CONVERT(C_INVOICETAX.TAXBASEAMT, C_INVOICE.C_CURRENCY_ID,$P{PARAM_CURRENCY}, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())), NULL, C_INVOICETAX.AD_CLIENT_ID, C_INVOICETAX.AD_ORG_ID)) END) AS TAXBASEAMT, 
harikrishnan@4429
    65
      SUM(CASE WHEN DOCBASETYPE IN ('ARC','APC') THEN -1 * (C_CURRENCY_CONVERT(C_INVOICETAX.TAXAMT, C_INVOICE.C_CURRENCY_ID, $P{PARAM_CURRENCY}, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())), NULL, C_INVOICETAX.AD_CLIENT_ID, C_INVOICETAX.AD_ORG_ID))
harikrishnan@4429
    66
       ELSE (C_CURRENCY_CONVERT(C_INVOICETAX.TAXAMT, C_INVOICE.C_CURRENCY_ID, $P{PARAM_CURRENCY}, TO_DATE(COALESCE(C_INVOICE.DATEINVOICED, NOW())), NULL, C_INVOICETAX.AD_CLIENT_ID, C_INVOICETAX.AD_ORG_ID)) END) AS TAXAMT, '' AS ADTREEID,C_CURRENCY_SYMBOL($P{PARAM_CURRENCY}, 0, 'Y') AS CURRENCY,'' AS SUM_AMOUNT,'' AS Tax_BASE
eduardo@1271
    67
      FROM C_TAX, C_INVOICETAX, C_INVOICE, C_BPARTNER_LOCATION, C_LOCATION, C_BPARTNER, C_DOCTYPE
carlos@0
    68
      WHERE C_TAX.C_TAX_ID=C_INVOICETAX.C_TAX_ID
carlos@0
    69
      AND C_INVOICETAX.C_INVOICE_ID=C_INVOICE.C_INVOICE_ID
carlos@0
    70
      AND C_INVOICE.C_BPARTNER_LOCATION_ID = C_BPARTNER_LOCATION.C_BPARTNER_LOCATION_ID
carlos@0
    71
      AND C_BPARTNER_LOCATION.C_LOCATION_ID = C_LOCATION.C_LOCATION_ID
carlos@0
    72
      AND C_INVOICE.C_BPARTNER_ID = C_BPARTNER.C_BPARTNER_ID
eduardo@1271
    73
      AND C_INVOICE.C_DOCTYPE_ID = C_DOCTYPE.C_DOCTYPE_ID
carlos@0
    74
      AND C_INVOICE.PROCESSED = 'Y'
carlos@0
    75
      AND C_INVOICE.ISACTIVE = 'Y'
carlos@0
    76
      AND C_INVOICE.ISSOTRX = 'Y'
carlos@0
    77
      AND C_LOCATION.C_COUNTRY_ID = $P{cCountryId}
carlos@0
    78
      AND C_INVOICE.DATEINVOICED >= $P{parDateFrom}
carlos@0
    79
      AND C_INVOICE.DATEINVOICED < $P{parDateTo}
jeneive@4948
    80
    AND 1=1 $P!{aux_client} 
harikrishnan@4429
    81
AND 1=1 $P!{aux_org}
carlos@0
    82
      AND 1=1 
carlos@0
    83
      GROUP BY C_INVOICE.DOCUMENTNO, C_INVOICE.DATEINVOICED, C_TAX.NAME, C_BPARTNER.NAME, C_INVOICE.ISSOTRX
carlos@0
    84
      HAVING SUM(C_INVOICETAX.TAXBASEAMT) <> 0
ivan@11848
    85
      ORDER BY C_TAX.NAME, C_INVOICE.DATEINVOICED]]>
ivan@11848
    86
	</queryString>
ivan@11848
    87
	<field name="SALES" class="java.lang.String"/>
ivan@11848
    88
	<field name="NATIONAL" class="java.lang.String"/>
ivan@11848
    89
	<field name="DOCUMENTNO" class="java.lang.String"/>
ivan@11848
    90
	<field name="DATEINVOICED" class="java.sql.Timestamp"/>
ivan@11848
    91
	<field name="BPARTNER" class="java.lang.String"/>
ivan@11848
    92
	<field name="TAXNAME" class="java.lang.String"/>
ivan@11848
    93
	<field name="TAXBASEAMT" class="java.math.BigDecimal"/>
ivan@11848
    94
	<field name="TAXAMT" class="java.math.BigDecimal"/>
ivan@11848
    95
	<field name="ADTREEID" class="java.lang.String"/>
ivan@11848
    96
	<field name="CURRENCY" class="java.lang.String"/>
ivan@11848
    97
	<field name="SUM_AMOUNT" class="java.lang.String"/>
ivan@11848
    98
	<field name="Tax_BASE" class="java.lang.String"/>
ivan@11848
    99
	<variable name="sumTaxBaseAmt" class="java.math.BigDecimal" resetType="Group" resetGroup="TAXNAME" calculation="Sum">
ivan@11848
   100
		<variableExpression><![CDATA[$F{TAXBASEAMT}]]></variableExpression>
ivan@11848
   101
	</variable>
ivan@11848
   102
	<variable name="sumImport" class="java.math.BigDecimal" resetType="Group" resetGroup="TAXNAME" calculation="Sum">
ivan@11848
   103
		<variableExpression><![CDATA[$F{TAXAMT}]]></variableExpression>
ivan@11848
   104
	</variable>
ivan@11848
   105
	<variable name="sumAmount" class="java.lang.String">
ivan@11848
   106
		<variableExpression><![CDATA[$V{sumImport}.toString()]]></variableExpression>
ivan@11848
   107
	</variable>
ivan@11848
   108
	<group name="TAXNAME">
ivan@11848
   109
		<groupExpression><![CDATA[$F{TAXNAME}]]></groupExpression>
ivan@11848
   110
		<groupHeader>
ivan@11848
   111
			<band height="44" splitType="Stretch">
ivan@11848
   112
				<staticText>
ivan@11848
   113
					<reportElement key="staticText" style="GroupHeader_DarkGray" x="1" y="0" width="100" height="20"/>
ivan@11848
   114
					<box leftPadding="5">
ivan@11848
   115
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   116
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   117
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   118
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   119
					</box>
ivan@11848
   120
					<textElement>
ivan@11848
   121
						<font pdfFontName="Helvetica"/>
ivan@11848
   122
					</textElement>
ivan@11848
   123
					<text><![CDATA[Tax Type]]></text>
ivan@11848
   124
				</staticText>
ivan@11848
   125
				<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
ivan@11848
   126
					<reportElement key="textField" style="GroupHeader_DarkGray" x="101" y="0" width="503" height="20"/>
ivan@11848
   127
					<box leftPadding="5">
ivan@11848
   128
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   129
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   130
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   131
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   132
					</box>
ivan@11848
   133
					<textElement>
ivan@11848
   134
						<font pdfFontName="Helvetica"/>
ivan@11848
   135
					</textElement>
ivan@11848
   136
					<textFieldExpression class="java.lang.String"><![CDATA[$F{TAXNAME}]]></textFieldExpression>
ivan@11848
   137
				</textField>
ivan@11848
   138
				<line>
ivan@11848
   139
					<reportElement key="line-2" stretchType="RelativeToBandHeight" x="0" y="1" width="1" height="43" forecolor="#555555"/>
ivan@11848
   140
				</line>
ivan@11848
   141
				<line>
ivan@11848
   142
					<reportElement key="line-3" stretchType="RelativeToBandHeight" x="604" y="0" width="1" height="43" forecolor="#555555"/>
ivan@11848
   143
				</line>
ivan@11848
   144
				<staticText>
ivan@11848
   145
					<reportElement key="element-90" style="Detail_Header" x="10" y="28" width="90" height="16">
ivan@11848
   146
						<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
ivan@11848
   147
					</reportElement>
ivan@11848
   148
					<box leftPadding="5">
ivan@11848
   149
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   150
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   151
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   152
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   153
					</box>
ivan@11848
   154
					<textElement/>
ivan@11848
   155
					<text><![CDATA[Invoice]]></text>
ivan@11848
   156
				</staticText>
ivan@11848
   157
				<staticText>
ivan@11848
   158
					<reportElement key="element-90" style="Detail_Header" x="100" y="28" width="70" height="16">
ivan@11848
   159
						<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
ivan@11848
   160
					</reportElement>
ivan@11848
   161
					<box leftPadding="5">
ivan@11848
   162
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   163
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   164
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   165
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   166
					</box>
ivan@11848
   167
					<textElement/>
ivan@11848
   168
					<text><![CDATA[Date]]></text>
ivan@11848
   169
				</staticText>
ivan@11848
   170
				<staticText>
ivan@11848
   171
					<reportElement key="element-90" style="Detail_Header" x="170" y="28" width="165" height="16">
ivan@11848
   172
						<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
ivan@11848
   173
					</reportElement>
ivan@11848
   174
					<box leftPadding="5">
ivan@11848
   175
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   176
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   177
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   178
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   179
					</box>
ivan@11848
   180
					<textElement/>
ivan@11848
   181
					<text><![CDATA[Business Partner]]></text>
ivan@11848
   182
				</staticText>
ivan@11848
   183
				<staticText>
ivan@11848
   184
					<reportElement key="element-90" style="Detail_Header" x="335" y="28" width="117" height="16"/>
ivan@11848
   185
					<box leftPadding="5">
ivan@11848
   186
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   187
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   188
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   189
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   190
					</box>
ivan@11848
   191
					<textElement textAlignment="Right"/>
ivan@11848
   192
					<text><![CDATA[Taxable Base]]></text>
ivan@11848
   193
				</staticText>
ivan@11848
   194
				<staticText>
ivan@11848
   195
					<reportElement key="element-90" style="Detail_Header" x="452" y="28" width="114" height="16"/>
ivan@11848
   196
					<box leftPadding="5">
ivan@11848
   197
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   198
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   199
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   200
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   201
					</box>
ivan@11848
   202
					<textElement textAlignment="Right"/>
ivan@11848
   203
					<text><![CDATA[Amount]]></text>
ivan@11848
   204
				</staticText>
ivan@11848
   205
			</band>
ivan@11848
   206
		</groupHeader>
ivan@11848
   207
		<groupFooter>
ivan@11848
   208
			<band height="25" splitType="Stretch">
ivan@11848
   209
				<line>
ivan@11848
   210
					<reportElement key="line-32" stretchType="RelativeToBandHeight" x="0" y="0" width="1" height="20" forecolor="#555555"/>
ivan@11848
   211
				</line>
ivan@11848
   212
				<line>
ivan@11848
   213
					<reportElement key="line-33" stretchType="RelativeToBandHeight" x="604" y="0" width="1" height="20" forecolor="#555555"/>
ivan@11848
   214
				</line>
ivan@11848
   215
				<line>
ivan@11848
   216
					<reportElement key="line-34" x="0" y="20" width="603" height="1" forecolor="#555555"/>
ivan@11848
   217
				</line>
ivan@11848
   218
				<staticText>
ivan@11848
   219
					<reportElement key="staticText-4" style="default" x="199" y="0" width="90" height="16"/>
ivan@11848
   220
					<box>
ivan@11848
   221
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   222
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   223
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   224
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   225
					</box>
ivan@11848
   226
					<textElement textAlignment="Right">
ivan@11848
   227
						<font fontName="Bitstream Vera Sans"/>
ivan@11848
   228
					</textElement>
ivan@11848
   229
					<text><![CDATA[Total:]]></text>
ivan@11848
   230
				</staticText>
ivan@11848
   231
				<textField isBlankWhenNull="false">
ivan@11848
   232
					<reportElement key="textField" style="Total_Field" x="294" y="0" width="33" height="16"/>
ivan@11848
   233
					<box leftPadding="5">
ivan@11848
   234
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   235
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   236
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   237
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   238
					</box>
ivan@11848
   239
					<textElement verticalAlignment="Middle"/>
ivan@11848
   240
					<textFieldExpression class="java.lang.Integer"><![CDATA[$V{TAXNAME_COUNT}]]></textFieldExpression>
ivan@11848
   241
				</textField>
ivan@11848
   242
				<line>
ivan@11848
   243
					<reportElement key="line-37" x="10" y="0" width="510" height="1" forecolor="#666666"/>
ivan@11848
   244
				</line>
ivan@11848
   245
				<textField isBlankWhenNull="false">
ivan@11848
   246
					<reportElement key="textField" style="Total_Field" x="452" y="0" width="114" height="17"/>
ivan@11848
   247
					<box leftPadding="5">
ivan@11848
   248
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   249
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   250
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   251
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   252
					</box>
ivan@11848
   253
					<textElement textAlignment="Right"/>
ivan@11848
   254
					<textFieldExpression class="java.lang.String"><![CDATA[($V{sumImport}!=null)?$P{NUMBERFORMAT}.format($V{sumImport})+$F{CURRENCY}:new String(" ")]]></textFieldExpression>
ivan@11848
   255
				</textField>
ivan@11848
   256
				<textField isBlankWhenNull="false">
ivan@11848
   257
					<reportElement key="textField" style="Total_Field" x="335" y="0" width="117" height="16"/>
ivan@11848
   258
					<box leftPadding="5">
ivan@11848
   259
						<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   260
						<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   261
						<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   262
						<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   263
					</box>
ivan@11848
   264
					<textElement textAlignment="Right" verticalAlignment="Middle"/>
ivan@11848
   265
					<textFieldExpression class="java.lang.String"><![CDATA[($V{sumTaxBaseAmt}!=null)?$P{NUMBERFORMAT}.format($V{sumTaxBaseAmt})+$F{CURRENCY}:new String(" ")]]></textFieldExpression>
ivan@11848
   266
				</textField>
ivan@11848
   267
			</band>
ivan@11848
   268
		</groupFooter>
ivan@11848
   269
	</group>
ivan@11848
   270
	<background>
ivan@11848
   271
		<band splitType="Stretch"/>
ivan@11848
   272
	</background>
ivan@11848
   273
	<title>
ivan@11848
   274
		<band splitType="Stretch"/>
ivan@11848
   275
	</title>
ivan@11848
   276
	<pageHeader>
ivan@11848
   277
		<band height="20" splitType="Stretch">
ivan@11848
   278
			<textField isStretchWithOverflow="true" isBlankWhenNull="false">
ivan@11848
   279
				<reportElement key="textField" style="Report_Subtitle" x="1" y="0" width="602" height="20"/>
ivan@11848
   280
				<box leftPadding="5">
ivan@11848
   281
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   282
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   283
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   284
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   285
				</box>
ivan@11848
   286
				<textElement/>
ivan@11848
   287
				<textFieldExpression class="java.lang.String"><![CDATA[$P{SALE}]]></textFieldExpression>
ivan@11848
   288
			</textField>
ivan@11848
   289
		</band>
ivan@11848
   290
	</pageHeader>
ivan@11848
   291
	<columnHeader>
ivan@11848
   292
		<band splitType="Stretch"/>
ivan@11848
   293
	</columnHeader>
ivan@11848
   294
	<detail>
ivan@11848
   295
		<band height="14" splitType="Stretch">
ivan@11848
   296
			<printWhenExpression><![CDATA[new Boolean($P{DETAIL}.equals("Y"))]]></printWhenExpression>
ivan@11848
   297
			<line>
ivan@11848
   298
				<reportElement key="line-16" stretchType="RelativeToBandHeight" x="603" y="-6" width="1" height="14" forecolor="#555555"/>
ivan@11848
   299
			</line>
ivan@11848
   300
			<line>
ivan@11848
   301
				<reportElement key="line-17" stretchType="RelativeToBandHeight" x="0" y="0" width="1" height="14" forecolor="#555555"/>
ivan@11848
   302
			</line>
ivan@11848
   303
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
ivan@11848
   304
				<reportElement key="textField" style="Detail_Line" x="10" y="0" width="90" height="14"/>
ivan@11848
   305
				<box leftPadding="2" rightPadding="2">
ivan@11848
   306
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   307
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   308
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   309
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   310
				</box>
ivan@11848
   311
				<textElement verticalAlignment="Middle"/>
ivan@11848
   312
				<textFieldExpression class="java.lang.String"><![CDATA[$F{DOCUMENTNO}]]></textFieldExpression>
ivan@11848
   313
			</textField>
ivan@11848
   314
			<textField isStretchWithOverflow="true" isBlankWhenNull="true">
ivan@11848
   315
				<reportElement key="textField" style="Detail_Line" x="100" y="0" width="70" height="14"/>
ivan@11848
   316
				<box leftPadding="2" rightPadding="2">
ivan@11848
   317
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   318
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   319
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   320
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   321
				</box>
ivan@11848
   322
				<textElement verticalAlignment="Middle"/>
ivan@11848
   323
				<textFieldExpression class="java.sql.Timestamp"><![CDATA[$F{DATEINVOICED}]]></textFieldExpression>
ivan@11848
   324
			</textField>
ivan@11848
   325
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true">
ivan@11848
   326
				<reportElement key="textField" style="Detail_Line" x="170" y="0" width="165" height="14"/>
ivan@11848
   327
				<box leftPadding="2" rightPadding="2">
ivan@11848
   328
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   329
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   330
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   331
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   332
				</box>
ivan@11848
   333
				<textElement verticalAlignment="Middle"/>
ivan@11848
   334
				<textFieldExpression class="java.lang.String"><![CDATA[$F{BPARTNER}]]></textFieldExpression>
ivan@11848
   335
			</textField>
ivan@11848
   336
			<textField pattern="" isBlankWhenNull="false">
ivan@11848
   337
				<reportElement key="textField" style="Detail_Line" x="335" y="0" width="117" height="14"/>
ivan@11848
   338
				<box leftPadding="2" rightPadding="2">
ivan@11848
   339
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   340
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   341
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   342
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   343
				</box>
ivan@11848
   344
				<textElement textAlignment="Right" verticalAlignment="Middle">
ivan@11848
   345
					<font size="9"/>
ivan@11848
   346
				</textElement>
ivan@11848
   347
				<textFieldExpression class="java.lang.String"><![CDATA[($F{TAXBASEAMT}!=null)?$P{NUMBERFORMAT}.format($F{TAXBASEAMT})+$F{CURRENCY}:new String(" ")]]></textFieldExpression>
ivan@11848
   348
			</textField>
ivan@11848
   349
			<textField pattern="" isBlankWhenNull="false">
ivan@11848
   350
				<reportElement key="textField" style="Detail_Line" x="452" y="0" width="114" height="14"/>
ivan@11848
   351
				<box leftPadding="2" rightPadding="2">
ivan@11848
   352
					<topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   353
					<leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   354
					<bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   355
					<rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/>
ivan@11848
   356
				</box>
ivan@11848
   357
				<textElement textAlignment="Right" verticalAlignment="Middle"/>
ivan@11848
   358
				<textFieldExpression class="java.lang.String"><![CDATA[($F{TAXAMT}!=null)?$P{NUMBERFORMAT}.format($F{TAXAMT})+$F{CURRENCY}:new String(" ")]]></textFieldExpression>
ivan@11848
   359
			</textField>
ivan@11848
   360
		</band>
ivan@11848
   361
	</detail>
ivan@11848
   362
	<columnFooter>
ivan@11848
   363
		<band splitType="Stretch"/>
ivan@11848
   364
	</columnFooter>
ivan@11848
   365
	<pageFooter>
ivan@11848
   366
		<band splitType="Stretch"/>
ivan@11848
   367
	</pageFooter>
ivan@11848
   368
	<summary>
ivan@11848
   369
		<band splitType="Stretch"/>
ivan@11848
   370
	</summary>
ivan@11848
   371
</jasperReport>