Commit 572bd779 authored by wansari's avatar wansari

D15AKAT008 updated showing multiple lines for GRL multi scan receipt.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99432 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 244e7cf7
......@@ -1725,7 +1725,7 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc
java.sql.Timestamp mfgDate = null;
java.sql.Timestamp lotMfgDate =null,lotExpDate =null,lotMfgDateForByPass=null,lotExpDateForByPass=null;
int selfLife = 0;
double shipperSize = 0d, grossWeight = 0d, netWeight = 0d, tareWeight = 0d;
double shipperSize = 0d, grossWeight = 0d, netWeight = 0d, tareWeight = 0d,shipperSizeData = 0d;
double exchRate = 0d, noArt = 0d, rate = 0d, netAmt = 0d , amount = 0d, loose = 0d;
int currentFormNo = 0;
......@@ -2999,25 +2999,27 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc
continue;//item code already present in porcp_art table.
}
/*domID++;
maxLine++;
data++;
lineNo = domID+"";*/
/*int loop = 0, l = 1;
loop = (int)loose + 1;
System.out.println("Loop="+loop);
double grlQty = noArt * shipperSize;
System.out.println("GRL QTY="+grlQty);*/
//Changed by wasim on 15-12-2015 to display quantity as shipper size for GRL [START]
if(data == 0)
{
shipperSizeData = shipperSize;
}
else
{
shipperSizeData = data + shipperSize;
}
System.out.println("shipperSizeData="+shipperSizeData);
//while(l <= loop)
//{
while(shipperSizeData < oldQuantity)
{
//Changed by wasim on 15-12-2015 to display quantity as shipper size for GRL [END]
domID++;
maxLine++;
data++;
lineNo = domID+"";
shipperSizeData = shipperSizeData + shipperSize;
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("<tran_id><![CDATA[").append(tranId).append("]]></tran_id>\r\n");
......@@ -3045,6 +3047,7 @@ private String disParmValue( Connection conn , String disparmVar ) throws ITMExc
valueXmlString.append("<no_art><![CDATA[").append("1").append("]]></no_art>\r\n");
//Changed by wasim on 14-10-2015 to enter quantity as shipper size and no_art will be saved as 1[END]
valueXmlString.append("</Detail3>\r\n");
}
//l++;
// System.out.println("L="+l);
//}
......
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