Commit 419f8ca3 authored by caluka's avatar caluka

dis_link condition is removed in site_customer,customer table customer code condition


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98481 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f9928c18
...@@ -254,7 +254,8 @@ public class GenerateSaleOrderPrc extends ProcessEJB implements GenerateSaleOrde ...@@ -254,7 +254,8 @@ public class GenerateSaleOrderPrc extends ProcessEJB implements GenerateSaleOrde
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
sql = "select count(*) from site_customer where cust_code = ? and channel_partner = 'Y' and dis_link = 'A' and site_code = ? "; //sql = "select count(*) from site_customer where cust_code = ? and channel_partner = 'Y' and dis_link = 'A' and site_code = ? ";
sql = "select count(*) from site_customer where cust_code = ? and channel_partner = 'Y' and site_code = ? ";//Change by chandrashekar 0n 12-AUG-2015
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,custCode); pstmt.setString(1,custCode);
pstmt.setString(2,siteCode); pstmt.setString(2,siteCode);
...@@ -269,7 +270,8 @@ public class GenerateSaleOrderPrc extends ProcessEJB implements GenerateSaleOrde ...@@ -269,7 +270,8 @@ public class GenerateSaleOrderPrc extends ProcessEJB implements GenerateSaleOrde
pstmt = null; pstmt = null;
if(cusCodeFound == 0) if(cusCodeFound == 0)
{ {
sql = "select count(*) from customer where cust_code = ? and channel_partner = 'Y' and dis_link = 'A' "; //sql = "select count(*) from customer where cust_code = ? and channel_partner = 'Y' and dis_link = 'A' ";
sql = "select count(*) from customer where cust_code = ? and channel_partner = 'Y' ";//Change by chandrashekar 0n 12-AUG-2015
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,custCode); pstmt.setString(1,custCode);
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