Commit cd447ac6 authored by manohar's avatar manohar

site code consideration packinglist action


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92471 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 31ad9952
...@@ -727,8 +727,8 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal, ...@@ -727,8 +727,8 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
+"FROM INV_PACK_RCP i, inv_pack h " +"FROM INV_PACK_RCP i, inv_pack h "
+"WHERE h.tran_id = i.tran_id " +"WHERE h.tran_id = i.tran_id "
+ " and i.TRAN_ID in (" + tranIds + " ) " + " and i.TRAN_ID in (" + tranIds + " ) "
+ " AND (select s.quantity - case when s.alloc_qty is null then 0 else s.alloc_qty end from stock s where s.item_code = i.item_code and i.site_code = h.site_code " + " AND (select s.quantity - case when s.alloc_qty is null then 0 else s.alloc_qty end from stock s where s.item_code = i.item_code and S.site_code = h.site_code "
+ " and i.loc_code = s.loc_code and i.lot_no = s.lot_no and i.lot_sl = s.lot_sl ) > i.QUANTITY " + " and i.loc_code = s.loc_code and i.lot_no = s.lot_no and i.lot_sl = s.lot_sl ) >= i.QUANTITY "
+ " ORDER BY i.LINE_NO__ORD"; + " ORDER BY i.LINE_NO__ORD";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
......
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