Commit 561f79a8 authored by pchavan's avatar pchavan

add case to get tot_amt fro sorder.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@202269 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dfe61a96
...@@ -69,9 +69,14 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor ...@@ -69,9 +69,14 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor
//Changes and Commented By Ajay on 22-12-2017:START //Changes and Commented By Ajay on 22-12-2017:START
//sql = " select cust_code , item_ser , site_code , due_date , tot_amt, confirmed , " + //sql = " select cust_code , item_ser , site_code , due_date , tot_amt, confirmed , " +
// " status, order_date from sorder where sale_order = ? "; // " status, order_date from sorder where sale_order = ? ";
sql = "select cust_code ,cust_code__bil, item_ser , site_code , due_date , tot_amt, confirmed , " + /*sql = "select cust_code ,cust_code__bil, item_ser , site_code , due_date , tot_amt, confirmed , " +
"(CASE WHEN status IS NULL THEN 'P' ELSE status END) as status , order_date from sorder where sale_order = ?"; "(CASE WHEN status IS NULL THEN 'P' ELSE status END) as status , order_date from sorder where sale_order = ?";
//Changes and Commented By Ajay on 22-12-2017:END //Changes and Commented By Ajay on 22-12-2017:END
*/ //Changed By PriyankaC on 19June2019 [Start]
sql = " select cust_code ,cust_code__bil, item_ser , site_code , due_date , (case when sorder.tot_amt = 0 then sorder.tot_ord_value else sorder.tot_amt end ) as tot_amt, confirmed ,"
+ "(CASE WHEN status IS NULL THEN 'P' ELSE status END) as status , order_date from sorder where sale_order = ? " ;
//Changed By PriyankaC [END].
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, saleOrder); pstmt.setString(1, saleOrder);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -89,6 +94,7 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor ...@@ -89,6 +94,7 @@ public class SorderConf extends ActionHandlerEJB implements SorderConfLocal, Sor
status = rs.getString("status"); status = rs.getString("status");
orderDate=rs.getDate("order_date"); orderDate=rs.getDate("order_date");
} }
System.out.println("***totalAmtStr VAlues after sql execution["+totalAmtStr);
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
......
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