Commit 29983974 authored by prane's avatar prane

Set default value to part_qty & pending_order if found null in customer master

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@196696 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f4d6d978
......@@ -6762,6 +6762,11 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
rs.close();
rs = null;
}
//Pavan R 04FEB2019 [if pending_order in customer master is null then consider as 'N'].
if(lsPendingOrder == null || lsPendingOrder.trim().length() == 0 || "null".equals(lsPendingOrder) )
{
lsPendingOrder = "N";
}
valueXmlString.append("<pending_order>").append("<![CDATA[" + lsPendingOrder + "]]>")
.append("</pending_order>");
lsOrdtypeSample = distCommon.getDisparams("999999", "SAMPLE_ORDER_TYPE", conn);
......@@ -7394,6 +7399,11 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
pstmt = null;
rs.close();
rs = null;
//Pavan Rane 04FEB2019 [if part_qty in customer master is null then consider as '2'].
if(lsPartQty == null || lsPartQty.trim().length() == 0 || "null".equals(lsPartQty))
{
lsPartQty = "2";
}
valueXmlString.append("<loc_group>").append("<![CDATA[" + lsLocGroup + "]]>")
.append("</loc_group>");
setNodeValue(dom, "loc_group", getAbsString(lsLocGroup));
......@@ -7796,6 +7806,12 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
rs.close();
rs = null;
}
//Pavan R 04FEB2019 [if pending_order in customer master is null then consider as 'N'].
if(lsPendingOrder == null || lsPendingOrder.trim().length() == 0 || "null".equals(lsPendingOrder) )
{
lsPendingOrder = "N";
}
sql = "select cust_name, addr1, addr2, city, pin, count_code, stan_code, tran_code, addr3, trans_mode, state_code,"
+ "tele1,tele2,tele3, fax,loc_group,curr_code__frt, curr_code__ins, term_table__no,single_lot"
+ " from customer where cust_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