Commit 7dc9c25f authored by ssurve's avatar ssurve

Invoice Amendment Req. ID - WM2CSUN002 cust_pord, pord_date added


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93150 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 24e7b930
......@@ -831,6 +831,7 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
String despId = "";
String remark = "";
String chequeNo = "";
String custPord = "";
Date effFrom = null;
Date sbDate = null;
Date grDate = null;
......@@ -839,6 +840,7 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
Date lrDate = null;
Date octroiRcpDate = null;
Date chequeDate = null;
Date pordDate = null;
NodeList parentNodeList = null;
NodeList childNodeList = null;
Node parentNode = null;
......@@ -929,7 +931,12 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
pstmt = null;
valueXmlString.append( "<gross_weight><![CDATA[" ).append( grossWeight ).append( "]]></gross_weight>\r\n" );
sql = "select cheque_no, cheque_date from sorder where sale_order = ?";
// Query modified by sandesh on 21/May/2013 . cust_pord, pord_date added
sql = "select cheque_no, cheque_date, cust_pord, pord_date from sorder where sale_order = ?";
System.out.println("query => select cheque_no, cheque_date, cust_pord, pord_date from sorder where sale_order = '"+saleOrder+"'");
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, saleOrder);
rs = pstmt.executeQuery();
......@@ -937,14 +944,23 @@ public String itemChanged( Document dom, Document dom1, Document dom2, String ob
{
chequeNo = checkNull(rs.getString(1));
chequeDate = rs.getDate(2);
custPord = rs.getString("cust_pord");
pordDate = rs.getDate("pord_date");
}
System.out.println("chequeNo : "+chequeNo+" chequeDate : "+chequeDate+" custPord : "+custPord+" pordDate : "+pordDate);
rs.close();
rs = null;
pstmt.close();
pstmt = null;
valueXmlString.append( "<ref_no><![CDATA[" ).append( chequeNo ).append( "]]></ref_no>\r\n" );
valueXmlString.append( "<ref_no><![CDATA[" ).append( chequeNo==null?"":chequeNo).append( "]]></ref_no>\r\n" );
valueXmlString.append( "<ref_date><![CDATA[" ).append( chequeDate==null?"":sdf.format(chequeDate) ).append( "]]></ref_date>\r\n" );
// Added by sandesh on 21/May/2013 . cust_pord, pord_date added
valueXmlString.append( "<cust_pord><![CDATA[" ).append( custPord==null?"":custPord).append( "]]></cust_pord>\r\n" );
valueXmlString.append( "<pord_date><![CDATA[" ).append( pordDate==null?"":sdf.format(pordDate) ).append( "]]></pord_date>\r\n" );
sql = "select descr from gencodes where fld_value = ? and mod_name='W_INVOICE_AMENDMENT'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,transMode );
......
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