Commit 1e769e9a authored by cpatil's avatar cpatil

added - if record not exist in WORKORDER_RECEIPT then skip validation of date


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93993 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4710647b
......@@ -89,7 +89,7 @@ QCTransferICRemote {
double aprvLeadTime = 0;
Timestamp qcOrderDate = null,WORecTranDate=null; // added by cpatil on 02/11/13
Boolean workOrdCntflag = false ;
try {
System.out.println("@@@@@@@@ wfvaldata called");
conn = connDriver.getConnectDB("DriverITM");
......@@ -217,6 +217,7 @@ QCTransferICRemote {
rs = pstmt.executeQuery();
if (rs.next())
{
workOrdCntflag = true;
WORecTranDate = rs.getTimestamp("tran_date");
}
rs.close();
......@@ -227,22 +228,24 @@ QCTransferICRemote {
System.out.println("@@@@ site code[" + siteCode
+ "]::item code[" + itemCode
+ "]::aprvLeadTime[" + aprvLeadTime
+ "]::tranDateStr[" + tranDateStr + "]:::WORecTranDate["+WORecTranDate+"]");
+ "]::tranDateStr[" + tranDateStr + "]:::WORecTranDate["+WORecTranDate+"]workOrdCntflag["+workOrdCntflag+"]");
if( workOrdCntflag == true )
{
Calendar cal = Calendar.getInstance();
cal.setTime(WORecTranDate);
cal.add(Calendar.DAY_OF_WEEK,
(int) Math.round(aprvLeadTime));
qcOrderDate = new Timestamp(cal.getTime().getTime());
System.out.println("@@@@ tranDate tranDate["+ tranDate + "]:::: new date wo receipt date ["+ qcOrderDate + "]:::::");
if (tranDate.before(qcOrderDate)) {
if( tranDate.before(qcOrderDate))
{
errCode = "QCTRFDATEI";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
System.out
.println("@@@@ tranDate new validation end---------errCode["
+ errCode + "]");
System.out.println("@@@@ tranDate new validation end---------errCode["+ errCode + "]");
}
// / added by cpatil on 01/11/13 end
}
}
......
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