Commit 1d5580ec authored by wansari's avatar wansari

Changed by wasim on 15-04-2016 for line number issue during purchase receipt scanning.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101285 ce508802-f39f-4f6c-b175-0d175dae99d5
parent cfcc1535
...@@ -2658,9 +2658,11 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc ...@@ -2658,9 +2658,11 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc
java.sql.Date mfgDateDb = null; java.sql.Date mfgDateDb = null;
java.sql.Date expDateDb1 = null; java.sql.Date expDateDb1 = null;
//domID ++;wasim
while(rs.next()) while(rs.next())
{ {
domID ++; //domID ++;//wasim
//lineNo = " " + rs.getString("LINE_NO"); //lineNo = " " + rs.getString("LINE_NO");
//lineNo = lineNo.substring( lineNo.length()-3 ); //lineNo = lineNo.substring( lineNo.length()-3 );
...@@ -2972,11 +2974,11 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc ...@@ -2972,11 +2974,11 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc
System.out.println("@@Purchase Order="+purcOrder); System.out.println("@@Purchase Order="+purcOrder);
System.out.println("@@Tran Id="+tranId); System.out.println("@@Tran Id="+tranId);
if(maxLine != 0) /*if(maxLine != 0)
{ {
domID = maxLine; domID = maxLine;
} }*/
System.out.println("@@DOM id="+domID); System.out.println("@@DOM id Received="+domID);
//sql = " select sum(quantity) from porcp_art where item_code = ? and tran_id = ? "; //sql = " select sum(quantity) from porcp_art where item_code = ? and tran_id = ? ";
sql = " select sum(quantity) from porcp_art where item_code = ? and purc_order = ? "; sql = " select sum(quantity) from porcp_art where item_code = ? and purc_order = ? ";
...@@ -3037,10 +3039,12 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc ...@@ -3037,10 +3039,12 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc
{ {
continue;//item code already present in porcp_art table. continue;//item code already present in porcp_art table.
} }
//maxLine++;
//data++;
domID++; domID++;
maxLine++; lineNo = domID+"";
data++; System.out.println("@@DOM ID PGRL="+domID);
System.out.println("@@DOM ID="+domID);
//Changed by wasim on 17-02-2016 as user can enter quantity in case of PGRL [END] //Changed by wasim on 17-02-2016 as user can enter quantity in case of PGRL [END]
valueXmlString.append( "<Detail3 domID='"+ domID +"' objContext = '"+currentFormNo+"' selected=\"N\">\r\n" ); valueXmlString.append( "<Detail3 domID='"+ domID +"' objContext = '"+currentFormNo+"' selected=\"N\">\r\n" );
...@@ -3093,12 +3097,14 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc ...@@ -3093,12 +3097,14 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc
{ {
//Changed by wasim on 15-12-2015 to display quantity as shipper size for GRL [END] //Changed by wasim on 15-12-2015 to display quantity as shipper size for GRL [END]
domID++; domID++;
maxLine++; //maxLine++;
data++; //data++;
lineNo = domID+""; lineNo = domID+"";
shipperSizeData = shipperSizeData + shipperSize; shipperSizeData = shipperSizeData + shipperSize;
System.out.println("@@DOM ID GRL="+domID);
valueXmlString.append( "<Detail3 domID='"+ domID +"' objContext = '"+currentFormNo+"' selected=\"N\">\r\n" ); valueXmlString.append( "<Detail3 domID='"+ domID +"' objContext = '"+currentFormNo+"' selected=\"N\">\r\n" );
valueXmlString.append( "<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>\r\n" ); valueXmlString.append( "<attribute selected=\"N\" updateFlag=\"A\" status=\"N\" pkNames=\"\"/>\r\n" );
valueXmlString.append("<tran_id><![CDATA[").append(tranId).append("]]></tran_id>\r\n"); valueXmlString.append("<tran_id><![CDATA[").append(tranId).append("]]></tran_id>\r\n");
......
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