Commit e21ddb76 authored by vlagad's avatar vlagad

changes related Schema Balance update for chargeback

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@195343 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6328e293
......@@ -912,7 +912,7 @@ public class ChrgBckLocConf extends ActionHandlerEJB implements ChrgBckLocConfLo
freeBalVal = freeBalVal + freeVaule;
String updateScheme = "UPDATE SCHEME_BALANCE SET EFF_FROM = ?, VALID_UPTO = ?, BALANCE_FREE_QTY = ?, BALANCE_FREE_VALUE = ? WHERE CUST_CODE = ? "
+ "AND ITEM_CODE = ? AND SCHEME_CODE = ? ";
+ "AND ITEM_CODE = ? AND SCHEME_CODE = ? and SITE_CODE = ?";//Added By Vikas L on 7-1-19
PreparedStatement pStmt = conn.prepareStatement(updateScheme);
pStmt.setTimestamp(1, effFrom1);
pStmt.setTimestamp(2, vaildUpto1);
......@@ -921,6 +921,7 @@ public class ChrgBckLocConf extends ActionHandlerEJB implements ChrgBckLocConfLo
pStmt.setString(5, custCode1);
pStmt.setString(6, itemCodeRepl);
pStmt.setString(7, offer);
pStmt.setString(8, siteCode1);//Added By Vikas L on 7-1-19
int updatedCnt = pStmt.executeUpdate();
System.out.println(">>>>> updatedCnt : "+updatedCnt);
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