Commit e8241bda authored by dpawar's avatar dpawar

trim item code and cust code


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97908 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e0e14463
......@@ -7490,8 +7490,12 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales
{
itemCode = genericUtility.getColumnValue( "cust_item__ref", dom );
custCode = genericUtility.getColumnValue( "cust_code", dom1 );
//Changed by Dadaso on 22/04/15 [trim cust code ]
custCode = custCode == null ? "" : custCode.trim();
if( itemCode != null && itemCode.trim().length() > 0 && !"null".equals(itemCode))
{
//Changed by Dadaso on 22/04/15 [trim itemCode ]
itemCode = itemCode.trim();
sqlStr = " select count(*) mitem_cnt from customeritem "
+" where cust_code = ? " //:custCode
+" and item_code__ref = ? "; //:ls_item_code ;
......@@ -7499,6 +7503,7 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales
pstmt = conn.prepareStatement( sqlStr );
pstmt.setString( 1, custCode );
pstmt.setString( 2, itemCode );
rs = pstmt.executeQuery();
if( rs.next() )
{
......
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