Commit 99abd775 authored by ngadkari's avatar ngadkari

dispatch entry for Non Inventory Item.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@187143 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e167e2f3
......@@ -3839,32 +3839,36 @@ public class PostOrderProcess extends ProcessEJB implements PostOrderProcessLoca
//System.out.println("updQty1 < quantityStduom ["+updQty1+"<"+quantityStduom);
System.out.println("-------["+updQtyTot+"<"+sordItmQty+"]------");
//if(updQtyTot < quantityStduom)
if(updQtyTot < sordItmQty)
{
String prtQty[] = {"Ship complete order", "Ship part order - Full Qty", "Ship Available" };
String prtQtyMsg = "";
if("0".equalsIgnoreCase(partQty)){
prtQtyMsg = prtQty[0];
}else{
prtQtyMsg = prtQty[1];
}
System.out.println("No Stock Available PartQty");
skipline = skipline + "'"+lineNo;
isRejected=true;
sordItemBean.setRejected(isRejected);
sordItemBean.setSkipline(skipline);
logMsg = saleOrder + "\t" + itemCode + "\t"+locCode + "\t" +lotNo+"\t"+ lineNo + "\tNo Stock Available";
strToWrite=strToWrite+logMsg+"\t\r\n";
postLog = "Short stock for "+prtQtyMsg+" type PartQty "+saleOrder+" "+itemCode+" "+locCode+" "+lotNo+" "+lineNo;
errorLog("P09", postLog,"sorditem",saleOrder, lineNo, expLev, " ", " ", saleOrder, "S-DSP","REAS_CODE","W_POST_ORDER",conn);
partQtyFlag = true; //If partQty is 0
if("0".equalsIgnoreCase(partQty))
{
break;
//if(updQtyTot < quantityStduom)
if(stockOpt != 0) //condition added by nandkumar gadkari on 02/07/18
{
if(updQtyTot < sordItmQty)
{
String prtQty[] = {"Ship complete order", "Ship part order - Full Qty", "Ship Available" };
String prtQtyMsg = "";
if("0".equalsIgnoreCase(partQty)){
prtQtyMsg = prtQty[0];
}else{
prtQtyMsg = prtQty[1];
}
System.out.println("No Stock Available PartQty");
skipline = skipline + "'"+lineNo;
isRejected=true;
sordItemBean.setRejected(isRejected);
sordItemBean.setSkipline(skipline);
logMsg = saleOrder + "\t" + itemCode + "\t"+locCode + "\t" +lotNo+"\t"+ lineNo + "\tNo Stock Available";
strToWrite=strToWrite+logMsg+"\t\r\n";
postLog = "Short stock for "+prtQtyMsg+" type PartQty "+saleOrder+" "+itemCode+" "+locCode+" "+lotNo+" "+lineNo;
errorLog("P09", postLog,"sorditem",saleOrder, lineNo, expLev, " ", " ", saleOrder, "S-DSP","REAS_CODE","W_POST_ORDER",conn);
partQtyFlag = true; //If partQty is 0
if("0".equalsIgnoreCase(partQty))
{
break;
}
continue;
}
continue;
}
}//end of if(stockOpt != 0) condition
}//end of if(netQuantity > 0)
}//end of SordItemBean loop
......
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