Commit af28eff1 authored by rbhogale's avatar rbhogale

Changed by Rohan on 30-30-13 for consolidation process manually


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92905 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 02982cd3
......@@ -1175,6 +1175,25 @@ public class ConsolidatToDoc {
errString = "";
return errString;
}
//Changed by Rohan on 2=30-03-13 to delete sordalloc where stock alloc qty is zero.start
System.out.println("isError::"+isError+"errString[::"+errString+"]");
if(!isError && ("".equalsIgnoreCase(errString)|| errString == null) && errString.trim().length() == 0)
{
System.out.println("Delete records:::::::");
sql = " DELETE FROM SORDALLOC WHERE QTY_ALLOC = 0 ";
pstmt = conn.prepareStatement(sql);
int updCnt = pstmt.executeUpdate();
if( updCnt > 0 )
{
System.out.println(" No of record deleted successfully "+updCnt);
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
//Changed by Rohan on 2=30-03-13 to delete sordalloc where stock alloc qty is zero.end
}
......@@ -1539,8 +1558,9 @@ public class ConsolidatToDoc {
return isConfirmed;
}
private boolean isShipmentExist(String despId , Connection conn)throws Exception
//Chnaged by Rohan on 30-03-13 to change modifier to public to call from ConsolidatToDocPrc.java
//private boolean isShipmentExist(String despId , Connection conn)throws Exception
public boolean isShipmentExist(String despId , Connection conn)throws Exception
{
String sql = "";
boolean isDespExist = false;
......
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