Commit 6c074da8 authored by caluka's avatar caluka

change parameters according scheduler code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98289 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bb320f2a
...@@ -83,9 +83,10 @@ public class MilestonePayGen ...@@ -83,9 +83,10 @@ public class MilestonePayGen
double odtAmt=0.0,totAmt=0.0,calRelAmt=0.0,taxAmt=0.0; double odtAmt=0.0,totAmt=0.0,calRelAmt=0.0,taxAmt=0.0;
double relAmtPass=0.0; double relAmtPass=0.0;
int totdelayDays=0; int totdelayDays=0;
int count =0; int count =0 ;
int relAfterInt= 0;
Date dueDateUpd=null; Date dueDateUpd=null;
Timestamp tsDueDate = null; Timestamp tsDueDate = null,confDate = null;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
...@@ -219,12 +220,32 @@ public class MilestonePayGen ...@@ -219,12 +220,32 @@ public class MilestonePayGen
System.out.println("amtType ::::" + amtType); System.out.println("amtType ::::" + amtType);
if("false".equalsIgnoreCase(adhocValue)) if("false".equalsIgnoreCase(adhocValue))
{ {
sql = "select ptm.rel_after,po.conf_date from pord_pay_term ptm,porder po " +
"where ptm.purc_order= po.purc_order and " +
"ptm.purc_order= ? and ptm.line_no= ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, purcOrder);
pstmt.setString(2, lineNoOrd);
rs = pstmt.executeQuery();
if (rs.next())
{
relAfterInt = rs.getInt("rel_after");
confDate = rs.getTimestamp("conf_date");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("relAfterInt>>>>>>"+relAfterInt);
System.out.println("confDate>>>>>>"+confDate);
relAmtPass= Double.parseDouble(relAmt); relAmtPass= Double.parseDouble(relAmt);
tsDueDate = Timestamp.valueOf(genericUtility.getValidDateString(dueDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0"); tsDueDate = Timestamp.valueOf(genericUtility.getValidDateString(dueDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");
xtraParams = "chgUser="+chgUser+"~~chgTerm="+chgTerm+"~~loginSiteCode="+siteCode+"~~loginEmpCode="+loginEmpCode; xtraParams = "chgUser="+chgUser+"~~chgTerm="+chgTerm+"~~loginSiteCode="+siteCode+"~~loginEmpCode="+loginEmpCode;
GenPurcMilestoneSch purmstnsch = new GenPurcMilestoneSch(); GenPurcMilestoneSch purmstnsch = new GenPurcMilestoneSch();
retString = purmstnsch.insertHdMstn(purcOrder,lineNoOrd,lineNoPrev,siteCodeAdv,amtType,relAgainst,relAmtPass,acctCode,cctrCode,taxClass,taxChap,taxEnv,taskCode,tsDueDate,remarks,allowOverride,suppCode,odtAmt,totAmt,taxAmt,xtraParams,conn); retString = purmstnsch.insertHdMstn(purcOrder,lineNoOrd,lineNoPrev,siteCodeAdv,amtType,relAgainst,relAmtPass,acctCode,cctrCode,taxClass,taxChap,taxEnv,taskCode,tsDueDate,remarks,allowOverride,suppCode,odtAmt,totAmt,taxAmt,confDate,relAfterInt,xtraParams,conn);
System.out.println("**************retString*************"+retString); System.out.println("**************retString*************"+retString);
if (retString.indexOf("Success") > -1) if (retString.indexOf("Success") > -1)
{ {
......
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