Commit 53aab4ad authored by agaikwad's avatar agaikwad

Change refser(RADTAX).


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@106592 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e566b55c
......@@ -487,7 +487,7 @@ public class RcpAdvTaxcalcConf extends ActionHandlerEJB implements RcpAdvTaxcalc
{
System.out.println("Refrence Type is :["+getRefType+"]");
sql = "select sum(ti.tax_amt) from taxtran ti, tax tm,adv_rcp_tax a "
+ "where tm.tax_code = ti.tax_code and ti.tran_code = 'A-TAX' and ti.tran_id =a.tran_id and tm.tax_type ='G' and ti.tran_id = ? and ti.line_no= ?";
+ "where tm.tax_code = ti.tax_code and ti.tran_code = 'RADTAX' and ti.tran_id =a.tran_id and tm.tax_type ='G' and ti.tran_id = ? and ti.line_no= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
pstmt.setInt(2, getLineNo);
......@@ -530,7 +530,7 @@ public class RcpAdvTaxcalcConf extends ActionHandlerEJB implements RcpAdvTaxcalc
/*Added code-*/
sql = "select sum(ti.tax_amt) from taxtran ti, tax tm,adv_rcp_tax a "
+ "where tm.tax_code = ti.tax_code and ti.tran_code = 'A-TAX' and ti.tran_id =a.tran_id and tm.tax_type ='H' and ti.tran_id = ? and ti.line_no= ?";
+ "where tm.tax_code = ti.tax_code and ti.tran_code = 'RADTAX' and ti.tran_id =a.tran_id and tm.tax_type ='H' and ti.tran_id = ? and ti.line_no= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
pstmt.setInt(2, getLineNo);
......@@ -567,7 +567,7 @@ public class RcpAdvTaxcalcConf extends ActionHandlerEJB implements RcpAdvTaxcalc
//IGST
sql = "select sum(ti.tax_amt) from taxtran ti, tax tm,adv_rcp_tax a "
+ "where tm.tax_code = ti.tax_code and ti.tran_code = 'A-TAX' and ti.tran_id =a.tran_id and tm.tax_type ='I' and ti.tran_id = ? and ti.line_no= ?";
+ "where tm.tax_code = ti.tax_code and ti.tran_code = 'RADTAX' and ti.tran_id =a.tran_id and tm.tax_type ='I' and ti.tran_id = ? and ti.line_no= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
pstmt.setInt(2, getLineNo);
......@@ -609,7 +609,7 @@ public class RcpAdvTaxcalcConf extends ActionHandlerEJB implements RcpAdvTaxcalc
{
System.out.println("Refrence Type is 2:["+getRefType+"]");
sql = "select sum(ti.tax_amt) from taxtran ti, tax tm,adv_rcp_tax a "
+ "where tm.tax_code = ti.tax_code and ti.tran_code = 'A-TAX' and ti.tran_id =a.tran_id and tm.tax_type ='G' and ti.tran_id = ? and ti.line_no= ?";
+ "where tm.tax_code = ti.tax_code and ti.tran_code = 'RADTAX' and ti.tran_id =a.tran_id and tm.tax_type ='G' and ti.tran_id = ? and ti.line_no= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
pstmt.setInt(2, getLineNo);
......@@ -649,7 +649,7 @@ public class RcpAdvTaxcalcConf extends ActionHandlerEJB implements RcpAdvTaxcalc
System.out.println("RcpAcctListAdj@@@@@@@@@@ 2["+ RcpAcctList + "]");
sql = "select sum(ti.tax_amt) from taxtran ti, tax tm,adv_rcp_tax a "
+ "where tm.tax_code = ti.tax_code and ti.tran_code = 'A-TAX' and ti.tran_id =a.tran_id and tm.tax_type ='H' and ti.tran_id = ? and ti.line_no= ?";
+ "where tm.tax_code = ti.tax_code and ti.tran_code = 'RADTAX' and ti.tran_id =a.tran_id and tm.tax_type ='H' and ti.tran_id = ? and ti.line_no= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
pstmt.setInt(2, getLineNo);
......@@ -685,7 +685,7 @@ public class RcpAdvTaxcalcConf extends ActionHandlerEJB implements RcpAdvTaxcalc
sql = "select sum(ti.tax_amt) from taxtran ti, tax tm,adv_rcp_tax a "
+ "where tm.tax_code = ti.tax_code and ti.tran_code = 'A-TAX' and ti.tran_id =a.tran_id and tm.tax_type ='I' and ti.tran_id = ? and ti.line_no= ?";
+ "where tm.tax_code = ti.tax_code and ti.tran_code = 'RADTAX' and ti.tran_id =a.tran_id and tm.tax_type ='I' and ti.tran_id = ? and ti.line_no= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
pstmt.setInt(2, getLineNo);
......@@ -733,7 +733,7 @@ public class RcpAdvTaxcalcConf extends ActionHandlerEJB implements RcpAdvTaxcalc
}
if (errString == null || errString.trim().length() == 0) {
errString = finCommon.checkGlTranDrCr("A-TAX", tranId, conn);
errString = finCommon.checkGlTranDrCr("RADTAX", tranId, conn);
}
if (errString == null || errString.trim().length() == 0) {
sql = " update adv_rcp_tax set confirmed = 'Y' , conf_date = ? where tran_id = ? ";
......@@ -982,7 +982,7 @@ public class RcpAdvTaxcalcConf extends ActionHandlerEJB implements RcpAdvTaxcalc
glTraceMap.put("ref_type", "F");
glTraceMap.put("ref_id", (String) detRcpadvHashMap
.get("ref_id"));// Doubt
glTraceMap.put("ref_ser", "A-TAX");
glTraceMap.put("ref_ser", "RADTAX");
String remarks = "These transaction is Advance Receipt and amount is "
+ getamount + "";
glTraceMap.put("remarks", remarks);
......
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