Commit 4491c840 authored by caluka's avatar caluka

no_art,net_weight group by condition removed in PORCPDET table


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@102779 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 261eba8d
...@@ -3725,19 +3725,19 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp ...@@ -3725,19 +3725,19 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
// kunal // kunal
// on // on
// 5/11/12 // 5/11/12
+ " ,(case when no_art is null then 0 else no_art end) as no_art," // stary + " , sum(case when no_art is null then 0 else no_art end) as no_art," // stary
// added // added
// by // by
// chandrashekar // chandrashekar
// on // on
// 06-01-2015 // 06-01-2015
+ "(case when net_weight is null then 0 else net_weight end) as net_weight"// stary + " sum(case when net_weight is null then 0 else net_weight end) as net_weight"// stary
// added // added
// by // by
// chandrashekar // chandrashekar
// on // on
// 06-01-2015 // 06-01-2015
+ " ,expiry_date " + " FROM PORCPDET WHERE TRAN_ID = ? " + " AND ITEM_CODE = ? " + " GROUP BY (CASE WHEN BATCH_NO IS NULL THEN ' ' ELSE BATCH_NO END), " + " LOC_CODE, UNIT__STD, (CASE WHEN SPEC_REF IS NULL THEN ' ' ELSE SPEC_REF END), " + " MFG_DATE ,expiry_date,LOT_NO,supp_code__mnfr,no_art,net_weight " + " ORDER BY MIN(LINE_NO) ASC "; + " ,expiry_date " + " FROM PORCPDET WHERE TRAN_ID = ? " + " AND ITEM_CODE = ? " + " GROUP BY (CASE WHEN BATCH_NO IS NULL THEN ' ' ELSE BATCH_NO END), " + " LOC_CODE, UNIT__STD, (CASE WHEN SPEC_REF IS NULL THEN ' ' ELSE SPEC_REF END), " + " MFG_DATE ,expiry_date,LOT_NO,supp_code__mnfr " + " ORDER BY MIN(LINE_NO) ASC ";
pstmt1 = conn.prepareStatement(sql); pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, tranId); pstmt1.setString(1, tranId);
pstmt1.setString(2, itemCode); pstmt1.setString(2, itemCode);
......
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