Commit ba47c132 authored by msharma's avatar msharma

Update query corrected for invoice_trace


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101134 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 385e62f6
...@@ -824,7 +824,7 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB ...@@ -824,7 +824,7 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB
double totTaxAmt=0,totNetAmt=0; double totTaxAmt=0,totNetAmt=0;
fos1.write(("Invoice successful for Dispatch id :- ["+despIdKey+"] TranId generated is:- [" + tranId +"]\n END \r\n\n").getBytes()); fos1.write(("Invoice successful for Dispatch id :- ["+despIdKey+"] TranId generated is:- [" + tranId +"]\n END \r\n\n").getBytes());
pstmt=conn.prepareStatement("update invoice_trace set net_amt=(quantity__stduom*rate__stduom)+tax_amt where invoice_id=? "); pstmt=conn.prepareStatement("update invoice_trace set net_amt=(quantity__stduom*rate__stduom) where invoice_id=? ");
pstmt.setString(1, tranId); pstmt.setString(1, tranId);
pstmt.executeUpdate(); pstmt.executeUpdate();
pstmt.close(); pstmt.close();
...@@ -858,7 +858,7 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB ...@@ -858,7 +858,7 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB
totTaxAmt+=taxAmt; totTaxAmt+=taxAmt;
totNetAmt+=netAmt; totNetAmt+=netAmt;
sql="update invdet set tax_class=?,tax_chap=?,tax_env=?,tax_amt=tax_amt+?,net_amt=net_amt+?" sql="update invdet set tax_class=?,tax_chap=?,tax_env=?,tax_amt=tax_amt+?,net_amt=net_amt+?+?"
+ " where tran_id=? " + " where tran_id=? "
+ " and sord_no=? " + " and sord_no=? "
+ " and sord_line_no=?"; + " and sord_line_no=?";
...@@ -868,9 +868,10 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB ...@@ -868,9 +868,10 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB
pstmt1.setString(3,taxEnv); pstmt1.setString(3,taxEnv);
pstmt1.setDouble(4,taxAmt); pstmt1.setDouble(4,taxAmt);
pstmt1.setDouble(5,netAmt); pstmt1.setDouble(5,netAmt);
pstmt1.setString(6,tranId); pstmt1.setDouble(6,taxAmt);
pstmt1.setString(7,sordNo); pstmt1.setString(7,tranId);
pstmt1.setString(8,soLineNo); pstmt1.setString(8,sordNo);
pstmt1.setString(9,soLineNo);
pstmt1.executeUpdate(); pstmt1.executeUpdate();
} }
rs.close(); rs.close();
......
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