Commit 326df3c7 authored by agaikwad's avatar agaikwad

Added else condition (poDetTot =0) if line_no is null


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100107 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 260c7b42
......@@ -240,8 +240,8 @@ public class POrderAmdConf extends ActionHandlerEJB implements POrderAmdConfLoca
rs = pstmt.executeQuery();
if (rs.next())
{
poHdrTot = rs.getDouble(1);
vouchAdv = rs.getDouble(2);
poHdrTot = rs.getDouble(1);//330600
vouchAdv = rs.getDouble(2);//261000
}
rs.close();
rs = null;
......@@ -276,7 +276,16 @@ public class POrderAmdConf extends ActionHandlerEJB implements POrderAmdConfLoca
pstmt1.close();
pstmt1 = null;
}
else
{
poDetTot=0;
}
System.out.println("poHdrTot" +poHdrTot);
System.out.println("poDetTot" +poDetTot);
System.out.println("amdDetTot" +amdDetTot);
poHdrTot = poHdrTot - poDetTot + amdDetTot;
System.out.println("poHdrTot after" +poHdrTot);
}
rs.close();
rs = null;
......
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