Commit e43522d5 authored by steurwadkar's avatar steurwadkar

Changes made to generate wave task from distribution order

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@182587 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8666b406
...@@ -5292,7 +5292,14 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -5292,7 +5292,14 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
{ {
System.out.println("Wave generation from Distorder start"); System.out.println("Wave generation from Distorder start");
distorderAllocate(headerDom, detailDom, xtraParams, conn); errString = distorderAllocate(headerDom, detailDom, xtraParams, conn);
System.out.println("errString after distorder allocation ["+errString+"]");
if(errString != null && errString.trim().length() > 0)
{
return errString;
}
if(saleOrderWiseMap != null && saleOrderWiseMap.size() > 0) if(saleOrderWiseMap != null && saleOrderWiseMap.size() > 0)
{ {
...@@ -27292,8 +27299,9 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -27292,8 +27299,9 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
//Changed by samadhan on 23/02/2016 for hold sale order End //Changed by samadhan on 23/02/2016 for hold sale order End
//Added by Santosh on 21/02/2018 to generate wave from dist order[Start] //Added by Santosh on 21/02/2018 to generate wave from dist order[Start]
private void distorderAllocate(Document headerDom, Document detailDom, String xtraParams, Connection conn) throws ITMException private String distorderAllocate(Document headerDom, Document detailDom, String xtraParams, Connection conn) throws ITMException
{ {
String retString = "";
String siteCode = "", getStockSql = "", itemCode = "", orderByStkStr = "", directPickLoc = "", resrvLoc = "", casePickLoc = "", activePickLoc = "", String siteCode = "", getStockSql = "", itemCode = "", orderByStkStr = "", directPickLoc = "", resrvLoc = "", casePickLoc = "", activePickLoc = "",
deepStoreLoc = "", partialResrvLoc = "", minShelf = "", isActivePickChecked = "N", singleLot = "N", lotNo = "", lotSl = "", locCode = "", deepStoreLoc = "", partialResrvLoc = "", minShelf = "", isActivePickChecked = "N", singleLot = "N", lotNo = "", lotSl = "", locCode = "",
unit = "", grade = "", siteCodeMfg = "", invStat = "", locTypeParent = "", locType = "", currentSelectdLotNo = "", isStockToDockChecked = "", unit = "", grade = "", siteCodeMfg = "", invStat = "", locTypeParent = "", locType = "", currentSelectdLotNo = "", isStockToDockChecked = "",
...@@ -27423,6 +27431,11 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -27423,6 +27431,11 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
} }
} }
if(qtyAlloc > pendingQty)
{
return retString = itmDBAccessEJB.getErrorString("","VPALLOCQTY","","",conn);
}
if(qtyAlloc > 0) if(qtyAlloc > 0)
{ {
HashMap itmVolumeMap1 = getItemVoumeMap(itemCode,"",conn); HashMap itmVolumeMap1 = getItemVoumeMap(itemCode,"",conn);
...@@ -28186,6 +28199,8 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo ...@@ -28186,6 +28199,8 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
System.out.println("WaveGenerationPrc.distorderAllocate()["+e.getMessage()+"]"); System.out.println("WaveGenerationPrc.distorderAllocate()["+e.getMessage()+"]");
throw new ITMException(e); throw new ITMException(e);
} }
System.out.println("distorder allocate retString["+retString+"]");
return retString;
} }
private String generateDistIssueHdr(String distOrder, String dissIssId, String tranCode, String transMode, String xtraParams,Connection conn) throws ITMException private String generateDistIssueHdr(String distOrder, String dissIssId, String tranCode, String transMode, String xtraParams,Connection conn) throws ITMException
{ {
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