Commit 5cc3f760 authored by rbhogale's avatar rbhogale

Changed by Rohan on 15-04-13 for active quantity allocation depending upon Active Pick


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@31191 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5d4a4666
......@@ -1973,8 +1973,17 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
return errString = itmDBAccessEJB.getErrorString("","ATLSTSENAN","","",conn);
}
//Changed By Pragyan 26-02-13 To validate inputs combination given by the user.End
//Changed by Rohan on 15-04-13 for if active pick is N then allocate only case quantity.start
packSize = (Double)getItemVoumeMap(itemCode,"",conn).get("PACK_SIZE");
System.out.println("isActivePickChecked"+isActivePickChecked+"allocQty"+allocQty+"packSize"+packSize);
if("N".equalsIgnoreCase(isActivePickChecked))
{
allocQty = Math.floor(allocQty / packSize) * packSize;
}
//Changed by Rohan on 15-04-13 for if active pick is N then allocate only case quantity.end
System.out.println(" inside manuall flag");
if("M".equalsIgnoreCase(allocFlag) && allocQty != 0 && manualAllocqty > 0)
{
......@@ -1986,7 +1995,9 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
}
// Changed by rohan on 14/08/12 for stock allocation end.
//Changed by sumit on 31/12/12 validation if allocation quantity is less then shiper size start
if("N".equalsIgnoreCase(isActivePickChecked) && allocQty < (Double)getItemVoumeMap(itemCode,"",conn).get("PACK_SIZE"))
//Changed by Rohan on 15-04-13 for adding condition of allocqty not null
//if("N".equalsIgnoreCase(isActivePickChecked) && allocQty < (Double)getItemVoumeMap(itemCode,"",conn).get("PACK_SIZE"))
if("N".equalsIgnoreCase(isActivePickChecked) && allocQty != 0 && allocQty < packSize)
{
System.out.println(" inside sumit active");
errString = getError(saleOrder,"INVORDQTY",conn);
......@@ -2221,7 +2232,8 @@ public class WaveGenerationPrc extends ProcessEJB implements WaveGenerationPrcLo
tempListForRepl.add(tempMapReplenishment);
itemInfoMapForRepl.put(itemCode+":"+siteCode+":"+lotNo+":"+lotSl+":"+locCd, tempListForRepl);
}
packSize = (Double)itmVolumeMap.get("PACK_SIZE");//How many item contains in the Case
//Changed by Rohan on 15-04-13 for get pack size upper in coding
//packSize = (Double)itmVolumeMap.get("PACK_SIZE");//How many item contains in the Case
//Changed By Pragyan 12/03/13 to define the veriable once.start
/*double perItemVolume = (Double)itmVolumeMap.get("ITEM_SIZE");//Each Item Volume
double caseVolume = (Double)itmVolumeMap.get("LOT_SIZE");//Items Case Volume
......
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