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 @@ ...@@ -71,6 +71,7 @@
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<name>reco_amt</name> <name>reco_amt</name>
<dbname>reco_amt</dbname> <dbname>reco_amt</dbname>
<initial>0</initial>
</table_column> </table_column>
<table_column> <table_column>
<type precision="3">decimal</type> <type precision="3">decimal</type>
...@@ -82,6 +83,7 @@ ...@@ -82,6 +83,7 @@
<type size="15">char</type> <type size="15">char</type>
<update>yes</update> <update>yes</update>
<updatewhereclause>yes</updatewhereclause> <updatewhereclause>yes</updatewhereclause>
<key>yes</key>
<name>loan_no</name> <name>loan_no</name>
<dbname>loans.loan_no</dbname> <dbname>loans.loan_no</dbname>
</table_column> </table_column>
...@@ -92,6 +94,9 @@ ...@@ -92,6 +94,9 @@
<dbname>loans.scheme_no</dbname> <dbname>loans.scheme_no</dbname>
</table_column> </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> <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> <argument>
<name>as_emp_code</name> <name>as_emp_code</name>
<type>string</type> <type>string</type>
...@@ -103,7 +108,7 @@ ...@@ -103,7 +108,7 @@
<text>Loan No</text> <text>Loan No</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>685</x> <x>678</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>96</width> <width>96</width>
...@@ -131,7 +136,7 @@ ...@@ -131,7 +136,7 @@
<text>Scheme No</text> <text>Scheme No</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>783</x> <x>776</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>80</width> <width>80</width>
...@@ -187,10 +192,10 @@ ...@@ -187,10 +192,10 @@
<text>Loan Amount</text> <text>Loan Amount</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>576</x> <x>571</x>
<y>2</y> <y>2</y>
<height>16</height> <height>16</height>
<width>107</width> <width>105</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
...@@ -246,7 +251,7 @@ ...@@ -246,7 +251,7 @@
<x>321</x> <x>321</x>
<y>1</y> <y>1</y>
<height>19</height> <height>19</height>
<width>132</width> <width>130</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
...@@ -271,10 +276,10 @@ ...@@ -271,10 +276,10 @@
<text>Recover Amount</text> <text>Recover Amount</text>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>455</x> <x>453</x>
<y>1</y> <y>1</y>
<height>19</height> <height>19</height>
<width>119</width> <width>116</width>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
...@@ -300,7 +305,7 @@ ...@@ -300,7 +305,7 @@
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>685</x> <x>678</x>
<y>2</y> <y>2</y>
<height>19</height> <height>19</height>
<width>96</width> <width>96</width>
...@@ -338,7 +343,7 @@ ...@@ -338,7 +343,7 @@
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>783</x> <x>776</x>
<y>2</y> <y>2</y>
<height>19</height> <height>19</height>
<width>80</width> <width>80</width>
...@@ -414,10 +419,10 @@ ...@@ -414,10 +419,10 @@
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>577</x> <x>571</x>
<y>2</y> <y>2</y>
<height>19</height> <height>19</height>
<width>106</width> <width>105</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
...@@ -487,20 +492,22 @@ ...@@ -487,20 +492,22 @@
<tabsequence>10</tabsequence> <tabsequence>10</tabsequence>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>456</x> <x>453</x>
<y>2</y> <y>2</y>
<height>19</height> <height>19</height>
<width>118</width> <width>116</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
</html> </html>
<name>reco_amt</name> <name>reco_amt</name>
<visible>1</visible> <visible>1</visible>
<EditStyle style="editmask"> <EditStyle style="edit">
<mask>###,###,##0.00</mask> <limit>0</limit>
<imemode>0</imemode> <case>any</case>
<focusrectangle>no</focusrectangle> <focusrectangle>no</focusrectangle>
<autoselect>no</autoselect>
<imemode>0</imemode>
</EditStyle> </EditStyle>
<font> <font>
<face>Arial</face> <face>Arial</face>
...@@ -522,10 +529,10 @@ ...@@ -522,10 +529,10 @@
<tabsequence>32766</tabsequence> <tabsequence>32766</tabsequence>
<border>0</border> <border>0</border>
<color>33554432</color> <color>33554432</color>
<x>322</x> <x>321</x>
<y>2</y> <y>2</y>
<height>19</height> <height>19</height>
<width>131</width> <width>130</width>
<format>[general]</format> <format>[general]</format>
<html> <html>
<valueishtml>0</valueishtml> <valueishtml>0</valueishtml>
......
...@@ -462,7 +462,7 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo ...@@ -462,7 +462,7 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo
} }
} }
System.out.println("lcRecoAmtStr===>" +lcRecoAmtStr); System.out.println("lcRecoAmtStr===>" +lcRecoAmtStr);
if(lcRecoAmtStr != null && lcRecoAmtStr.trim().length() > 0) if(lcRecoAmtStr != null && lcRecoAmtStr.trim().length() > 0 )
{ {
try try
{ {
...@@ -473,6 +473,14 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo ...@@ -473,6 +473,14 @@ public class MiscRcpLoanAdjPrc extends ProcessEJB implements MiscRcpLoanAdjPrcLo
e.printStackTrace(); e.printStackTrace();
lcRecoAmt = 0; 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("lcRecoAmt===>" +lcRecoAmt);
} }
System.out.println("lcTotRecoAmt before IF ===>" +lcTotRecoAmt); 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