Commit dd69a146 authored by msharma's avatar msharma

Set Pallet Wt and dimension from porcpdet table


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95185 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c3c9c668
...@@ -1643,6 +1643,21 @@ public class GenerateSaleOrderPrc extends ProcessEJB implements GenerateSaleOrde ...@@ -1643,6 +1643,21 @@ public class GenerateSaleOrderPrc extends ProcessEJB implements GenerateSaleOrde
while( rs.next() ) while( rs.next() )
{ {
lnNoSord = rs.getString("line_no"); lnNoSord = rs.getString("line_no");
//Added by manoj dtd 31/05/2014 to set values from porcpdet
pstmt1=conn.prepareStatement("select pallet_wt,dimension from porcpdet where tran_id=? and line_no=?");
pstmt1.setString(1,tranId);
pstmt1.setString(2,lnNoSord);
rs1=pstmt1.executeQuery();
if(rs1.next())
{
dimension = rs1.getString("dimension");
palletWt = rs1.getDouble("pallet_wt");
}
rs1.close();
rs1=null;
pstmt1.close();
pstmt1=null;
itemCode = rs.getString("item_code") == null ? " " : rs.getString("item_code"); itemCode = rs.getString("item_code") == null ? " " : rs.getString("item_code");
quantity = rs.getString("quantity") == null ? "0" : rs.getString("quantity") ; quantity = rs.getString("quantity") == null ? "0" : rs.getString("quantity") ;
rate = rs.getString("rate")== null ? " " : rs.getString("rate"); rate = rs.getString("rate")== null ? " " : rs.getString("rate");
...@@ -1713,8 +1728,10 @@ public class GenerateSaleOrderPrc extends ProcessEJB implements GenerateSaleOrde ...@@ -1713,8 +1728,10 @@ public class GenerateSaleOrderPrc extends ProcessEJB implements GenerateSaleOrde
grossWeight = rs1.getDouble("GROSS_WEIGHT"); grossWeight = rs1.getDouble("GROSS_WEIGHT");
tareWeight = rs1.getDouble("TARE_WEIGHT"); tareWeight = rs1.getDouble("TARE_WEIGHT");
netWeight = rs1.getDouble("NET_WEIGHT"); netWeight = rs1.getDouble("NET_WEIGHT");
/*Commented by Manoj dtd 31/05/2014 to set dimension,palletWt from porcpdet
dimension = rs1.getString("DIMENSION"); dimension = rs1.getString("DIMENSION");
palletWt = rs1.getDouble("PALLET_WT"); palletWt = rs1.getDouble("PALLET_WT");
*/
packingStk = rs1.getString("PACK_INSTR"); packingStk = rs1.getString("PACK_INSTR");
cAllocQty = rs1.getDouble("alloc_qty"); cAllocQty = rs1.getDouble("alloc_qty");
} }
......
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