Commit 5a6ea632 authored by pdas's avatar pdas

REQUEST ID - D15ISUN003

CHANGES IN POAMDCONFIRM FOR PROJECT COST VALIDATION


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99408 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 000cbd46
...@@ -594,13 +594,13 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd ...@@ -594,13 +594,13 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd
sql ="select a.proj_code, sum(a.tot_amt)" + sql ="select a.proj_code, sum(a.tot_amt)" +
" from poamd_det a,poamd_hdr b " + " from poamd_det a,poamd_hdr b " +
"where a.purc_order = b.purc_order " + "where a.amd_no = b.amd_no " +
"and a.amd_no = ? group by a.proj_code"; "and a.amd_no = ? group by a.proj_code";
System.out.println("AmdNo>>>>>" + amdNo); System.out.println("AmdNo>>>>>" + amdNo);
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, amdNo); pstmt.setString(1, amdNo);
System.out.println("Project code is for poamdvalidation....."+ projCode); System.out.println("Project code is for poamdconf....."+ projCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
while (rs.next()) while (rs.next())
{ {
...@@ -632,7 +632,7 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd ...@@ -632,7 +632,7 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd
if (rs1.next()) if (rs1.next())
{ {
totAmtDetpordertot = rs1.getDouble(1); totAmtDetpordertot = rs1.getDouble(1);
System.out.println("totAmtDet for Porder without in loop>>>>>>>> "+ totAmtDetpordertot); System.out.println("totAmtDet for confirmed Porder@@@@@"+ totAmtDetpordertot);
} }
rs1.close(); rs1.close();
...@@ -660,11 +660,12 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd ...@@ -660,11 +660,12 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd
String descrStart = descrStr.substring(0, descrStr.indexOf("]")); String descrStart = descrStr.substring(0, descrStr.indexOf("]"));
String descrEnd = descrStr.substring(descrStr.indexOf("]"),descrStr.length()); String descrEnd = descrStr.substring(descrStr.indexOf("]"),descrStr.length());
String value = " ; Project Aprroved Amount : "+ BigDecimal.valueOf(approxCost).toPlainString() String value = " ; Amount Exceeded Project Code : " + projCode
+" ; Consumed Amount : "+ BigDecimal.valueOf(totAmtDetpordertot).toPlainString() +" ; Project Aprroved Amount : "+ BigDecimal.valueOf(approxCost).toPlainString()
+" ; Current Purchase Amendment Amount : "+ BigDecimal.valueOf(totAmtpoamdtemp).toPlainString() +" ; Consumed Amount : "+ BigDecimal.valueOf(totAmtDetpordertot).toPlainString()
+" ; Exceeded Amount : "+ BigDecimal.valueOf(totAmtPoamd - approxCost).toPlainString() +" ; Current Purchase Order Amendment Amount : "+ BigDecimal.valueOf(totAmtpoamdtemp).toPlainString()
+"; For Project Code : " + projCode; +" ; Exceeded Amount : "+ BigDecimal.valueOf(totAmtPoamd - approxCost).toPlainString();
System.out.println("Value ::: "+ value); System.out.println("Value ::: "+ value);
descrStart = descrStart.concat(value).concat(descrEnd); descrStart = descrStart.concat(value).concat(descrEnd);
......
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