Commit dba668ed authored by dsawant's avatar dsawant

updated


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96065 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 31a0be81
......@@ -116,7 +116,7 @@ public class DistIssWiz extends ValidatorEJB implements DistIssWizLocal, DistIss
PreparedStatement pstmt = null ;
ResultSet rs = null;
String sql = "",locCode ="",invstat="",aval="",avalyn="";
double qtyConf=0,qtyShip=0,totQty=0,detquantity=0,stkquantity=0;
double qtyConf=0,qtyShip=0,totQty=0,detquantity=0,stkquantity=0,quantity=0,totquantity=0;
String squantity="",distOrder = "",itemCode="",confirmed="",tranId="",siteCode="",lotSl="",addUser="",tranCode="";
try {
......@@ -435,9 +435,11 @@ public class DistIssWiz extends ValidatorEJB implements DistIssWizLocal, DistIss
System.out.println("squantity"+squantity+"workOrder<><><>"+distOrder+">>D"+siteCode+"FDFf"+lotSl);
if (squantity == null || squantity.trim().length() == 0)
{
quantity = 0;
}
else
{
quantity = Double.parseDouble(squantity);
}
sql = "select quantity from stock where site_code = ? AND LOT_SL = ? AND QUANTITY > 0";
......@@ -467,8 +469,8 @@ public class DistIssWiz extends ValidatorEJB implements DistIssWizLocal, DistIss
pstmt = null;
rs = null;
System.out.println("detquantity>>"+detquantity);
if(detquantity > stkquantity)
totquantity = detquantity + quantity;
if(totquantity > stkquantity)
{
errCode = "DIDOQUANST";
errString = getErrorString("quantity",errCode,userId);
......
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