Commit f78d68d4 authored by cchaudhari's avatar cchaudhari

By default when sold to is enter same has to be reflected in Bill to and deliver to code.

if user change the Delivery to code then bill to  code need to change as per delivery to code. 

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@201999 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f360b964
......@@ -1847,6 +1847,7 @@ implements CustomerLocal, CustomerRemote
String resBKList = "", lsDescr = "", lsBKListed = "";
String lsNull = "", nullVarr = "", ldDate = "";
String custCodeBill = "", custCode = "", stanCode = "", currCode = "", countCode = "", currCode2 = "";
String cust_code__dlv="";
String lsStateCode = "", lsCity = "", lsPin = "";
String custName = "", chqName = "", terrCode = "", terrDesc = "", salesPers = "", spName = "", contactCode = "",
groupCode = "";
......@@ -1976,8 +1977,15 @@ implements CustomerLocal, CustomerRemote
custCode = checkNull(genericUtility.getColumnValue("cust_code", dom));
custCodeBill = checkNull(genericUtility.getColumnValue("cust_code__bil", dom));
// if(custCodeBill==null &&
// custCodeBill.trim().length()<=0){
// custCodeBill.trim().length()<=0)
//changed by chaitali on 12-06-2019
valueXmlString.append("<cust_code__dlv><![CDATA[" + custCode + "]]></cust_code__dlv>");
//changed by chaitali on 12-06-2019
valueXmlString.append("<cust_code__bil><![CDATA[" + custCode + "]]></cust_code__bil>");
valueXmlString.append("<group_code><![CDATA[" + custCode + "]]></group_code>");
// }
......@@ -2470,7 +2478,31 @@ implements CustomerLocal, CustomerRemote
valueXmlString.append("<customer_cust_name_1 ><![CDATA[" + custName + "]]></customer_cust_name_1>");
}
else if (currentColumn.trim().equalsIgnoreCase("emp_code__ord"))
else if (currentColumn.trim().equalsIgnoreCase("cust_code__dlv")) {
cust_code__dlv = checkNull(genericUtility.getColumnValue("cust_code__dlv", dom));
// sql = "select cust_name from customer where cust_code =?";
// pstmt = conn.prepareStatement(sql);
// pstmt.setString(1, custCodeBill);
// rs = pstmt.executeQuery();
// if (rs.next())
// {
// custName = checkNull(rs.getString("cust_name"));
// }
// rs.close();
// rs = null;
// pstmt.close();
// pstmt = null;
// changed by chaitali on 12-06-2019 //
valueXmlString.append("<cust_code__bil><![CDATA[" + cust_code__dlv + "]]></cust_code__bil>");
// changed by chaitali on 12-06-2019 //
// valueXmlString.append("<customer_cust_name_1 ><![CDATA[" + custName + "]]></customer_cust_name_1>");
}
else if (currentColumn.trim().equalsIgnoreCase("emp_code__ord"))
{
empCodeOrd = checkNull(genericUtility.getColumnValue("emp_code__ord", dom));
if (empCodeOrd != null)
......@@ -2481,7 +2513,7 @@ implements CustomerLocal, CustomerRemote
rs = pstmt.executeQuery();
if (rs.next())
{
empFname = checkNull(rs.getString("emp_fname"));
empFname = checkNull(rs.getString("po"));
empLname = checkNull(rs.getString("emp_lname"));
deptCode = checkNull(rs.getString("dept_code"));
}
......
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