Commit 5e46d028 authored by aali's avatar aali

Updated as per latest source provided by Piysuh sir


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103461 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4746b5b4
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -39,7 +39,7 @@ OP_BALANCE_AMT - AMORTISED_COST_OP_BAL AS PREPAIDE_EMP_BENEFIT, ...@@ -39,7 +39,7 @@ OP_BALANCE_AMT - AMORTISED_COST_OP_BAL AS PREPAIDE_EMP_BENEFIT,
CL_BALANCE_AMT CLOSING_BAL_EMP_LOAN_ACTUAL, CL_BALANCE_AMT CLOSING_BAL_EMP_LOAN_ACTUAL,
AMORTISED_COST_CL_BAL CLOSING_BAL_EMP_LOAN_IND_AS AMORTISED_COST_CL_BAL CLOSING_BAL_EMP_LOAN_IND_AS
FROM FROM
TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct_prd}','$P!{as_prd_code_fr}','$P!{as_prd_code_fr}','$P!{as_site_code_fr}','$P!{as_site_code_to}','$P!{as_cost_center_fr}','$P!{as_cost_center_to}','$P!{as_emp_code_fr}','$P!{as_emp_code_to}',0)) where emi_prd_code = '$P!{as_prd_code_fr}') A , PERIOD B WHERE B.CODE = A.EMI_PRD_CODE]]> TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct_prd}','$P!{as_prd_code_fr}','$P!{as_prd_code_fr}','$P!{as_site_code_fr}','$P!{as_site_code_to}','$P!{as_cost_center_fr}','$P!{as_cost_center_to}','$P!{as_emp_code_fr}','$P!{as_emp_code_to}',0)) where emi_prd_code = '$P!{as_prd_code_fr}') A , PERIOD B WHERE B.CODE = A.EMI_PRD_CODE AND A.DATE_OF_DISB < B.FR_DATE]]>
</queryString> </queryString>
<field name="SR_NO" class="java.math.BigDecimal"/> <field name="SR_NO" class="java.math.BigDecimal"/>
<field name="EMP_CODE" class="java.lang.String"/> <field name="EMP_CODE" class="java.lang.String"/>
...@@ -82,7 +82,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct ...@@ -82,7 +82,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct
</line> </line>
<textField evaluationTime="Group" evaluationGroup="emp_code" isBlankWhenNull="true"> <textField evaluationTime="Group" evaluationGroup="emp_code" isBlankWhenNull="true">
<reportElement uuid="d85f848f-7117-4c72-8db6-fcc762422793" x="4" y="0" width="30" height="14"> <reportElement uuid="d85f848f-7117-4c72-8db6-fcc762422793" x="4" y="0" width="30" height="14">
<property name="net.sf.jasperreports.export.xls.column.name" value="SR NO"/> <property name="net.sf.jasperreports.export.xls.column.name" value="Sr No."/>
<property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/> <property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/>
</reportElement> </reportElement>
<textElement> <textElement>
...@@ -92,7 +92,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct ...@@ -92,7 +92,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct
</textField> </textField>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement uuid="554e92a1-6661-4b35-87bd-85292596db4c" x="45" y="0" width="55" height="14"> <reportElement uuid="554e92a1-6661-4b35-87bd-85292596db4c" x="45" y="0" width="55" height="14">
<property name="net.sf.jasperreports.export.xls.column.name" value="EMP CODE"/> <property name="net.sf.jasperreports.export.xls.column.name" value="Employee Code"/>
<property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/> <property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/>
</reportElement> </reportElement>
<textElement> <textElement>
...@@ -105,7 +105,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct ...@@ -105,7 +105,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct
</line> </line>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement uuid="08c83944-02e3-4d45-869b-b530089290c5" x="102" y="0" width="189" height="14"> <reportElement uuid="08c83944-02e3-4d45-869b-b530089290c5" x="102" y="0" width="189" height="14">
<property name="net.sf.jasperreports.export.xls.column.name" value="EMP NAME"/> <property name="net.sf.jasperreports.export.xls.column.name" value="Employee Name"/>
<property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/> <property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/>
</reportElement> </reportElement>
<textElement> <textElement>
...@@ -121,7 +121,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct ...@@ -121,7 +121,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct
</line> </line>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement uuid="fb06ccaa-cad9-4161-9899-d4575836fb4a" x="294" y="0" width="40" height="14"> <reportElement uuid="fb06ccaa-cad9-4161-9899-d4575836fb4a" x="294" y="0" width="40" height="14">
<property name="net.sf.jasperreports.export.xls.column.name" value="COST CENTER"/> <property name="net.sf.jasperreports.export.xls.column.name" value="Cost Center"/>
<property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/> <property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/>
</reportElement> </reportElement>
<textElement> <textElement>
...@@ -134,7 +134,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct ...@@ -134,7 +134,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct
</line> </line>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement uuid="4fecf50f-c985-4fbd-b380-90440de8f904" x="339" y="0" width="44" height="14"> <reportElement uuid="4fecf50f-c985-4fbd-b380-90440de8f904" x="339" y="0" width="44" height="14">
<property name="net.sf.jasperreports.export.xls.column.name" value="SITE CODE"/> <property name="net.sf.jasperreports.export.xls.column.name" value="Site Code"/>
<property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/> <property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/>
</reportElement> </reportElement>
<textElement> <textElement>
...@@ -147,7 +147,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct ...@@ -147,7 +147,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct
</line> </line>
<textField pattern="0.00" isBlankWhenNull="true"> <textField pattern="0.00" isBlankWhenNull="true">
<reportElement uuid="137df36d-2e83-480e-869d-d384846dc56a" x="471" y="0" width="71" height="14"> <reportElement uuid="137df36d-2e83-480e-869d-d384846dc56a" x="471" y="0" width="71" height="14">
<property name="net.sf.jasperreports.export.xls.column.name" value="ORIGINAL LOAN AMT"/> <property name="net.sf.jasperreports.export.xls.column.name" value="Original Loan Amount"/>
<property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/> <property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/>
</reportElement> </reportElement>
<textElement textAlignment="Right"> <textElement textAlignment="Right">
...@@ -160,7 +160,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct ...@@ -160,7 +160,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct
</line> </line>
<textField pattern="MMM-yy" isBlankWhenNull="true"> <textField pattern="MMM-yy" isBlankWhenNull="true">
<reportElement uuid="4bfa123a-6a82-49b2-abfc-ed563dac5fef" x="546" y="0" width="68" height="14"> <reportElement uuid="4bfa123a-6a82-49b2-abfc-ed563dac5fef" x="546" y="0" width="68" height="14">
<property name="net.sf.jasperreports.export.xls.column.name" value="DATE OF DISBURSEMENT"/> <property name="net.sf.jasperreports.export.xls.column.name" value="Date of Disbursement"/>
<property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/> <property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/>
</reportElement> </reportElement>
<textElement textAlignment="Center"> <textElement textAlignment="Center">
...@@ -173,7 +173,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct ...@@ -173,7 +173,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct
</line> </line>
<textField pattern="MMM-yy" isBlankWhenNull="true"> <textField pattern="MMM-yy" isBlankWhenNull="true">
<reportElement uuid="02fc4b4b-f3c5-4dde-a9cc-b524566fa402" x="614" y="0" width="68" height="14"> <reportElement uuid="02fc4b4b-f3c5-4dde-a9cc-b524566fa402" x="614" y="0" width="68" height="14">
<property name="net.sf.jasperreports.export.xls.column.name" value="LOAN CLOSER DATE"/> <property name="net.sf.jasperreports.export.xls.column.name" value="Loan Closer Date"/>
<property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/> <property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/>
</reportElement> </reportElement>
<textElement textAlignment="Center"> <textElement textAlignment="Center">
...@@ -199,7 +199,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct ...@@ -199,7 +199,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct
</line> </line>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement uuid="e4f83494-2960-4031-adec-752458a52b3b" x="741" y="0" width="39" height="14"> <reportElement uuid="e4f83494-2960-4031-adec-752458a52b3b" x="741" y="0" width="39" height="14">
<property name="net.sf.jasperreports.export.xls.column.name" value="INTEREST RATE %"/> <property name="net.sf.jasperreports.export.xls.column.name" value="Interest Rate %"/>
<property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/> <property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/>
</reportElement> </reportElement>
<textElement textAlignment="Right"> <textElement textAlignment="Right">
...@@ -212,7 +212,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct ...@@ -212,7 +212,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct
</line> </line>
<textField isBlankWhenNull="true"> <textField isBlankWhenNull="true">
<reportElement uuid="5470288d-744f-4cda-a9e4-8bfcfde4ddec" x="785" y="0" width="55" height="14"> <reportElement uuid="5470288d-744f-4cda-a9e4-8bfcfde4ddec" x="785" y="0" width="55" height="14">
<property name="net.sf.jasperreports.export.xls.column.name" value="EFFECTIVE INTEREST RATE %"/> <property name="net.sf.jasperreports.export.xls.column.name" value="Effective Interest Rate %"/>
<property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/> <property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/>
</reportElement> </reportElement>
<textElement textAlignment="Right"> <textElement textAlignment="Right">
...@@ -225,7 +225,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct ...@@ -225,7 +225,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct
</line> </line>
<textField pattern="0.00" isBlankWhenNull="true"> <textField pattern="0.00" isBlankWhenNull="true">
<reportElement uuid="0b2a2331-552c-4f7f-8cd6-89308e135648" x="858" y="0" width="98" height="14"> <reportElement uuid="0b2a2331-552c-4f7f-8cd6-89308e135648" x="858" y="0" width="98" height="14">
<property name="net.sf.jasperreports.export.xls.column.name" value="PREPAID EMP BENEFITS"/> <property name="net.sf.jasperreports.export.xls.column.name" value="Closing Bal of Loan - Actual"/>
<property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/> <property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/>
</reportElement> </reportElement>
<textElement textAlignment="Right"> <textElement textAlignment="Right">
...@@ -238,7 +238,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct ...@@ -238,7 +238,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct
</line> </line>
<textField pattern="0.00" isBlankWhenNull="true"> <textField pattern="0.00" isBlankWhenNull="true">
<reportElement uuid="a74eb774-2a86-4e9c-a11f-a625ac5eb652" x="963" y="0" width="74" height="14"> <reportElement uuid="a74eb774-2a86-4e9c-a11f-a625ac5eb652" x="963" y="0" width="74" height="14">
<property name="net.sf.jasperreports.export.xls.column.name" value="INTEREST ON STAFF LOAN INCOME"/> <property name="net.sf.jasperreports.export.xls.column.name" value="Closing Bal of Loan - Ind - AS"/>
<property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/> <property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/>
</reportElement> </reportElement>
<textElement textAlignment="Right"> <textElement textAlignment="Right">
...@@ -251,7 +251,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct ...@@ -251,7 +251,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct
</line> </line>
<textField pattern="0.00" isBlankWhenNull="true"> <textField pattern="0.00" isBlankWhenNull="true">
<reportElement uuid="08e0893a-3279-4f48-a7c1-017e4dcee53b" x="1043" y="0" width="80" height="14"> <reportElement uuid="08e0893a-3279-4f48-a7c1-017e4dcee53b" x="1043" y="0" width="80" height="14">
<property name="net.sf.jasperreports.export.xls.column.name" value="REPAYMENT INCLUDING INTEREST"/> <property name="net.sf.jasperreports.export.xls.column.name" value="Prepaid Employee Benefits"/>
<property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/> <property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/>
</reportElement> </reportElement>
<textElement textAlignment="Right"> <textElement textAlignment="Right">
...@@ -267,7 +267,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct ...@@ -267,7 +267,7 @@ TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct
</line> </line>
<textField pattern="0.00" isBlankWhenNull="true"> <textField pattern="0.00" isBlankWhenNull="true">
<reportElement uuid="9d1e1343-0e85-4423-b216-4f8bb13d7da5" x="387" y="-1" width="83" height="14"> <reportElement uuid="9d1e1343-0e85-4423-b216-4f8bb13d7da5" x="387" y="-1" width="83" height="14">
<property name="net.sf.jasperreports.export.xls.column.name" value="ORIGINAL LOAN AMT"/> <property name="net.sf.jasperreports.export.xls.column.name" value="Loan No"/>
<property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/> <property name="net.sf.jasperreports.export.xls.repeat.value" value="true"/>
</reportElement> </reportElement>
<textElement verticalAlignment="Middle"> <textElement verticalAlignment="Middle">
......
<?xml version="1.0" encoding="UTF-8"?> <?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="d_loan_summary_monthly" pageWidth="1475" pageHeight="559" orientation="Landscape" columnWidth="1460" leftMargin="12" rightMargin="3" topMargin="8" bottomMargin="3" uuid="d6bb3a4a-9094-4c68-b4f9-3a14837b080b"> <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="d_loan_summary_monthly" pageWidth="1475" pageHeight="559" orientation="Landscape" columnWidth="1460" leftMargin="12" rightMargin="3" topMargin="8" bottomMargin="3" uuid="d6bb3a4a-9094-4c68-b4f9-3a14837b080b">
<property name="ireport.zoom" value="1.2100000000000004"/> <property name="ireport.zoom" value="1.2100000000000004"/>
<property name="ireport.x" value="0"/> <property name="ireport.x" value="998"/>
<property name="ireport.y" value="0"/> <property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.write.header" value="true"/> <property name="net.sf.jasperreports.export.xls.write.header" value="true"/>
<parameter name="as_fin_entity" class="java.lang.String"/> <parameter name="as_fin_entity" class="java.lang.String"/>
...@@ -31,15 +31,18 @@ LOAN_CLOUSRE_DATE AS LOAN_CLOSER_DATE, ...@@ -31,15 +31,18 @@ LOAN_CLOUSRE_DATE AS LOAN_CLOSER_DATE,
MON_INST AS EMI, MON_INST AS EMI,
INTEREST AS INTEREST_RATE, INTEREST AS INTEREST_RATE,
ISA_EFF_INT_RATE AS EFF_INTEREST_RATE, ISA_EFF_INT_RATE AS EFF_INTEREST_RATE,
SUM(EMP_BENEFIT) AS PREPAIDE_EMP_BENEFIT, SUM(CASE WHEN LOAN_DISB_DATE <= '31-Mar-2015' AND EMI_PRD_CODE = '201503' THEN CL_BALANCE_AMT - AMORTISED_COST_CL_BAL WHEN LOAN_DISB_DATE > '31-Mar-2015' THEN EMP_BENEFIT ELSE 0 END) AS PREPAIDE_EMP_BENEFIT,
SUM(CASE WHEN EMI_PRD_CODE BETWEEN '$P!{as_prd_code_fr}' and '$P!{as_prd_code_to}' and acct_prd_data = '$P!{as_acct_prd}' THEN INTEREST_AT_EFF_RATE ELSE 0 END) AS SUM_INTEREST_STAFF_LOAN_INCOME, SUM(CASE WHEN EMI_PRD_CODE BETWEEN '$P!{as_prd_code_fr}' and '$P!{as_prd_code_to}' and acct_prd_data = '$P!{as_acct_prd}' THEN INTEREST_AT_EFF_RATE ELSE 0 END) AS SUM_INTEREST_STAFF_LOAN_INCOME,
SUM(CASE WHEN EMI_PRD_CODE BETWEEN '$P!{as_prd_code_fr}' and '$P!{as_prd_code_to}' and acct_prd_data = '$P!{as_acct_prd}' THEN REPAYMENT_INCL_INTEREST ELSE 0 END) AS SUM_REPAYMENT_INCLUDE_INTEREST, SUM(CASE WHEN EMI_PRD_CODE BETWEEN '$P!{as_prd_code_fr}' and '$P!{as_prd_code_to}' and acct_prd_data = '$P!{as_acct_prd}' THEN REPAYMENT_INCL_INTEREST_1 ELSE 0 END) AS SUM_REPAYMENT_INCLUDE_INTEREST,
SUM(CASE WHEN EMI_PRD_CODE BETWEEN '$P!{as_prd_code_fr}' and '$P!{as_prd_code_to}' and acct_prd_data = '$P!{as_acct_prd}' THEN EMP_BENEFIT ELSE 0 END) SUM_EMP_BENEFIT_EXP, SUM(CASE WHEN EMI_PRD_CODE BETWEEN '$P!{as_prd_code_fr}' and '$P!{as_prd_code_to}' and acct_prd_data = '$P!{as_acct_prd}' THEN EMP_BENEFIT ELSE 0 END) AS SUM_EMP_BENEFIT_EXP,
MIN(CASE WHEN EMI_PRD_CODE BETWEEN '$P!{as_prd_code_fr}' and '$P!{as_prd_code_to}' and acct_prd_data = '$P!{as_acct_prd}' THEN CL_BALANCE_AMT ELSE 99999999999.99 END) AS CLOSING_BAL_EMP_LOAN_ACTUAL, MIN(CASE WHEN EMI_PRD_CODE BETWEEN '$P!{as_prd_code_fr}' and '$P!{as_prd_code_to}' and acct_prd_data = '$P!{as_acct_prd}' THEN CL_BALANCE_AMT ELSE 99999999999.99 END) AS CLOSING_BAL_EMP_LOAN_ACTUAL,
MIN(CASE WHEN EMI_PRD_CODE BETWEEN '$P!{as_prd_code_fr}' and '$P!{as_prd_code_to}' and acct_prd_data = '$P!{as_acct_prd}' THEN AMORTISED_COST_CL_BAL ELSE 99999999999.99 END) AS CLOSING_BAL_EMP_LOAN_IND_AS, MIN(CASE WHEN EMI_PRD_CODE BETWEEN '$P!{as_prd_code_fr}' and '$P!{as_prd_code_to}' and acct_prd_data = '$P!{as_acct_prd}' THEN AMORTISED_COST_CL_BAL ELSE 99999999999.99 END) AS CLOSING_BAL_EMP_LOAN_IND_AS,
MIN(CASE WHEN EMI_PRD_CODE BETWEEN '$P!{as_prd_code_fr}' and '$P!{as_prd_code_to}' and acct_prd_data = '$P!{as_acct_prd}' THEN DIFF_PRINC_DEDN ELSE 99999999999.99 END) AS SUM_DIFF_PRINC_DEDN MIN(CASE WHEN EMI_PRD_CODE BETWEEN '$P!{as_prd_code_fr}' and '$P!{as_prd_code_to}' and acct_prd_data = '$P!{as_acct_prd}' THEN DIFF_PRINC_DEDN ELSE 99999999999.99 END) AS SUM_DIFF_PRINC_DEDN
FROM FROM
TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct_prd}','$P!{as_prd_code_fr}','$P!{as_prd_code_to}','$P!{as_site_code_fr}','$P!{as_site_code_to}','$P!{as_cost_center_fr}','$P!{as_cost_center_to}','$P!{as_emp_code_fr}','$P!{as_emp_code_to}',0)) GROUP BY EMP_CODE,EMP_FULL_NAME,CCTR_CODE__SAL,PAY_SITE,LOAN_NO,LOAN_AMT,LOAN_DISB_DATE,LOAN_CLOUSRE_DATE,MON_INST,INTEREST,ISA_EFF_INT_RATE) A]]> (
SELECT * FROM
TABLE(FN_TF_LOAN_INT_INFO('$P!{as_fin_entity}','$P!{as_fin_entity}','$P!{as_acct_prd}','$P!{as_prd_code_fr}','$P!{as_prd_code_to}','$P!{as_site_code_fr}','$P!{as_site_code_to}','$P!{as_cost_center_fr}','$P!{as_cost_center_to}','$P!{as_emp_code_fr}','$P!{as_emp_code_to}',0)) A1,ACCTPRD B1
WHERE B1.CODE = A1.ACCT_PRD_DATA ORDER BY A1.EMP_CODE , A1.LOAN_NO , A1.EMI_NO) A2 GROUP BY EMP_CODE,EMP_FULL_NAME,CCTR_CODE__SAL,PAY_SITE,LOAN_NO,LOAN_AMT,LOAN_DISB_DATE,LOAN_CLOUSRE_DATE,MON_INST,INTEREST,ISA_EFF_INT_RATE ORDER BY EMP_CODE,LOAN_NO) A WHERE CLOSING_BAL_EMP_LOAN_ACTUAL <> 99999999999.99 AND CLOSING_BAL_EMP_LOAN_IND_AS <> 99999999999.99]]>
</queryString> </queryString>
<field name="SR_NO" class="java.math.BigDecimal"/> <field name="SR_NO" class="java.math.BigDecimal"/>
<field name="EMP_CODE" class="java.lang.String"/> <field name="EMP_CODE" class="java.lang.String"/>
...@@ -575,7 +578,7 @@ Center ...@@ -575,7 +578,7 @@ Center
<textElement textAlignment="Right"> <textElement textAlignment="Right">
<font fontName="Times New Roman" size="10"/> <font fontName="Times New Roman" size="10"/>
</textElement> </textElement>
<textFieldExpression><![CDATA[$F{SUM_EMP_BENEFIT_EXP}]]></textFieldExpression> <textFieldExpression><![CDATA[$F{PREPAIDE_EMP_BENEFIT}]]></textFieldExpression>
</textField> </textField>
<line> <line>
<reportElement uuid="ff0d78d7-3135-44d5-adeb-ee75cbe5b015" stretchType="RelativeToBandHeight" x="936" y="1" width="1" height="14"/> <reportElement uuid="ff0d78d7-3135-44d5-adeb-ee75cbe5b015" stretchType="RelativeToBandHeight" x="936" y="1" width="1" height="14"/>
......
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