Commit 6270a5b7 authored by sshinde's avatar sshinde

Add one more Condtion to check length of channel partner


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93741 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5501ab25
......@@ -4079,7 +4079,8 @@ public class PoRcpConf extends ActionHandlerEJB implements PoRcpConfLocal, PoRcp
sordSite = checkNull(rs.getString("SITE_CODE__CH"));
}
if(channelPartner == null )
/* added by sachin on 08-aug-13 check length of channel partner string */
if(channelPartner == null || channelPartner.trim().length() == 0)
{
sql = "SELECT (CASE WHEN CHANNEL_PARTNER IS NULL THEN 'N' ELSE CHANNEL_PARTNER END) AS CHANNEL_PARTNER, DIS_LINK, SITE_CODE FROM SUPPLIER WHERE SUPP_CODE = ? ";
pstmt1 = conn.prepareStatement(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