Commit 938409d7 authored by pbhosale's avatar pbhosale

Updated on [07-02-2020]

misc_rcp_loan_adj12.xml
d_misc_rcp_loan_adj12.srd
MiscRcpLoanAdjPrc.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@216307 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bd868f83
......@@ -71,6 +71,7 @@
<updatewhereclause>yes</updatewhereclause>
<name>reco_amt</name>
<dbname>reco_amt</dbname>
<initial>0</initial>
</table_column>
<table_column>
<type precision="3">decimal</type>
......@@ -82,6 +83,7 @@
<type size="15">char</type>
<update>yes</update>
<updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>loan_no</name>
<dbname>loans.loan_no</dbname>
</table_column>
......@@ -92,6 +94,9 @@
<dbname>loans.scheme_no</dbname>
</table_column>
<retrieve>PBSELECT( VERSION(400) TABLE(NAME=&quot;loan_scheme&quot; ) TABLE(NAME=&quot;loans&quot; ) COLUMN(NAME=&quot;loan_scheme.descr&quot;) COLUMN(NAME=&quot;loans.start_reco&quot;) COLUMN(NAME=&quot;loans.balance_amt&quot;) COMPUTE(NAME=&quot;0.00 as reco_amt&quot;) COLUMN(NAME=&quot;loans.loan_amt&quot;) COLUMN(NAME=&quot;loans.loan_no&quot;) COLUMN(NAME=&quot;loans.scheme_no&quot;) JOIN (LEFT=&quot;loans.scheme_no&quot; OP =&quot;=&quot;RIGHT=&quot;loan_scheme.scheme_no&quot; )WHERE( EXP1 =&quot;( loans.emp_code&quot; OP =&quot;=&quot; EXP2 =&quot;:as_emp_code )&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;( loans.status&quot; OP =&quot;=&quot; EXP2 =&quot;&apos;A&apos;)&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;( loans.start_dedn&quot; OP =&quot;=&quot; EXP2 =&quot;&apos;Y&apos;)&quot; LOGIC =&quot;And&quot; ) WHERE( EXP1 =&quot;( loans.balance_amt&quot; OP =&quot;&gt;&quot; EXP2 =&quot;0 )&quot; ) ) ARG(NAME = &quot;as_emp_code&quot; TYPE = string) </retrieve>
<update>LOANS</update>
<updatewhere>0</updatewhere>
<updatekeyinplace>no</updatekeyinplace>
<argument>
<name>as_emp_code</name>
<type>string</type>
......@@ -103,7 +108,7 @@
<text>Loan No</text>
<border>0</border>
<color>33554432</color>
<x>685</x>
<x>678</x>
<y>2</y>
<height>16</height>
<width>96</width>
......@@ -131,7 +136,7 @@
<text>Scheme No</text>
<border>0</border>
<color>33554432</color>
<x>783</x>
<x>776</x>
<y>2</y>
<height>16</height>
<width>80</width>
......@@ -187,10 +192,10 @@
<text>Loan Amount</text>
<border>0</border>
<color>33554432</color>
<x>576</x>
<x>571</x>
<y>2</y>
<height>16</height>
<width>107</width>
<width>105</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -246,7 +251,7 @@
<x>321</x>
<y>1</y>
<height>19</height>
<width>132</width>
<width>130</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -271,10 +276,10 @@
<text>Recover Amount</text>
<border>0</border>
<color>33554432</color>
<x>455</x>
<x>453</x>
<y>1</y>
<height>19</height>
<width>119</width>
<width>116</width>
<html>
<valueishtml>0</valueishtml>
</html>
......@@ -300,7 +305,7 @@
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>685</x>
<x>678</x>
<y>2</y>
<height>19</height>
<width>96</width>
......@@ -338,7 +343,7 @@
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>783</x>
<x>776</x>
<y>2</y>
<height>19</height>
<width>80</width>
......@@ -414,10 +419,10 @@
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>577</x>
<x>571</x>
<y>2</y>
<height>19</height>
<width>106</width>
<width>105</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......@@ -487,20 +492,22 @@
<tabsequence>10</tabsequence>
<border>0</border>
<color>33554432</color>
<x>456</x>
<x>453</x>
<y>2</y>
<height>19</height>
<width>118</width>
<width>116</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
</html>
<name>reco_amt</name>
<visible>1</visible>
<EditStyle style="editmask">
<mask>###,###,##0.00</mask>
<imemode>0</imemode>
<EditStyle style="edit">
<limit>0</limit>
<case>any</case>
<focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle>
<font>
<face>Arial</face>
......@@ -522,10 +529,10 @@
<tabsequence>32766</tabsequence>
<border>0</border>
<color>33554432</color>
<x>322</x>
<x>321</x>
<y>2</y>
<height>19</height>
<width>131</width>
<width>130</width>
<format>[general]</format>
<html>
<valueishtml>0</valueishtml>
......
......@@ -462,7 +462,7 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo
}
}
System.out.println("lcRecoAmtStr===>" +lcRecoAmtStr);
if(lcRecoAmtStr != null && lcRecoAmtStr.trim().length() > 0)
if(lcRecoAmtStr != null && lcRecoAmtStr.trim().length() > 0 )
{
try
{
......@@ -473,6 +473,14 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo
e.printStackTrace();
lcRecoAmt = 0;
}
//Added by Poonam B[06-02-2020][Start][to validate negative value not allowed]
if(lcRecoAmt < 0)
{
System.out.println("Inside negative value if loop");
resultString = itmDBAccessEJB.getErrorString("" , "VMNEGATIVE" , userId , "" , connection);
break;
}
//Added by Poonam B[06-02-2020][END][to validate negative value not allowed]
System.out.println("lcRecoAmt===>" +lcRecoAmt);
}
System.out.println("lcTotRecoAmt before IF ===>" +lcTotRecoAmt);
......
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