Commit 0f6b2616 by Volkan Uygun

refs #3482 Raporun mastır sorgusu değişti, içindeki detay bölümleri yeniden ayarlandı.

parent f2993264
......@@ -21,7 +21,7 @@
<defaultValueExpression><![CDATA[new Date("1900/01/01")]]></defaultValueExpression>
</parameter>
<parameter name="pEDate" class="java.util.Date">
<defaultValueExpression><![CDATA[new Date("9999/01/01")]]></defaultValueExpression>
<defaultValueExpression><![CDATA[new Date("2100/01/01")]]></defaultValueExpression>
</parameter>
<parameter name="pUser" class="java.lang.String">
<defaultValueExpression><![CDATA[null]]></defaultValueExpression>
......@@ -40,51 +40,11 @@
</parameter>
<parameter name="pProductLabel" class="java.lang.String" isForPrompting="false"/>
<queryString>
<![CDATA[select acc.name as KASA, acc.CODE, acct.CCY, sum(CCYVAL * case when acct.finance_action = 1 then -1 else 1 end ) as TOTAL
from ACCOUNT_TXN acct
inner join ACCOUNT acc on acc.id = acct.account_id
where ( lower(acct.code) like concat('%',lower($P{pCode})) )
and ( ( $P{pAccount} = 0 ) or ( acct.ACCOUNT_ID = $P{pAccount} ) )
and ( acct.TXN_DATE >= $P{pBDate} and acct.TXN_DATE <= $P{pEDate} )
and ( ( $P{pWorkBunchId} is null ) or ( acct.WORK_BUNCH_ID = $P{pWorkBunchId} ) )
group by acc.name, acc.code, acct.ccy
order by acc.code]]>
<![CDATA[select count(id) as FATSAYI
from FINANCE_TXN txn
where( txn.TXN_DATE >= $P{pBDate} and txn.TXN_DATE <= $P{pEDate} )]]>
</queryString>
<field name="KASA" class="java.lang.String"/>
<field name="CODE" class="java.lang.String"/>
<field name="CCY" class="java.lang.String"/>
<field name="TOTAL" class="java.math.BigDecimal"/>
<variable name="sumTotal" class="java.math.BigDecimal" resetType="Group" resetGroup="CCY" calculation="Sum">
<variableExpression><![CDATA[$F{TOTAL}]]></variableExpression>
<initialValueExpression><![CDATA[new BigDecimal(0)]]></initialValueExpression>
</variable>
<group name="KASA">
<groupExpression><![CDATA[$F{KASA}]]></groupExpression>
<groupHeader>
<band splitType="Stretch"/>
</groupHeader>
<groupFooter>
<band splitType="Stretch"/>
</groupFooter>
</group>
<group name="CODE">
<groupExpression><![CDATA[$F{CODE}]]></groupExpression>
<groupHeader>
<band splitType="Stretch"/>
</groupHeader>
<groupFooter>
<band splitType="Stretch"/>
</groupFooter>
</group>
<group name="CCY">
<groupExpression><![CDATA[$F{CCY}]]></groupExpression>
<groupHeader>
<band splitType="Stretch"/>
</groupHeader>
<groupFooter>
<band splitType="Stretch"/>
</groupFooter>
</group>
<field name="FATSAYI" class="java.lang.Long"/>
<background>
<band splitType="Stretch"/>
</background>
......@@ -125,9 +85,9 @@ order by acc.code]]>
<band splitType="Stretch"/>
</columnHeader>
<detail>
<band height="50" splitType="Stretch">
<band height="3" splitType="Stretch">
<subreport isUsingCache="true">
<reportElement key="subreport-3" positionType="Float" x="0" y="0" width="772" height="18" isPrintWhenDetailOverflows="true"/>
<reportElement key="subreport-3" positionType="Float" x="0" y="0" width="772" height="2" isPrintWhenDetailOverflows="true"/>
<subreportParameter name="pClerk">
<subreportParameterExpression><![CDATA[$P{pClerk}]]></subreportParameterExpression>
</subreportParameter>
......@@ -158,8 +118,10 @@ order by acc.code]]>
<connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression>
<subreportExpression class="java.lang.String"><![CDATA[$P{SUBREPORT_DIR} + "gunsonu_durum_tezgahtar_satissip_s10.jasper"]]></subreportExpression>
</subreport>
</band>
<band height="3" splitType="Stretch">
<subreport isUsingCache="true">
<reportElement key="subreport-4" positionType="Float" x="0" y="26" width="772" height="18" isPrintWhenDetailOverflows="true"/>
<reportElement key="subreport-4" positionType="Float" x="0" y="0" width="772" height="2" isPrintWhenDetailOverflows="true"/>
<subreportParameter name="pClerk">
<subreportParameterExpression><![CDATA[$P{pClerk}]]></subreportParameterExpression>
</subreportParameter>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment