Commit 61cea745 authored by prane's avatar prane

If Price list not defined in SO and rate 0 then validate for chargable item ie for 0 amt invoice.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@208208 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b84db261
......@@ -2432,9 +2432,9 @@ public class PostOrderProcess extends ProcessEJB implements PostOrderProcessLoca
partQty = sordItemBean.getSorderBean().getPartQty();
System.out.println("partQty "+partQty);
nature = sordItemBean.getNature();
//System.out.println("nature::: "+nature);
System.out.println("nature::: "+nature);
itemCodeParent=sordItemBean.getItemCodeParent();
//System.out.println("itemCodeParent:::["+itemCodeParent+"]");
System.out.println("itemCodeParent:::["+itemCodeParent+"]");
unit = sordItemBean.getUnit();
unitStd = sordItemBean.getUnitStd();
System.out.println("@@@unit["+unit+"]");
......@@ -3102,8 +3102,28 @@ public class PostOrderProcess extends ProcessEJB implements PostOrderProcessLoca
}//end of if("B".equalsIgnoreCase(priceListType))
}//end of if(priceList != null && priceList.trim().length() > 0)
else //Pavan Rane 25sep19 start [to skip chargable item line if rate zero and pricelist is not defined]
{
if(nature == null || nature.trim().length()==0)
{
nature = "C";
}
if("C".equalsIgnoreCase(nature) )
{
skipline = skipline + "'"+lineNo;
isRejected=true;
stockBean.setRejected(isRejected);
stockBean.setSkipline(skipline);
skiplineCnt++;
rateFailed = "T";
logMsg= saleOrder + "\t" + itemCode + "\t"+locCode + "\t" +lotNo+"\t"+ lineNo + "\tRate is zero and Pricelist not defined for chargable Item ";
strToWrite = strToWrite +createPostLog(saleOrder, itemCode, locCode, lotNo, lineNo, "Rate is zero and Pricelist not defined for chargable Item ");
postLog = "Rate is zero and Pricelist not defined for chargable Item "+saleOrder+" "+itemCode+" "+lotNo+" "+lineNo;
errorLog("Error",postLog,"sorditem",saleOrder, lineNo, expLev, " ", " ", saleOrder, "S-DSP","REAS_CODE","W_POST_ORDER",conn);
continue;
}
}
//Pavan Rane 25sep19 end [to skip chargable item line if pricelist is not defined]
if(priceListDisc == null || priceListDisc.trim().length() == 0)
{
......
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