Commit e57e33b2 authored by pdas's avatar pdas

Changes made for amd confirm


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99430 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 79542f04
...@@ -621,27 +621,28 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd ...@@ -621,27 +621,28 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd
rs2 = null; rs2 = null;
pstmt2.close(); pstmt2.close();
pstmt2 = null; pstmt2 = null;
sql2 ="select sum(a.tot_amt) from porddet a,porder b " + sql3 ="select sum(a.tot_amt) from porddet a,porder b " +
"where (a.purc_order = b.purc_order) and" + "where (a.purc_order = b.purc_order) and" +
" b.confirmed = 'Y' and a.proj_code = ? and b.purc_order = ? and " + " b.confirmed = 'Y' and a.proj_code = ? and b.purc_order = ? and " +
" a.line_no NOT IN (select line_no__ord from poamd_det where amd_no = ? and proj_code = ?) "; " a.line_no NOT IN (select line_no__ord from poamd_det where amd_no = ? " +
pstmt2 = conn.prepareStatement(sql2); "and proj_code = ? and line_no__ord is not null) ";
pstmt2.setString(1,projCode); pstmt3 = conn.prepareStatement(sql3);
pstmt2.setString(2,purcOrder); pstmt3.setString(1,projCode);
pstmt2.setString(3, amdNo); pstmt3.setString(2,purcOrder);
pstmt2.setString(4,projCode); pstmt3.setString(3,amdNo);
pstmt3.setString(4,projCode);
System.out.println("Project code is for poamdvalidation....."+ projCode); System.out.println("Project code is for poamdvalidation....."+ projCode);
rs2 = pstmt2.executeQuery(); rs3 = pstmt3.executeQuery();
if(rs2.next()) if(rs3.next())
{ {
totAmtnotcurr = rs2.getDouble(1) ; totAmtnotcurr = rs3.getDouble(1) ;
} }
System.out.println("totAmtnotcurr>>>>"+totAmtnotcurr); System.out.println("totAmtnotcurr>>>>"+totAmtnotcurr);
rs2.close(); rs3.close();
rs2 = null; rs3 = null;
pstmt2.close(); pstmt3.close();
pstmt2 = null; pstmt3 = null;
sql1 = "select sum( a.tot_amt ) from porddet a, porder b" sql1 = "select sum( a.tot_amt ) from porddet a, porder b"
+ " where ( a.purc_order = b.purc_order ) and b.confirmed = 'Y'" + " where ( a.purc_order = b.purc_order ) and b.confirmed = 'Y'"
...@@ -685,7 +686,7 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd ...@@ -685,7 +686,7 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd
String value = " ; Amount Exceeded Project Code : " + projCode String value = " ; Amount Exceeded Project Code : " + projCode
+" ; Project Aprroved Amount : "+ BigDecimal.valueOf(approxCost).toPlainString() +" ; Project Aprroved Amount : "+ BigDecimal.valueOf(approxCost).toPlainString()
+" ; Consumed Amount : "+ BigDecimal.valueOf(totAmtDetpordertot).toPlainString() +" ; Consumed Amount : "+ BigDecimal.valueOf(totAmtDetpordertot + totAmtnotcurr).toPlainString()
+" ; Current Purchase Order Amendment Amount : "+ BigDecimal.valueOf(totAmtpoamdtemp).toPlainString() +" ; Current Purchase Order Amendment Amount : "+ BigDecimal.valueOf(totAmtpoamdtemp).toPlainString()
+" ; Exceeded Amount : "+ BigDecimal.valueOf(totAmtPoamd - approxCost).toPlainString(); +" ; Exceeded Amount : "+ BigDecimal.valueOf(totAmtPoamd - approxCost).toPlainString();
......
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