Commit 33b547f3 authored by vkadam's avatar vkadam

Add noOfArt condition while issue.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98658 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 51ce93bd
...@@ -927,9 +927,10 @@ public class StockUpdate ...@@ -927,9 +927,10 @@ public class StockUpdate
mstkQty = (mstkQty - meffQty); mstkQty = (mstkQty - meffQty);
if (count > 0) if (count > 0)
{ {
System.out.println("tanser>>>>"+this.tranSer); System.out.println("@V@ tanser>>>>"+this.tranSer);
if(this.tranSer.equalsIgnoreCase("QC-ORD")) if(this.tranSer.equalsIgnoreCase("QC-ORD"))
{ {
System.out.println("@V@ QC-ORD.......");
sql=" update stock set quantity = quantity - ? ," sql=" update stock set quantity = quantity - ? ,"
+" ltran_date = ? ," +" ltran_date = ? ,"
+" last_iss_date = ? ," +" last_iss_date = ? ,"
...@@ -940,7 +941,8 @@ public class StockUpdate ...@@ -940,7 +941,8 @@ public class StockUpdate
+" net_weight = net_weight - ? ," +" net_weight = net_weight - ? ,"
+" tare_weight = tare_weight - ? ," +" tare_weight = tare_weight - ? ,"
+" last_phyc_date = ? ," +" last_phyc_date = ? ,"
+" potency_perc = ? " +" potency_perc = ? ,"
+" no_art = no_art - ? " // VALLABH KADAM
+" where item_code = '"+this.itemCode+"'" +" where item_code = '"+this.itemCode+"'"
+" and site_code = '"+this.siteCode+"'" +" and site_code = '"+this.siteCode+"'"
+" and loc_code = '"+this.locationCode+"'" +" and loc_code = '"+this.locationCode+"'"
...@@ -959,6 +961,7 @@ public class StockUpdate ...@@ -959,6 +961,7 @@ public class StockUpdate
pstmt.setDouble(9,this.tareWeight); pstmt.setDouble(9,this.tareWeight);
pstmt.setTimestamp(10,this.lastPhycDate); pstmt.setTimestamp(10,this.lastPhycDate);
pstmt.setDouble(11,this.potencyPerc); pstmt.setDouble(11,this.potencyPerc);
pstmt.setDouble(12,this.noArt);
pstmt.executeUpdate(); pstmt.executeUpdate();
...@@ -966,6 +969,7 @@ public class StockUpdate ...@@ -966,6 +969,7 @@ public class StockUpdate
rs.close(); rs.close();
}else{ }else{
System.out.println("@V@ Not QC- ORD..........");
sql=" update stock set quantity = quantity - ? ," sql=" update stock set quantity = quantity - ? ,"
+" ltran_date = ? ," +" ltran_date = ? ,"
+" last_iss_date = ? ," +" last_iss_date = ? ,"
...@@ -975,13 +979,14 @@ public class StockUpdate ...@@ -975,13 +979,14 @@ public class StockUpdate
+" gross_weight = gross_weight - ? ," +" gross_weight = gross_weight - ? ,"
+" net_weight = net_weight - ? ," +" net_weight = net_weight - ? ,"
+" tare_weight = tare_weight - ? ," +" tare_weight = tare_weight - ? ,"
+" last_phyc_date = ? " +" last_phyc_date = ? ,"
+" no_art = no_art - ? "
+" where item_code = '"+this.itemCode+"'" +" where item_code = '"+this.itemCode+"'"
+" and site_code = '"+this.siteCode+"'" +" and site_code = '"+this.siteCode+"'"
+" and loc_code = '"+this.locationCode+"'" +" and loc_code = '"+this.locationCode+"'"
+" and lot_no = '"+this.lotNo+"'" +" and lot_no = '"+this.lotNo+"'"
+" and lot_sl = '"+this.lotSl+"'"; +" and lot_sl = '"+this.lotSl+"'";
System.out.println("Query :::- ["+sql+"]"); System.out.println("@V@ Query :::- ["+sql+"]");
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1,this.qtyStduom); pstmt.setDouble(1,this.qtyStduom);
pstmt.setTimestamp(2,this.tranDate); pstmt.setTimestamp(2,this.tranDate);
...@@ -993,6 +998,7 @@ public class StockUpdate ...@@ -993,6 +998,7 @@ public class StockUpdate
pstmt.setDouble(8,this.netWeight); pstmt.setDouble(8,this.netWeight);
pstmt.setDouble(9,this.tareWeight); pstmt.setDouble(9,this.tareWeight);
pstmt.setTimestamp(10,this.lastPhycDate); pstmt.setTimestamp(10,this.lastPhycDate);
pstmt.setDouble(11,this.noArt);
pstmt.executeUpdate(); pstmt.executeUpdate();
pstmt.close(); pstmt.close();
......
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