Commit e0d9c43c authored by msingh's avatar msingh

Changes in ConsolidatToDoc.java for DDUK


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99367 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e76858a6
......@@ -245,12 +245,42 @@ public class ConsolidatToDoc {
String key = (String)it.next();
System.out.println("CURRENT KEY ["+key+"]");
projectName = distCommon.getDisparams("999999","PROJECT",conn);
System.out.println("projectName ========["+projectName+"]");
//if(key.equalsIgnoreCase("P-TASK"))
//Changed By Pragyan 02/01/13 to check the consolidetion
// 23/09/12 manoharan M-PICK and M-PACK to considered together and split accordingly to number of M-PACK
//if("A-PICK".equalsIgnoreCase(key) || "C-PICK".equalsIgnoreCase(key) || "M-PICK".equalsIgnoreCase(key) || "M-PACK".equalsIgnoreCase(key) )
//if("A-PICK".equalsIgnoreCase(key) || "C-PICK".equalsIgnoreCase(key))
if("A-PICK".equalsIgnoreCase(key) || "C-PICK".equalsIgnoreCase(key) || "P-PICK".equalsIgnoreCase(key) || "M-PICK".equalsIgnoreCase(key))
{
// Changed by Manish on 07/12/15 for DDWMS merging [start]
if("DDUK".equalsIgnoreCase(projectName))
{
//Changed by wasim to Despatch the order with the consolidated order line number on 01-07-2015 [START]
System.out.println("This is group by query.");
sql = "SELECT POD.PICK_ORDER AS ID, POD.LINE_NO AS LINE_NO__ORD, POD.SITE_CODE,"+
" POD.ITEM_CODE,P.ITEM_CODE, P.LOC_CODE, P.LOC_CODE__TO, P.LOT_NO, P.LOT_SL,"+
" POD.NO_ART,SUM (P.QUANTITY - CASE WHEN P.DEALLOC_QTY IS NULL THEN 0 ELSE P.DEALLOC_QTY END) AS QUANTITY, POD.SALE_ORDER, POD.EXP_LEV, PO.WAVE_ID,"+
" POD.LINE_NO__SORD,PH.PALLET_NO "+
" FROM PICK_ISS_DET P, PICK_ORD_HDR PO , PICK_ORD_DET POD,PICK_ISS_HDR PH "+
" WHERE POD.PICK_ORDER = PO.PICK_ORDER "+
" AND POD.PICK_ORDER = P.PICK_ORDER "+
" AND POD.LINE_NO = P.LINE_NO__ORD "+
" AND PH.PICK_ORDER = P.PICK_ORDER "+
" AND PH.TRAN_ID = P.TRAN_ID "+
" AND (P.QUANTITY - CASE WHEN P.DEALLOC_QTY IS NULL THEN 0 ELSE P.DEALLOC_QTY END) > 0 "+
" AND PO.PICK_ORDER = ? "+
" GROUP BY "+
" POD.PICK_ORDER, POD.LINE_NO, POD.SITE_CODE,"+
" POD.ITEM_CODE,P.ITEM_CODE, P.LOC_CODE, P.LOC_CODE__TO, P.LOT_NO, P.LOT_SL,"+
" POD.NO_ART,POD.SALE_ORDER, POD.EXP_LEV, PO.WAVE_ID,"+
" POD.LINE_NO__SORD,PH.PALLET_NO";
//Changed by wasim to Despatch the order with the consolidated order line number on 01-07-2015 [END]
}
// Changed by Manish on 07/12/15 for DDWMS merging [END]
else
{
//Changed by rohan on 10-08-12
//isPick = true;
......@@ -271,7 +301,7 @@ public class ConsolidatToDoc {
//Changed by sumit on 11/03/13 adding condition only quantity avilable record should be taken
" AND (P.QUANTITY - CASE WHEN P.DEALLOC_QTY IS NULL THEN 0 ELSE P.DEALLOC_QTY END) > 0 "+
" AND PO.PICK_ORDER = ? ";
}
//End changes by gulzar on 12/27/2011
}
......@@ -376,7 +406,6 @@ public class ConsolidatToDoc {
//Changed by sumit on 12/03/13 calculating number of art start
// Changed by Manish on 05/11/15 for DDWMS merging [start]
projectName = distCommon.getDisparams("999999","PROJECT",conn);
if("DDUK".equalsIgnoreCase(projectName))
{
if(lotNo == null || lotNo.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