Commit cc00f929 authored by pchavan's avatar pchavan

change in scheme.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@194863 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b466070e
...@@ -4660,10 +4660,8 @@ public class PostOrderActivity { ...@@ -4660,10 +4660,8 @@ public class PostOrderActivity {
pstmt9.setString(2,"X"); pstmt9.setString(2,"X");
} }
pstmt9.setTimestamp(3,orderDate); pstmt9.setTimestamp(3,orderDate);
pstmt9.setTimestamp(4,orderDate); pstmt9.setTimestamp(4,orderDate);
rs8=pstmt9.executeQuery(); rs8=pstmt9.executeQuery();
if(rs8.next()) if(rs8.next())
{ {
...@@ -4673,8 +4671,6 @@ public class PostOrderActivity { ...@@ -4673,8 +4671,6 @@ public class PostOrderActivity {
schemeCode = checkNullAndTrim(rs8.getString("scheme_code")); schemeCode = checkNullAndTrim(rs8.getString("scheme_code"));
balFreeVal = rs8.getDouble("balance_free_value"); balFreeVal = rs8.getDouble("balance_free_value");
balFreeQty = rs8.getDouble("balance_free_qty"); balFreeQty = rs8.getDouble("balance_free_qty");
} }
rs8.close(); rs8.close();
rs8=null; rs8=null;
...@@ -4689,10 +4685,10 @@ public class PostOrderActivity { ...@@ -4689,10 +4685,10 @@ public class PostOrderActivity {
rateschm=0 ; rateschm=0 ;
freequentity = 0; freequentity = 0;
sql = "update scheme_balance set used_free_qty = ?, used_free_value = ? where cust_code = ? and Item_code = ? and ? >= EFF_FROM and ? <= VALID_UPTO "; sql = "update scheme_balance set used_free_qty = ?, used_free_value = ? where cust_code = ? and Item_code = ? and ? >= EFF_FROM and ? <= VALID_UPTO ";
pstmt9=conn.prepareStatement(sql); pstmt9=conn.prepareStatement(sql);
sql = " Insert into FREE_BALANCE_TRACE (tran_id, bal_qty_before, bal_qty_after ,val_bal_before ,val_bal_after ,sale_order , invoice_id , tran_id__bal ,cust_code , line_no__sord ,item_code , used_qty, used_amount, scheme_code,line_no_invoicetrace) " sql = " Insert into FREE_BALANCE_TRACE (tran_id, bal_qty_before, bal_qty_after ,val_bal_before ,val_bal_after ,sale_order , invoice_id , tran_id__bal ,cust_code , line_no__sord ,item_code , used_qty, used_amount, scheme_code,line_no_invoicetrace) "
+" values (?, ?, ?, ?,?,?, ?,?,?,?,?, ?,?,?,?)" ; +" values (?, ?, ?, ?,?,?, ?,?,?,?,?, ?,?,?,?)" ;
pstmt90 = conn.prepareStatement(sql); pstmt90 = conn.prepareStatement(sql);
...@@ -4752,7 +4748,7 @@ public class PostOrderActivity { ...@@ -4752,7 +4748,7 @@ public class PostOrderActivity {
if(schmUsedval > RembalVAl) if(schmUsedval > RembalVAl)
{ {
errString = itmDBAccessEJB.getErrorString("","VTFREEQTY1","","",conn); retString = itmDBAccessEJB.getErrorString("","VTFREEQTY1","","",conn);
break; break;
} }
} }
...@@ -4764,7 +4760,7 @@ public class PostOrderActivity { ...@@ -4764,7 +4760,7 @@ public class PostOrderActivity {
RembalQty = balFreeQty - balQtyBfr; RembalQty = balFreeQty - balQtyBfr;
if(quentityschm > RembalQty) if(quentityschm > RembalQty)
{ {
errString = itmDBAccessEJB.getErrorString("","VTFREEQTY1","","",conn); retString = itmDBAccessEJB.getErrorString("","VTFREEQTY1","","",conn);
break; break;
} }
} }
......
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