Commit 59991e76 authored by agaikwad's avatar agaikwad

Request_id-D15GSUN006

insert tax amount in pur_exp_reco table


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101178 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 5f951abd
......@@ -1284,6 +1284,7 @@ public class PayVoucherComPrc extends ProcessEJB implements PayVoucherComPrcLoca
String forcedFlag = "";
String keyString = "",keyCol ="",tranSer = "",type="";
String tranIdPe="";
double tempTax=0;
try
{
Conf = new MiscValConf();
......@@ -1670,6 +1671,21 @@ public class PayVoucherComPrc extends ProcessEJB implements PayVoucherComPrcLoca
tranIdPe = arrayForTranId1[1].substring(0, endIndex1);
System.out.println("tranIdPe=====["+tranIdPe+"]");
sql="select tax_amt from misc_voucher where tran_id= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranIdPe);
rs = pstmt.executeQuery();
if(rs.next())
{
tempTax=rs.getDouble("tax_amt");
}
rs.close();
pstmt.close();
rs = null;
pstmt = null;
System.out.println("Tax Amount is "+tempTax+"Tran_is is "+tranIdPe);
}else
{
System.out.println("not Successfully");
......@@ -1769,7 +1785,7 @@ public class PayVoucherComPrc extends ProcessEJB implements PayVoucherComPrcLoca
pstmt.setDouble(10,lcamt);
pstmt.setDouble(11,lcnetamt);
pstmt.setDouble(12,lcnetamtbc);
pstmt.setDouble(13,lctaxamt);
pstmt.setDouble(13,tempTax);
pstmt.setString(14,lstaxclass);
pstmt.setString(15,lstaxchap);
pstmt.setString(16,lstaxenv);
......@@ -1809,7 +1825,8 @@ public class PayVoucherComPrc extends ProcessEJB implements PayVoucherComPrcLoca
pstmt.setDouble(10,lcamt);
pstmt.setDouble(11,lcnetamt);
pstmt.setDouble(12,lcnetamtbc);
pstmt.setDouble(13,lctaxamt);
// pstmt.setDouble(13,lctaxamt);tempTax
pstmt.setDouble(13,tempTax);
pstmt.setString(14,lstaxclass);
pstmt.setString(15,lstaxchap);
pstmt.setString(16,lstaxenv);
......@@ -1925,6 +1942,7 @@ public class PayVoucherComPrc extends ProcessEJB implements PayVoucherComPrcLoca
String tranIdPe="";
String forcedFlag = "";
String trandate1="",trandate2="",refdate1="",refdate2,tranID="",lssitecodedet="";
double tempTax=0;
try
{
Conf = new MiscValConf();
......@@ -2309,6 +2327,21 @@ public class PayVoucherComPrc extends ProcessEJB implements PayVoucherComPrcLoca
tranIdPe = arrayForTranId1[1].substring(0, endIndex1);
System.out.println("tranIdPe=====["+tranIdPe+"]");
sql="select tax_amt from misc_voucher where tran_id= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranIdPe);
rs = pstmt.executeQuery();
if(rs.next())
{
tempTax=rs.getDouble("tax_amt");
}
rs.close();
pstmt.close();
rs = null;
pstmt = null;
System.out.println("Tax Amount is "+tempTax+"Tran_is is "+tranIdPe);
}else
{
System.out.println("not Successfully MULTIVOUCHER");
......@@ -2397,7 +2430,7 @@ public class PayVoucherComPrc extends ProcessEJB implements PayVoucherComPrcLoca
pstmt.setDouble(10,lcamt);
pstmt.setDouble(11,lcnetamt);
pstmt.setDouble(12,lcnetamtbc);
pstmt.setDouble(13,lctaxamt);
pstmt.setDouble(13,tempTax);
pstmt.setString(14,lstaxclass);
pstmt.setString(15,lstaxchap);
pstmt.setString(16,lstaxenv);
......@@ -2452,7 +2485,7 @@ public class PayVoucherComPrc extends ProcessEJB implements PayVoucherComPrcLoca
pstmt.setDouble(10,lcamt);
pstmt.setDouble(11,lcnetamt);
pstmt.setDouble(12,lcnetamtbc);
pstmt.setDouble(13,lctaxamt);
pstmt.setDouble(13,tempTax);
pstmt.setString(14,lstaxclass);
pstmt.setString(15,lstaxchap);
pstmt.setString(16,lstaxenv);
......
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