Commit fbeee7d5 authored by msalla's avatar msalla

System is allowing to receipt more quantity then PO Qty


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@203422 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4c7422ae
...@@ -80,6 +80,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -80,6 +80,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
int ctr = 0; int ctr = 0;
int childNodeListLength; int childNodeListLength;
NodeList parentNodeList = null; NodeList parentNodeList = null;
String lineNoOrd;
//GENERATE_LOT_NO_AUTO //GENERATE_LOT_NO_AUTO
NodeList childNodeList = null; NodeList childNodeList = null;
...@@ -1414,7 +1415,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -1414,7 +1415,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
}//end purchase order case }//end purchase order case
if(childNodeName.equalsIgnoreCase("line_no__ord")) if(childNodeName.equalsIgnoreCase("line_no__ord"))
{ {
String POlineNo="",lineNoOrd="",site=""; String POlineNo="",site="";
lineNoOrd = checkNull(genericUtility.getColumnValue("line_no__ord", dom)); lineNoOrd = checkNull(genericUtility.getColumnValue("line_no__ord", dom));
siteCode = checkNull(genericUtility.getColumnValue("site_code", dom1)); siteCode = checkNull(genericUtility.getColumnValue("site_code", dom1));
if (lineNoOrd != null && lineNoOrd.length() > 0) if (lineNoOrd != null && lineNoOrd.length() > 0)
...@@ -1478,13 +1479,22 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -1478,13 +1479,22 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
String lsstkopt="",lsqcreqd="",mstatus2="",channelpartner="",sitecodech=""; String lsstkopt="",lsqcreqd="",mstatus2="",channelpartner="",sitecodech="";
purcOrder = checkNull(genericUtility.getColumnValue("purc_order", dom)); purcOrder = checkNull(genericUtility.getColumnValue("purc_order", dom));
lineNoItem = checkNull(genericUtility.getColumnValue("line_no", dom)); lineNoItem = checkNull(genericUtility.getColumnValue("line_no", dom));
//ADDED BY MONIKA-15-JULY-2019
lineNoOrd = checkNull(genericUtility.getColumnValue("line_no__ord", dom));
System.out.println("purcOrder"+purcOrder); System.out.println("purcOrder"+purcOrder);
if(purcOrder != null && purcOrder.trim().length() >0 ) if(purcOrder != null && purcOrder.trim().length() >0 )
{ {
sql="select count(*) from porddet where purc_order=? and item_code=?"; //COMMENTED BY MONIKA ON -15 JULY 2019
//sql="select count(*) from porddet where purc_order=? and item_code=? and line_no =?";
//CHANGES MADE BY MONIKA-ADDED LINE_NO-ON -15 JULY 2019..
sql="select count(*) from porddet where purc_order=? and item_code=? and line_no =?";
pstmt=conn.prepareStatement(sql); pstmt=conn.prepareStatement(sql);
pstmt.setString(1, purcOrder); pstmt.setString(1, purcOrder);
pstmt.setString(2, itemCode); pstmt.setString(2, itemCode);
//ADDED BY MONIKA-15-JULY-2019
pstmt.setString(3, lineNoOrd);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if (rs.next()) if (rs.next())
{ {
...@@ -3642,7 +3652,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec ...@@ -3642,7 +3652,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
} }
if(childNodeName.equalsIgnoreCase("form_no")) if(childNodeName.equalsIgnoreCase("form_no"))
{ {
String formNo="",eou="",lspurcorder="",mdate1="",lcquantity="",lsdutypaid="",itemCode="",suppCode="",lineNoOrd="",lsstatus="",lstranid="",lslinenorcp=""; String formNo="",eou="",lspurcorder="",mdate1="",lcquantity="",lsdutypaid="",itemCode="",suppCode="",lsstatus="",lstranid="",lslinenorcp="";
Timestamp Date=null; Timestamp Date=null;
int noOfParent=0; int noOfParent=0;
double lcct3qty=0,qtyUsed=0,preQty=0,qtybrow=0,totQty=0,quantity=0; double lcct3qty=0,qtyUsed=0,preQty=0,qtybrow=0,totQty=0,quantity=0;
......
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