Commit 721ffbc1 authored by dpawar's avatar dpawar

changes in condition


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94997 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b12b2126
......@@ -85,7 +85,7 @@ public String process(Document dom, Document dom2, String windowName, String xtr
PreparedStatement pstmt=null;
ResultSet rs=null;
int cnt=0,lineNo=0,recordProcess=0,serCount=0;
boolean isRecordFound=false;
boolean isRecordFound=false,isRecordPrc=false;
double quantityOld=0,rateOld=0, newRate=0;
Set<String> itemSerSet=new HashSet<String>();
Map<String,String>detail2Map=new HashMap<String,String>();
......@@ -382,12 +382,16 @@ public String process(Document dom, Document dom2, String windowName, String xtr
pstmt.close();
pstmt = null;
}
System.out.println("itemseries------>>["+unqItemSer+"]");
System.out.println("recordProcess1111---------->>["+recordProcess+"]");
System.out.println("detail2xml length---->>["+detail2Xml.length()+"]");
//fgfgf
if (detail2Xml.length() > 0){
errorString =saveRecordStockRevAdj(conn,headerXml,detail2Xml,siteCode);
System.out.println("After Saving record errorString--->>["+errorString+"]");
isRecordPrc=true;
if (errorString.indexOf("Success") > -1)
{
conn.commit();
......@@ -414,11 +418,14 @@ public String process(Document dom, Document dom2, String windowName, String xtr
return errorString;
}
}else{
}else if (detail2Xml.length() < 0 && ! isRecordPrc && recordProcess == itemSerSet.size()){
conn.rollback();
errCode = "VTDNFEV";// data not found
errorString = vdt.getErrorString("",errCode,userId);
return errorString;
}else{
System.out.println("-----continue in detail2xml condition...");
continue;
}
} //end for loop of set
......
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