Commit 87ab4b62 authored by mchaudhari's avatar mchaudhari

Changes in Currency tab of header.

Calculate Correct Total Amount, Net Amount and Net Amount BC


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95572 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 008ce5d1
...@@ -217,11 +217,15 @@ public class VoucherPostSave extends ValidatorEJB implements VoucherPostSaveLoca ...@@ -217,11 +217,15 @@ public class VoucherPostSave extends ValidatorEJB implements VoucherPostSaveLoca
sql="UPDATE voucher set adv_amt = ?, tax_amt = ?, tot_amt = ?, net_amt = ?, net_amt__bc = ? WHERE tran_id = ? "; sql="UPDATE voucher set adv_amt = ?, tax_amt = ?, tot_amt = ?, net_amt = ?, net_amt__bc = ? WHERE tran_id = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1,advAmt ); pstmt.setDouble(1,advAmt );
pstmt.setDouble(2,(taxAmt + taxAmtDet) ); /* pstmt.setDouble(2,(taxAmt + taxAmtDet) );
pstmt.setDouble(3,(totAmt + totAmtDet) ); pstmt.setDouble(3,(totAmt + totAmtDet) );
pstmt.setDouble(4,(netAmt + netAmtRcp + netAmtDet)); pstmt.setDouble(4,(netAmt + netAmtRcp + netAmtDet));
pstmt.setDouble(5,(netAmtBc + netAmtBcRcp + netAmtDet)); pstmt.setDouble(5,(netAmtBc + netAmtBcRcp + netAmtDet));*/
pstmt.setString(6,tranId ); pstmt.setDouble(2,taxAmtDet);
pstmt.setDouble(3,totAmtDet);
pstmt.setDouble(4,netAmtDet);
pstmt.setDouble(5,netAmtBcDet);
pstmt.setString(6,tranId);
cnt = pstmt.executeUpdate(); cnt = pstmt.executeUpdate();
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
......
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