Commit fb54b686 authored by vvengurlekar's avatar vvengurlekar

EmpLvePrkBalTrfConf.java - Changes done in update statement for allowdedn_bal...

EmpLvePrkBalTrfConf.java - Changes done in update statement for allowdedn_bal for emp_code_for is written outside.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@188944 ce508802-f39f-4f6c-b175-0d175dae99d5
parent cc9cb67e
......@@ -622,6 +622,26 @@ public class EmpLvePrkBalTrfConf extends ActionHandlerEJB implements EmpLvePrkBa
successFlag = false;
break;
}
// Added by Varsha V on 16-07-18 for updating AMOUNT for emp_code_fr
if (successFlag) {
// Modified by Piyush on 18/07/2018 [Should not update amount].Start
pStmt6.setDouble(1, perkBalance);
pStmt6.setDouble(2, perkBalance);
pStmt6.setString(3, empCodeFr);
pStmt6.setString(4, balCode);
pStmt6.setTimestamp(5, frDate);
pStmt6.setTimestamp(6, toDate);
// Modified by Piyush on 18/07/2018 [Should not update amount].End
updCnt = pStmt6.executeUpdate();
pStmt6.clearParameters();
if (updCnt > 0) {
successFlag = true;
} else {
successFlag = false;
break;
}
}
// Ended by Varsha V on 16-07-18 for updating AMOUNT for emp_code_fr
System.out.println("*************admEnvReturn:::::[" + admEnvReturn + "]");
if ((admEnvReturn == null) || (admEnvReturn.trim().length() == 0)
|| (admEnvReturn.equalsIgnoreCase("NULLFOUND"))) {
......@@ -679,26 +699,6 @@ public class EmpLvePrkBalTrfConf extends ActionHandlerEJB implements EmpLvePrkBa
break;
}
}
// Added by Varsha V on 16-07-18 for updating AMOUNT for emp_code_fr
if (successFlag) {
// Modified by Piyush on 18/07/2018 [Should not update amount].Start
pStmt6.setDouble(1, perkBalance);
pStmt6.setDouble(2, perkBalance);
pStmt6.setString(3, empCodeFr);
pStmt6.setString(4, balCode);
pStmt6.setTimestamp(5, frDate);
pStmt6.setTimestamp(6, toDate);
// Modified by Piyush on 18/07/2018 [Should not update amount].End
updCnt = pStmt6.executeUpdate();
pStmt6.clearParameters();
if (updCnt > 0) {
successFlag = true;
} else {
successFlag = false;
break;
}
}
// Ended by Varsha V on 16-07-18 for updating AMOUNT for emp_code_fr
}
// Modified by Piyush on 18/07/2018 [Procedure should be called outside of loop
// as it should happen once only].Start
......
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