Commit d8afff01 authored by manohar's avatar manohar

In case sorditem.nature is null then considered as 'C'


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92580 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ebb92832
...@@ -460,7 +460,7 @@ public class AssociatePrc extends ProcessEJB implements AssociatePrcLocal , Asso ...@@ -460,7 +460,7 @@ public class AssociatePrc extends ProcessEJB implements AssociatePrcLocal , Asso
sql = sql + " and b.site_code = ? "; sql = sql + " and b.site_code = ? ";
sql = sql + " and (case when b.order_type is null then ' ' else b.order_type end ) like '" + orderType + "'"; sql = sql + " and (case when b.order_type is null then ' ' else b.order_type end ) like '" + orderType + "'";
sql = sql + " and (b.status is null or b.status in ('P','D')) "; sql = sql + " and (b.status is null or b.status in ('P','D')) ";
sql = sql + " and b.nature like ? "; sql = sql + " and case when b.nature is null then 'C' else b.nature end like ? ";
sql = sql + " and b.line_type <> 'B' "; sql = sql + " and b.line_type <> 'B' ";
sql = sql + " and (b.quantity - qty_desp) > 0 "; sql = sql + " and (b.quantity - qty_desp) > 0 ";
sql = sql + " ) "; sql = sql + " ) ";
......
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