Commit 9e8ce8f2 authored by ssalve's avatar ssalve

Sarita : Done changes for GTPL Point No. 514 [Validation for contract_no and...

Sarita : Done changes for GTPL Point No. 514 [Validation for contract_no and dlv_date should check with both to_date and from_date of contract_no] on 17 JULY 18

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@187674 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f410a73c
...@@ -243,9 +243,15 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -243,9 +243,15 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
toDt = rs.getTimestamp("contract_todate"); toDt = rs.getTimestamp("contract_todate");
cnt1++; cnt1++;
if ((ordDateTm.before(fromDt)) //Added and commented by sarita to correct if condition as ordDateTm should check with both fromDt & toDt on 17 JULY 18 [START]
|| (ordDateTm.after(fromDt))) { /* if ((ordDateTm.before(fromDt))
errcode = "VTVLD"; || (ordDateTm.after(fromDt))) {
errcode = "VTVLD";*/
if ((ordDateTm.before(fromDt))
|| (ordDateTm.after(toDt))) {
errcode = "VTPORD0001";
//Added and commented by sarita to correct if condition as ordDateTm should check with both fromDt & toDt on 17 JULY 18 [END]
errList.add(errcode); errList.add(errcode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
...@@ -3393,8 +3399,12 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote, ...@@ -3393,8 +3399,12 @@ public class POrderIC extends ValidatorEJB implements POrderICRemote,
pStmt.close(); pStmt.close();
pStmt = null; pStmt = null;
//Added and commented by sarita to correct if condition as dlvDateTm should check with both fromDt & toDt on 17 JULY 18 [START]
/*if (dlvDateTm.before(fromDt)
|| dlvDateTm.after(fromDt)) {*/
if (dlvDateTm.before(fromDt) if (dlvDateTm.before(fromDt)
|| dlvDateTm.after(fromDt)) { || dlvDateTm.after(toDt)) {
//Added and commented by sarita to correct if condition as dlvDateTm should check with both fromDt & toDt on 17 JULY 18 [END]
errcode = "VTCONVAL"; errcode = "VTCONVAL";
errList.add(errcode); errList.add(errcode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
......
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