Commit bcf263c1 authored by wansari's avatar wansari

W15GSUN003 update source code for allocation loxcation code to


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99156 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 57b39d16
......@@ -427,7 +427,7 @@ public class ScheduleAWMSInOutTasks implements Schedule
if("PR".equalsIgnoreCase(refSer))
{
System.out.println("Going for Allocation");
System.out.println("Going for Allocation location code from for PR");
HashMap hashMap = new HashMap();
hashMap.put("tran_date", new java.sql.Date(System.currentTimeMillis()));
hashMap.put("ref_ser",refSer);
......@@ -449,9 +449,11 @@ public class ScheduleAWMSInOutTasks implements Schedule
System.out.println("distStkUpd.UpdAllocTrace(HashMap, Connection) : Sucessuful!");
}
}
else if("D-SO".equalsIgnoreCase(refSer) || "S-ORD".equalsIgnoreCase(refSer))
//Changed by wasim on 17-11-2015 to allocate quantity to location code to
//else if("D-SO".equalsIgnoreCase(refSer) || "S-ORD".equalsIgnoreCase(refSer))
if("D-SO".equalsIgnoreCase(refSer) || "S-ORD".equalsIgnoreCase(refSer) || "PR".equalsIgnoreCase(refSer))
{
System.out.println("Going for Allocation");
System.out.println("Going for Allocation location code TO");
HashMap hashMap = new HashMap();
hashMap.put("tran_date", new java.sql.Date(System.currentTimeMillis()));
hashMap.put("ref_ser",refSer);
......@@ -505,8 +507,18 @@ public class ScheduleAWMSInOutTasks implements Schedule
System.out.println("Stock transfer confirm for ===============PR="+errString);
if( errString != null && errString.indexOf( "CONFSUCC" ) > -1)
{
System.out.println("Stock Transfer confirmed successfully------------");
conn.commit();
errString = allocStockLocCodeTo(allocList,tranIdIssList,refSer,refId,countDso,conn);
System.out.println("Return from alloc To for PR="+errString);
if(errString != null && (errString.indexOf("CONFSTKSUCC") > -1))
{
System.out.println("Stock Transfer confirmed successfully------------");
conn.commit();
}
else
{
throw new Exception (errString);
}
}
else
{
......
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