Commit b2109d5a authored by msaggam's avatar msaggam

Purchase return : On full return click the lines are added but the receipt...

Purchase return : On full return click the lines are added but the receipt line number is not appearing and if a user is trying to edit and save then the system gives below error.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@202023 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 97ebf4e6
...@@ -1621,7 +1621,8 @@ PoReturnICRemote { ...@@ -1621,7 +1621,8 @@ PoReturnICRemote {
} }
} }
} }
if((tranIdRef.trim().length()>0 && (errCode.trim().length()==0 || errCode==null) ) ) //if((tranIdRef.trim().length()>0 && (errCode.trim().length()==0 || errCode==null) ) ) Commented by Mahesh Saggam on 13 June 2019
if(tranIdRef.trim().length()>0) //Added by Mahesh Saggam on 13 June 2019
{ {
NodeList detlList = dom2.getElementsByTagName("Detail2");//Added by sarita on 22 OCT 18 NodeList detlList = dom2.getElementsByTagName("Detail2");//Added by sarita on 22 OCT 18
...@@ -1686,6 +1687,36 @@ PoReturnICRemote { ...@@ -1686,6 +1687,36 @@ PoReturnICRemote {
} }
//Added by sarita on 22 OCT 18 [END] //Added by sarita on 22 OCT 18 [END]
// Added by Mahesh Saggam on 12 June 2019 [Start]
double rcpLineQty = 0.0;
sql="select case when sum(porcpdet.quantity) is null then 0 else sum(porcpdet.quantity) end as quantity from porcp, porcpdet " +
" where porcp.tran_id = porcpdet.tran_id"
+ " and porcp.tran_id__ref = ?"
+ " and porcpdet.line_no = ?"
+ " and porcp.tran_id <> ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranIdRef);
pstmt.setInt(2,QtyLineNo);
pstmt.setString(3,ls_tranid);
rs = pstmt.executeQuery();
if (rs.next())
{
rcpLineQty = rs.getDouble(1);
}
System.out.println("lineQty@@@["+rcpLineQty+"]");
rs.close();
rs = null;
pstmt.close();
pstmt = null;
det2Qty = getSumOfDetail2Quantity(dom2,QtyLineNo);
if( det2Qty > rcpLineQty )
{
errCode = "VTINVPQTY";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
// Added by Mahesh Saggam on 12 June 2019 [End]
sql="select case when sum(porcpdet.quantity) is null then 0 else sum(porcpdet.quantity) end " + sql="select case when sum(porcpdet.quantity) is null then 0 else sum(porcpdet.quantity) end " +
...@@ -4069,7 +4100,6 @@ PoReturnICRemote { ...@@ -4069,7 +4100,6 @@ PoReturnICRemote {
} else if (currentColumn.trim().equalsIgnoreCase("itm_default")) { } else if (currentColumn.trim().equalsIgnoreCase("itm_default")) {
String ls_retopt1=""; String ls_retopt1="";
ls_tranID = checkNull(genericUtility.getColumnValue( ls_tranID = checkNull(genericUtility.getColumnValue(
"tran_id", dom1)); "tran_id", dom1));
......
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