Commit 1c43b9ef authored by ssalve's avatar ssalve

Sarita : Added Validation for Quantity on 22 OCT 2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@192188 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6381744d
......@@ -8,7 +8,6 @@ import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import javax.ejb.Stateless;
......@@ -1635,6 +1634,17 @@ public class PoReturnIC extends ValidatorEJB implements PoReturnICLocal,
pstmt = null;
System.out.println("lc_rcp_qty@@@["+lc_rcp_qty+"]");
//Added by sarita on 22 OCT 2018 -- if quantity changed by user --- [START]
System.out.println("123.... Quantity ["+qty+"] \t Purchase Order Det Quantity ["+lc_rcp_qty+"]");
if(qty > lc_rcp_qty)
{
errCode = "VTINVPQTY";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
//Added by sarita on 22 OCT 2018 -- if quantity changed by user --- [END]
sql="select case when sum(porcpdet.quantity) is null then 0 else sum(porcpdet.quantity) end " +
"from porcp,porcpdet " +
"where porcp.tran_id = porcpdet.tran_id "+
......@@ -1728,6 +1738,7 @@ public class PoReturnIC extends ValidatorEJB implements PoReturnICLocal,
}
......@@ -5526,9 +5537,9 @@ public class PoReturnIC extends ValidatorEJB implements PoReturnICLocal,
.append("<![CDATA[" + ls_grade + "]]>")
.append("</grade>");
//Added by sarita to set quantity and rate on 16 OCT 2018 [START]
valueXmlString.append("<quantity>")
/*valueXmlString.append("<quantity>")
.append("<![CDATA[" + mQty + "]]>")
.append("</quantity>");
.append("</quantity>"); -- Commented on 22 OCT 2018*/
valueXmlString.append("<rate protect =\"1\">")
.append("<![CDATA[" + mrate + "]]>")
.append("</rate>");
......@@ -7041,8 +7052,8 @@ public class PoReturnIC extends ValidatorEJB implements PoReturnICLocal,
ls_site = checkNull(genericUtility.getColumnValue(
"site_code", dom1));
//Added and commented by sarita as tran_date should come from dom1 [START]
ldt_trandtStr = checkNull(genericUtility.getColumnValue(
"tran_date", dom));
/*ldt_trandtStr = checkNull(genericUtility.getColumnValue(
"tran_date", dom));*/
ldt_trandtStr = checkNull(genericUtility.getColumnValue(
"tran_date", dom1));
//Added and commented by sarita as tran_date should come from dom1 [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