Commit fb7bb56e authored by kgaikwad's avatar kgaikwad

fix the bug in voucher post save

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@205124 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7015fa02
...@@ -45,7 +45,7 @@ public class VoucherPostSave extends ValidatorEJB implements VoucherPostSaveLoca ...@@ -45,7 +45,7 @@ public class VoucherPostSave extends ValidatorEJB implements VoucherPostSaveLoca
try try
{ {
E12GenericUtility genericUtility = new E12GenericUtility(); E12GenericUtility genericUtility = new E12GenericUtility();
// GenericUtility genericUtility = GenericUtility.getInstance(); //GenericUtility genericUtility = GenericUtility.getInstance();
dom = genericUtility.parseString(domString); dom = genericUtility.parseString(domString);
tranId = genericUtility.getColumnValue("tran_id",dom); tranId = genericUtility.getColumnValue("tran_id",dom);
...@@ -292,7 +292,7 @@ public class VoucherPostSave extends ValidatorEJB implements VoucherPostSaveLoca ...@@ -292,7 +292,7 @@ public class VoucherPostSave extends ValidatorEJB implements VoucherPostSaveLoca
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if(!"A".equals(voucherType)) // condition added by kailas gaikwad on 7 june 2019 if("A".equals(voucherType)) // condition added by kailas gaikwad on 7 june 2019
{ {
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);
......
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