Commit 4869d47e authored by prane's avatar prane

set taxchap in manual despatch

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@178539 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c70e23df
......@@ -1466,6 +1466,61 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
}
System.out.println("discAmt :"+discAmt);
*/
//Added by Pavan R on 17/JAN/18[start]to set taxchap in manual despatch
String sql="",mVal="",mcode="",mitemflg="",mVal1="",nature="",lstaxchapsoitem="";
mVal1 = genericUtility.getColumnValue("exp_lev",dom);
mcode = genericUtility.getColumnValue("line_no__sord",dom);///genericUtility.
mVal = genericUtility.getColumnValue("sord_no",dom);
System.out.println("exp_lev CASE....:"+mVal1+"..."+mcode+"..."+mVal);
PreparedStatement pstmt=null;
ResultSet rs=null;
sql = "Select item_flg from sorddet "
+"where sale_order = ? and line_no = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,mVal);
pstmt.setString(2,mcode);
rs = pstmt.executeQuery();
while(rs.next())
{
mitemflg = rs.getString("item_flg");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
sql = "Select nature, tax_chap from sorditem "
+" where sale_order = ? and line_no = ? and "
+" exp_lev = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,mVal);
pstmt.setString(2,mcode);
pstmt.setString(3,mVal1);
rs = pstmt.executeQuery();
if(rs.next())
{
nature=rs.getString("nature");
lstaxchapsoitem = rs.getString("tax_chap");
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if( "B".equals(mitemflg) && "F".equals(nature) )
{
System.out.println("1518::Match Item Flag");
taxChap = lstaxchapsoitem;
}
System.out.println("taxChap["+taxChap+"]");
//Pavan R[End]
if (noArt == 0)
{
noArt = 1;
......
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