Commit c6cf8c28 authored by rtiwari's avatar rtiwari

update for set no_art 0 if qty less then qty_epr_art


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95606 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1a936cb2
......@@ -987,7 +987,7 @@ public class StockUpdate
+"and site_code = '"+this.siteCode +"'"
+"and loc_code = '"+this.locationCode +"'"
+"and lot_no = '"+this.lotNo+"'"
+"and lot_sl = '"+this.lotSl+"' and no_art<=0";
+"and lot_sl = '"+this.lotSl+"' and no_art<=0 and quantity > 0 ";
System.out.println("sql---"+sql);
pstmt=conn.prepareStatement(sql);
rs=pstmt.executeQuery();
......
......@@ -550,9 +550,20 @@ public class StockTransferConf extends ActionHandlerEJB implements StockTransfer
partnoArt=0;
}
int calcnoArt=(int) (quantity/qtyPerArt);
// ADDED BY RITESH ON 08/07/14 START
int partialArt=(int) (quantity/qtyPerArt);
if(partialArt == 0)
{
partialArt = 1;
}else
{
partialArt = 0;
}
System.out.println("quantity["+quantity+"]--qtyPerArt["+qtyPerArt+"]--calcnoArt["+calcnoArt+"]--partnoArt["+partnoArt+"]");
updateRowMap.put("no_art", calcnoArt);
System.out.println("partialArt -- "+partialArt);
updateRowMap.put("no_art", calcnoArt + partialArt);
// ADDED BY RITESH ON 08/07/14 END
/* Added by Ashish Sonawane on 07-sep-12 as per Manoharan Sir in case of partial GRL no_art to be set as 0 for issue [END] */
updateRowMap.put("tran_ser", "XFRX");
......
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