Commit 3b90f684 authored by msharma's avatar msharma

to delete only undo invoice


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100314 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4afc78a4
...@@ -241,10 +241,12 @@ public class UndoRecievableAdjConf extends ActionHandlerEJB implements UndoRecie ...@@ -241,10 +241,12 @@ public class UndoRecievableAdjConf extends ActionHandlerEJB implements UndoRecie
pstmt1.close(); pstmt1.close();
pstmt1= null; pstmt1= null;
sql1="delete from receivables_adj where ref_no= ? and ref_ser_adj= ?"; sql1="delete from receivables_adj where ref_no=? and ref_ser=? and ref_no_adj= ? and ref_ser_adj= ?";
pstmt1 = conn.prepareStatement(sql1); pstmt1 = conn.prepareStatement(sql1);
pstmt1.setString(1, refNoHeader);//Changed by Manoj dtd 04/03/2016 to delete only undo refno pstmt1.setString(1, refNo);
pstmt1.setString(2, tranType); pstmt1.setString(2, refSer);
pstmt1.setString(3, refNoHeader);//Changed by Manoj dtd 04/03/2016 to delete only undo invoice
pstmt1.setString(4, tranType);
pstmt1.executeUpdate(); pstmt1.executeUpdate();
System.out.println("Data deleted sucessfully"); System.out.println("Data deleted sucessfully");
undoLineNo++; undoLineNo++;
......
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