Commit 3559481b authored by wansari's avatar wansari

W16IBAS005 corrected SQL at line 3982


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106090 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 3d24e9cf
...@@ -3979,8 +3979,14 @@ public class PostOrderActivity { ...@@ -3979,8 +3979,14 @@ public class PostOrderActivity {
if (lsSchemeCode != null && lsSchemeCode.trim().length() > 0) if (lsSchemeCode != null && lsSchemeCode.trim().length() > 0)
{ {
sql = "select sum(tot_charge_qty), sum(tot_free_qty), sum(eff_net_amount), max(scheme_code)" //Changed by wasim to correct the SQL
+ " from prd_scheme_trace where site_code= ? and cust_code= ? and item_code=?"; /*sql = "select sum(tot_charge_qty), sum(tot_free_qty), sum(eff_net_amount), max(scheme_code)"
+ " from prd_scheme_trace where site_code= ? and cust_code= ? and item_code=?";*/
sql = " select sum(tot_charge_qty) as tot_charge_qty, sum(tot_free_qty) as tot_free_qty, "
+ " sum(eff_net_amount) as eff_net_amount, max(scheme_code) as scheme_code"
+ " from prd_scheme_trace where site_code= ? and cust_code= ? and item_code=?";
pstmt2 = conn.prepareStatement(sql); pstmt2 = conn.prepareStatement(sql);
pstmt2.setString(1, siteCode); pstmt2.setString(1, siteCode);
pstmt2.setString(2, custCode); pstmt2.setString(2, custCode);
......
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