src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger_Previous.jrxml
author David Baz Fayos <david.baz@openbravo.com>
Tue, 27 May 2008 15:26:10 +0000
changeset 1044 8691bbc94032
parent 726 dac2a1486bd3
child 1605 8a0fe0193bef
permissions -rw-r--r--
Removed old frame parameter of windowTableId
juanpablo@726
     1
<?xml version="1.0" encoding="UTF-8"  ?>
juanpablo@726
     2
<!-- Created with iReport - A designer for JasperReports -->
juanpablo@726
     3
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
juanpablo@726
     4
<jasperReport
juanpablo@726
     5
		 name="ReportGeneralLedger_Previous"
juanpablo@726
     6
		 columnCount="1"
juanpablo@726
     7
		 printOrder="Vertical"
juanpablo@726
     8
		 orientation="Portrait"
juanpablo@726
     9
		 pageWidth="594"
juanpablo@726
    10
		 pageHeight="802"
juanpablo@726
    11
		 columnWidth="594"
juanpablo@726
    12
		 columnSpacing="0"
juanpablo@726
    13
		 leftMargin="0"
juanpablo@726
    14
		 rightMargin="0"
juanpablo@726
    15
		 topMargin="0"
juanpablo@726
    16
		 bottomMargin="0"
juanpablo@726
    17
		 whenNoDataType="NoPages"
juanpablo@726
    18
		 isTitleNewPage="false"
juanpablo@726
    19
		 isSummaryNewPage="false">
juanpablo@726
    20
	<property name="ireport.scriptlethandling" value="0" />
juanpablo@726
    21
	<property name="ireport.encoding" value="UTF-8" />
juanpablo@726
    22
	<import value="java.util.*" />
juanpablo@726
    23
	<import value="net.sf.jasperreports.engine.*" />
juanpablo@726
    24
	<import value="net.sf.jasperreports.engine.data.*" />
juanpablo@726
    25
juanpablo@726
    26
	<style 
juanpablo@726
    27
		name="default"
juanpablo@726
    28
		isDefault="false"
juanpablo@726
    29
		vAlign="Middle"
juanpablo@726
    30
		fontName="Bitstream Vera Sans"
juanpablo@726
    31
		fontSize="11"
juanpablo@726
    32
	/>
juanpablo@726
    33
	<style 
juanpablo@726
    34
		name="Report_Title"
juanpablo@726
    35
		isDefault="false"
juanpablo@726
    36
		leftPadding="5"
juanpablo@726
    37
		fontName="Bitstream Vera Sans"
juanpablo@726
    38
		fontSize="18"
juanpablo@726
    39
	/>
juanpablo@726
    40
	<style 
juanpablo@726
    41
		name="Report_Subtitle"
juanpablo@726
    42
		isDefault="false"
juanpablo@726
    43
		forecolor="#555555"
juanpablo@726
    44
		leftPadding="5"
juanpablo@726
    45
		fontName="Bitstream Vera Sans"
juanpablo@726
    46
		fontSize="14"
juanpablo@726
    47
	/>
juanpablo@726
    48
	<style 
juanpablo@726
    49
		name="Total_Field"
juanpablo@726
    50
		isDefault="false"
juanpablo@726
    51
		mode="Opaque"
juanpablo@726
    52
		forecolor="#000000"
juanpablo@726
    53
		backcolor="#CCCCCC"
juanpablo@726
    54
		vAlign="Middle"
juanpablo@726
    55
		leftPadding="5"
juanpablo@726
    56
		fontName="Bitstream Vera Sans"
juanpablo@726
    57
		fontSize="11"
juanpablo@726
    58
		isBold="true"
juanpablo@726
    59
	/>
juanpablo@726
    60
	<style 
juanpablo@726
    61
		name="Detail_Header"
juanpablo@726
    62
		isDefault="false"
juanpablo@726
    63
		mode="Opaque"
juanpablo@726
    64
		forecolor="#FFFFFF"
juanpablo@726
    65
		backcolor="#5D5D5D"
juanpablo@726
    66
		vAlign="Middle"
juanpablo@726
    67
		leftBorder="1Point"
juanpablo@726
    68
		leftBorderColor="#FFFFFF"
juanpablo@726
    69
		leftPadding="5"
juanpablo@726
    70
		rightBorder="1Point"
juanpablo@726
    71
		rightBorderColor="#FFFFFF"
juanpablo@726
    72
		fontName="Bitstream Vera Sans"
juanpablo@726
    73
		fontSize="11"
juanpablo@726
    74
		isBold="true"
juanpablo@726
    75
	/>
juanpablo@726
    76
	<style 
juanpablo@726
    77
		name="GroupHeader_DarkGray"
juanpablo@726
    78
		isDefault="false"
juanpablo@726
    79
		mode="Opaque"
juanpablo@726
    80
		forecolor="#FFFFFF"
juanpablo@726
    81
		backcolor="#555555"
juanpablo@726
    82
		vAlign="Middle"
juanpablo@726
    83
		leftPadding="5"
juanpablo@726
    84
		fontName="Bitstream Vera Sans"
juanpablo@726
    85
		fontSize="18"
juanpablo@726
    86
		isBold="true"
juanpablo@726
    87
	/>
juanpablo@726
    88
	<style 
juanpablo@726
    89
		name="GroupHeader_Gray"
juanpablo@726
    90
		isDefault="false"
juanpablo@726
    91
		mode="Opaque"
juanpablo@726
    92
		backcolor="#999999"
juanpablo@726
    93
	/>
juanpablo@726
    94
	<style 
juanpablo@726
    95
		name="Detail_Line"
juanpablo@726
    96
		isDefault="false"
juanpablo@726
    97
		fontName="Bitstream Vera Sans"
juanpablo@726
    98
		fontSize="11"
juanpablo@726
    99
	>
juanpablo@726
   100
juanpablo@726
   101
		<conditionalStyle>
juanpablo@726
   102
			<conditionExpression><![CDATA[new Boolean($V{REPORT_COUNT}.intValue()%2==1)]]></conditionExpression>
juanpablo@726
   103
			<style 
juanpablo@726
   104
				name="Detail_Line"
juanpablo@726
   105
				isDefault="false"
juanpablo@726
   106
				mode="Opaque"
juanpablo@726
   107
				backcolor="#CCCCCC"
juanpablo@726
   108
			/>
juanpablo@726
   109
		</conditionalStyle>
juanpablo@726
   110
	</style>
juanpablo@726
   111
	<style 
juanpablo@726
   112
		name="Total_Gray"
juanpablo@726
   113
		isDefault="false"
juanpablo@726
   114
		mode="Opaque"
juanpablo@726
   115
		forecolor="#000000"
juanpablo@726
   116
		backcolor="#CCCCCC"
juanpablo@726
   117
	/>
juanpablo@726
   118
	<style 
juanpablo@726
   119
		name="Report_Data_Label"
juanpablo@726
   120
		isDefault="false"
juanpablo@726
   121
		fontName="Bitstream Vera Sans"
juanpablo@726
   122
		fontSize="11"
juanpablo@726
   123
		isBold="true"
juanpablo@726
   124
	/>
juanpablo@726
   125
	<style 
juanpablo@726
   126
		name="Report_Data_Field"
juanpablo@726
   127
		isDefault="false"
juanpablo@726
   128
		fontName="Bitstream Vera Sans"
juanpablo@726
   129
		fontSize="11"
juanpablo@726
   130
		isBold="false"
juanpablo@726
   131
	/>
juanpablo@726
   132
	<style 
juanpablo@726
   133
		name="Report_Footer"
juanpablo@726
   134
		isDefault="true"
juanpablo@726
   135
		fontName="Bitstream Vera Sans"
juanpablo@726
   136
		fontSize="11"
juanpablo@726
   137
	/>
juanpablo@726
   138
	<style 
juanpablo@726
   139
		name="Group_Data_Label"
juanpablo@726
   140
		isDefault="false"
juanpablo@726
   141
		fontName="Bitstream Vera Sans"
juanpablo@726
   142
		fontSize="14"
juanpablo@726
   143
		isBold="true"
juanpablo@726
   144
	/>
juanpablo@726
   145
	<style 
juanpablo@726
   146
		name="Group_Data_Field"
juanpablo@726
   147
		isDefault="false"
juanpablo@726
   148
		fontName="Bitstream Vera Sans"
juanpablo@726
   149
		fontSize="14"
juanpablo@726
   150
	/>
juanpablo@726
   151
	<style 
juanpablo@726
   152
		name="Detail_Data_Label"
juanpablo@726
   153
		isDefault="false"
juanpablo@726
   154
		mode="Opaque"
juanpablo@726
   155
		backcolor="#CCCCCC"
juanpablo@726
   156
		fontName="Bitstream Vera Sans"
juanpablo@726
   157
		fontSize="11"
juanpablo@726
   158
		isBold="true"
juanpablo@726
   159
	/>
juanpablo@726
   160
	<style 
juanpablo@726
   161
		name="Detail_Data_Field"
juanpablo@726
   162
		isDefault="false"
juanpablo@726
   163
		mode="Opaque"
juanpablo@726
   164
		backcolor="#CCCCCC"
juanpablo@726
   165
		fontName="Bitstream Vera Sans"
juanpablo@726
   166
		fontSize="11"
juanpablo@726
   167
	/>
juanpablo@726
   168
	<style 
juanpablo@726
   169
		name="Group_Footer"
juanpablo@726
   170
		isDefault="false"
juanpablo@726
   171
		fontName="Bitstream Vera Sans"
juanpablo@726
   172
		fontSize="11"
juanpablo@726
   173
		isBold="true"
juanpablo@726
   174
	/>
juanpablo@726
   175
juanpablo@726
   176
	<parameter name="ATTACH" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   177
	<parameter name="BASE_WEB" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   178
	<parameter name="BASE_DESIGN" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   179
	<parameter name="LANGUAGE" isForPrompting="false" class="java.lang.String">
juanpablo@726
   180
		<defaultValueExpression ><![CDATA["en_US"]]></defaultValueExpression>
juanpablo@726
   181
	</parameter>
juanpablo@726
   182
	<parameter name="USER_CLIENT" isForPrompting="false" class="java.lang.String">
juanpablo@726
   183
		<defaultValueExpression ><![CDATA["(1000000)"]]></defaultValueExpression>
juanpablo@726
   184
	</parameter>
juanpablo@726
   185
	<parameter name="USER_ORG" isForPrompting="false" class="java.lang.String">
juanpablo@726
   186
		<defaultValueExpression ><![CDATA["(0)"]]></defaultValueExpression>
juanpablo@726
   187
	</parameter>
juanpablo@726
   188
	<parameter name="Title" isForPrompting="false" class="java.lang.String">
juanpablo@726
   189
		<defaultValueExpression ><![CDATA["REPORT TITLE"]]></defaultValueExpression>
juanpablo@726
   190
	</parameter>
juanpablo@726
   191
	<parameter name="REPORT_SUBTITLE" isForPrompting="false" class="java.lang.String"/>
juanpablo@726
   192
	<parameter name="ReportData" isForPrompting="false" class="java.lang.String">
juanpablo@726
   193
		<defaultValueExpression ><![CDATA[""]]></defaultValueExpression>
juanpablo@726
   194
	</parameter>
juanpablo@726
   195
	<parameter name="AcctID" isForPrompting="false" class="java.math.BigDecimal"/>
juanpablo@726
   196
	<parameter name="Date" isForPrompting="false" class="java.util.Date"/>
juanpablo@726
   197
	<parameter name="Partner" isForPrompting="false" class="java.math.BigDecimal"/>
juanpablo@726
   198
	<parameter name="ShowPartner" isForPrompting="false" class="java.lang.Boolean">
juanpablo@726
   199
		<defaultValueExpression ><![CDATA[new Boolean(true)]]></defaultValueExpression>
juanpablo@726
   200
	</parameter>
juanpablo@726
   201
	<parameter name="auxPartner" isForPrompting="false" class="java.lang.String">
juanpablo@726
   202
		<defaultValueExpression ><![CDATA[$P{ShowPartner}.booleanValue()?" and c_bpartner_id="+$P{Partner}:""]]></defaultValueExpression>
juanpablo@726
   203
	</parameter>
juanpablo@726
   204
	<parameter name="NUMBERFORMAT" isForPrompting="false" class="java.text.DecimalFormat"/>
juanpablo@726
   205
	<parameter name="LOCALE" isForPrompting="false" class="java.util.Locale"/>
carlos@0
   206
	<queryString><![CDATA[SELECT COALESCE(SUM(AMTACCTDR),0) AS TOTALDR, COALESCE(SUM(AMTACCTCR),0) AS TOTALCR, 
carlos@0
   207
      COALESCE(SUM(AMTACCTDR-AMTACCTCR),0) AS TOTAL
carlos@0
   208
      FROM FACT_ACCT
carlos@0
   209
where FACT_ACCT.ACCOUNT_ID = $P{AcctID}
carlos@0
   210
and dateacct<$P{Date}
juanpablo@726
   211
$P!{auxPartner}]]></queryString>
juanpablo@726
   212
juanpablo@726
   213
	<field name="TOTALDR" class="java.math.BigDecimal"/>
juanpablo@726
   214
	<field name="TOTALCR" class="java.math.BigDecimal"/>
juanpablo@726
   215
	<field name="TOTAL" class="java.math.BigDecimal"/>
juanpablo@726
   216
juanpablo@726
   217
	<variable name="DetailFieldTotal" class="java.lang.String" resetType="Report" calculation="Nothing">
juanpablo@726
   218
	</variable>
juanpablo@726
   219
	<variable name="auxPartner" class="java.lang.String" resetType="None" calculation="Nothing">
juanpablo@726
   220
		<variableExpression><![CDATA[$P{ShowPartner}.booleanValue()?" and c_bpartner_id="+$P{Partner}:""]]></variableExpression>
juanpablo@726
   221
	</variable>
juanpablo@726
   222
		<background>
juanpablo@726
   223
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   224
			</band>
juanpablo@726
   225
		</background>
juanpablo@726
   226
		<title>
juanpablo@726
   227
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   228
			</band>
juanpablo@726
   229
		</title>
juanpablo@726
   230
		<pageHeader>
juanpablo@726
   231
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   232
			</band>
juanpablo@726
   233
		</pageHeader>
juanpablo@726
   234
		<columnHeader>
juanpablo@726
   235
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   236
			</band>
juanpablo@726
   237
		</columnHeader>
juanpablo@726
   238
		<detail>
juanpablo@726
   239
			<band height="16"  isSplitAllowed="true" >
juanpablo@726
   240
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   241
					<reportElement
carlos@0
   242
						style="Total_Gray"
carlos@0
   243
						x="18"
carlos@0
   244
						y="0"
carlos@0
   245
						width="516"
carlos@0
   246
						height="16"
juanpablo@726
   247
						key="staticText-1"/>
juanpablo@726
   248
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   249
					<textElement>
juanpablo@726
   250
						<font pdfFontName="Helvetica-Bold" isBold="true"/>
juanpablo@726
   251
					</textElement>
juanpablo@726
   252
				<textFieldExpression   class="java.lang.String"><![CDATA[$P{Title}]]></textFieldExpression>
juanpablo@726
   253
				</textField>
juanpablo@726
   254
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   255
					<reportElement
carlos@0
   256
						style="Detail_Data_Field"
carlos@0
   257
						x="109"
carlos@0
   258
						y="0"
carlos@0
   259
						width="56"
carlos@0
   260
						height="16"
juanpablo@726
   261
						key="textField"/>
juanpablo@726
   262
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   263
					<textElement textAlignment="Right" verticalAlignment="Middle">
juanpablo@726
   264
						<font fontName="Times-Roman" size="10"/>
juanpablo@726
   265
					</textElement>
carlos@0
   266
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{TOTALDR}!=null)?$P{NUMBERFORMAT}.format($F{TOTALDR}):new String(" ")
juanpablo@726
   267
]]></textFieldExpression>
juanpablo@726
   268
				</textField>
juanpablo@726
   269
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   270
					<reportElement
carlos@0
   271
						style="Detail_Data_Field"
carlos@0
   272
						x="165"
carlos@0
   273
						y="0"
carlos@0
   274
						width="56"
carlos@0
   275
						height="16"
juanpablo@726
   276
						key="textField"/>
juanpablo@726
   277
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   278
					<textElement textAlignment="Right" verticalAlignment="Middle">
juanpablo@726
   279
						<font fontName="Times-Roman" size="10"/>
juanpablo@726
   280
					</textElement>
carlos@0
   281
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{TOTALCR}!=null)?$P{NUMBERFORMAT}.format($F{TOTALCR}):new String(" ")
juanpablo@726
   282
]]></textFieldExpression>
juanpablo@726
   283
				</textField>
juanpablo@726
   284
				<textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
carlos@0
   285
					<reportElement
carlos@0
   286
						style="Detail_Data_Field"
carlos@0
   287
						x="221"
carlos@0
   288
						y="0"
carlos@0
   289
						width="56"
carlos@0
   290
						height="16"
juanpablo@726
   291
						key="textField"/>
juanpablo@726
   292
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" leftPadding="2" rightBorder="None" rightBorderColor="#000000" rightPadding="2" bottomBorder="None" bottomBorderColor="#000000"/>
juanpablo@726
   293
					<textElement textAlignment="Right" verticalAlignment="Middle">
juanpablo@726
   294
						<font fontName="Times-Roman" size="10"/>
juanpablo@726
   295
					</textElement>
carlos@0
   296
				<textFieldExpression   class="java.lang.String"><![CDATA[($F{TOTAL}!=null)?$P{NUMBERFORMAT}.format($F{TOTAL}):new String(" ")
juanpablo@726
   297
]]></textFieldExpression>
juanpablo@726
   298
				</textField>
juanpablo@726
   299
			</band>
juanpablo@726
   300
		</detail>
juanpablo@726
   301
		<columnFooter>
juanpablo@726
   302
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   303
			</band>
juanpablo@726
   304
		</columnFooter>
juanpablo@726
   305
		<pageFooter>
juanpablo@726
   306
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   307
			</band>
juanpablo@726
   308
		</pageFooter>
juanpablo@726
   309
		<summary>
juanpablo@726
   310
			<band height="0"  isSplitAllowed="true" >
juanpablo@726
   311
			</band>
juanpablo@726
   312
		</summary>
juanpablo@726
   313
</jasperReport>