Commit f63c31d9 authored by vjoshi's avatar vjoshi

added sql to get total amount and order amount from purchase order

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@217867 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9713ce1e
......@@ -76,7 +76,6 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
{
System.out.println(">>>>>>>>>>>>>>>>>>PorderConf CONFIRM called>>>>>>>>>>>>>>>>>>>");
String sql = "",sql1 = "";
PreparedStatement pstmt = null,pstmt1=null;
String errString = null, userid = "";
String confirm = "",status= "" ,indNo = "",reason = "" ,pordType = "",ediOption = "",userIdOp="",
......@@ -211,6 +210,20 @@ public class PorderConf extends ActionHandlerEJB implements PorderConfLocal, Por
}
//Changes by Nandkumar Gadkari on 24/04/18----------------------end-------------
sql= "select tot_amt, ord_amt from porder where purc_order= ? "; // added By Vrushabh on 11-3-2020 for displaying total amount and order amount from purchase order start
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, pOrder);
rs1 = pstmt1.executeQuery();
if(rs1.next())
{
hnetAmt = rs1.getDouble(1);
hordAmt= rs1.getDouble(2);
}
rs1.close();rs1 = null;
pstmt1.close();pstmt1 = null;
System.out.println("Total amount is" + hnetAmt );
System.out.println("Order amount is" + hordAmt ); // added By Vrushabh on 11-3-2020 for displaying total amount and order amount from purchase order End
if(errString == null || errString.trim().length() == 0 )
{
errString = gbfRetrieveOrder(pOrder,pordType ,ediOption,projCode,amount,hnetAmt ,hordAmt,suppCode ,pordSite ,xtraParams,conn);
......
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