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
sql ="select a.proj_code, sum(a.tot_amt)" +
" 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";
System.out.println("AmdNo>>>>>" + amdNo);
pstmt = conn.prepareStatement(sql);
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();
while (rs.next())
{
......@@ -632,7 +632,7 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd
if (rs1.next())
{
totAmtDetpordertot = rs1.getDouble(1);
System.out.println("totAmtDet for Porder without in loop>>>>>>>> "+ totAmtDetpordertot);
System.out.println("totAmtDet for confirmed Porder@@@@@"+ totAmtDetpordertot);
}
rs1.close();
......@@ -660,11 +660,12 @@ insert into obj_itemchange(obj_name,form_no,field_name)values('porderamd
String descrStart = descrStr.substring(0, descrStr.indexOf("]"));
String descrEnd = descrStr.substring(descrStr.indexOf("]"),descrStr.length());
String value = " ; Project Aprroved Amount : "+ BigDecimal.valueOf(approxCost).toPlainString()
+" ; Consumed Amount : "+ BigDecimal.valueOf(totAmtDetpordertot).toPlainString()
+" ; Current Purchase Amendment Amount : "+ BigDecimal.valueOf(totAmtpoamdtemp).toPlainString()
+" ; Exceeded Amount : "+ BigDecimal.valueOf(totAmtPoamd - approxCost).toPlainString()
+"; For Project Code : " + projCode;
String value = " ; Amount Exceeded Project Code : " + projCode
+" ; Project Aprroved Amount : "+ BigDecimal.valueOf(approxCost).toPlainString()
+" ; Consumed Amount : "+ BigDecimal.valueOf(totAmtDetpordertot).toPlainString()
+" ; Current Purchase Order Amendment Amount : "+ BigDecimal.valueOf(totAmtpoamdtemp).toPlainString()
+" ; Exceeded Amount : "+ BigDecimal.valueOf(totAmtPoamd - approxCost).toPlainString();
System.out.println("Value ::: "+ value);
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