Commit c45224af authored by prahate's avatar prahate

To update a record in scheme balance for SuperStockiest.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196157 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1bfd2c18
......@@ -942,6 +942,25 @@ public class ChrgBckLocConf extends ActionHandlerEJB implements ChrgBckLocConfLo
{
conn.commit();
}
String updateScheme1 = "UPDATE SCHEME_BALANCE SET EFF_FROM = ?, VALID_UPTO = ?, BALANCE_FREE_QTY = ?, BALANCE_FREE_VALUE = ? WHERE CUST_CODE = ? "
+ "AND ITEM_CODE = ? AND SCHEME_CODE = ? and SITE_CODE = ?";//Added By Vikas L on 7-1-19
PreparedStatement pStmt1 = conn.prepareStatement(updateScheme1);
pStmt1.setTimestamp(1, effFrom1);
pStmt1.setTimestamp(2, vaildUpto1);
pStmt1.setInt(3, freeBalQty);
pStmt1.setInt(4, freeBalVal);
pStmt1.setString(5, custCode2);
pStmt1.setString(6, itemCodeRepl);
pStmt1.setString(7, offer);
pStmt1.setString(8, siteCode2);//Added By Vikas L on 7-1-19
int updatedCnt1 = pStmt1.executeUpdate();
System.out.println(">>>>> updatedCnt1 : "+updatedCnt1);
pStmt.close();
if(updatedCnt1 > 1)
{
conn.commit();
}
}
}
//Added by Saiprasad G. on 24-JAN-19 START [For calculating used amount and amount of scheme approval]
......
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