Commit 434706ae authored by ngadkari's avatar ngadkari

changes in version

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@217876 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e550f61c
...@@ -197,7 +197,7 @@ public class EInvoiceIRNCancelPrc extends ProcessEJB { ...@@ -197,7 +197,7 @@ public class EInvoiceIRNCancelPrc extends ProcessEJB {
return errString; return errString;
} }
sql="SELECT count(*) from invoice where invoice_id=? "; /* sql="SELECT count(*) from invoice where invoice_id=? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refNo); pstmt.setString(1, refNo);
...@@ -307,6 +307,34 @@ public class EInvoiceIRNCancelPrc extends ProcessEJB { ...@@ -307,6 +307,34 @@ public class EInvoiceIRNCancelPrc extends ProcessEJB {
else else
{ {
refSer="S-INV"; refSer="S-INV";
}*/
sql="SELECT ref_ser from gst_ir_info where ref_id=? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refNo);
rs = pstmt.executeQuery();
if(rs.next())
{
refSer = checkNullandTrim(rs.getString(1));
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs!=null)
{
rs.close();
rs = null;
}
if(refSer == null || refSer.trim().length() == 0 )
{
errString = itmDBAccessEJB.getErrorString("","VTMISCREF","","",conn);
return errString;
} }
sql="SELECT ir_no from gst_ir_info where ref_id=? and ref_ser =? and reg_stat= ? "; sql="SELECT ir_no from gst_ir_info where ref_id=? and ref_ser =? and reg_stat= ? ";
...@@ -421,6 +449,133 @@ public class EInvoiceIRNCancelPrc extends ProcessEJB { ...@@ -421,6 +449,133 @@ public class EInvoiceIRNCancelPrc extends ProcessEJB {
} }
} }
if("P-RET".equalsIgnoreCase(refSer))
{
sql="SELECT site_code from porcp where tran_id=? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refNo);
rs = pstmt.executeQuery();
if(rs.next())
{
siteCode = rs.getString(1);
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs!=null)
{
rs.close();
rs = null;
}
}
if("MDRCRC".equalsIgnoreCase(refSer))
{
sql="SELECT site_code from misc_drcr_rcp where tran_id=? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refNo);
rs = pstmt.executeQuery();
if(rs.next())
{
siteCode = rs.getString(1);
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs!=null)
{
rs.close();
rs = null;
}
}
if("CRNPAY".equalsIgnoreCase(refSer)|| "DRNPAY".equalsIgnoreCase(refSer))
{
sql="SELECT site_code from drcr_pay where tran_id=? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refNo);
rs = pstmt.executeQuery();
if(rs.next())
{
siteCode = rs.getString(1);
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs!=null)
{
rs.close();
rs = null;
}
}
if("M-VOUC".equalsIgnoreCase(refSer))
{
sql="SELECT site_code from misc_voucher where tran_id=? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refNo);
rs = pstmt.executeQuery();
if(rs.next())
{
siteCode = rs.getString(1);
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs!=null)
{
rs.close();
rs = null;
}
}
if("VOUCH".equalsIgnoreCase(refSer))
{
sql="SELECT site_code from voucher where tran_id=? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, refNo);
rs = pstmt.executeQuery();
if(rs.next())
{
siteCode = rs.getString(1);
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rs!=null)
{
rs.close();
rs = null;
}
}
sql="SELECT REG_NO FROM SITEREGNO WHERE SITE_CODE= ? AND ref_code='GSTIN_NO' "; sql="SELECT REG_NO FROM SITEREGNO WHERE SITE_CODE= ? AND ref_code='GSTIN_NO' ";
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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