Commit 8be8660e authored by manohar's avatar manohar

in case all details are dropped then 0 amount to be set as bill_amt in header


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94295 ce508802-f39f-4f6c-b175-0d175dae99d5
parent de30c297
...@@ -199,8 +199,9 @@ public class ReceiptAdvPostSave extends ValidatorEJB implements ReceiptAdvPostSa ...@@ -199,8 +199,9 @@ public class ReceiptAdvPostSave extends ValidatorEJB implements ReceiptAdvPostSa
//chqAmt = billAmtDet + bdAmt + adjAmtAdv; // 21/01/14 bd amount removed from bill_amt //chqAmt = billAmtDet + bdAmt + adjAmtAdv; // 21/01/14 bd amount removed from bill_amt
chqAmt = billAmtDet + adjAmtAdv; chqAmt = billAmtDet + adjAmtAdv;
if (chqAmt != 0) // 25/02/14 manoharan if all details are dropped t6he bill_amt should be 0
{ //if (chqAmt != 0)
//{
sql="UPDATE receipt SET bill_amt = ? WHERE tran_id = ? " ; sql="UPDATE receipt SET bill_amt = ? WHERE tran_id = ? " ;
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1,chqAmt ); pstmt.setDouble(1,chqAmt );
...@@ -208,7 +209,7 @@ public class ReceiptAdvPostSave extends ValidatorEJB implements ReceiptAdvPostSa ...@@ -208,7 +209,7 @@ public class ReceiptAdvPostSave extends ValidatorEJB implements ReceiptAdvPostSa
cnt = pstmt.executeUpdate(); cnt = pstmt.executeUpdate();
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} //}
// - (case when bill_disc_amt is null then 0 else bill_disc_amt end) removed on 21/01/14 // - (case when bill_disc_amt is null then 0 else bill_disc_amt end) removed on 21/01/14
......
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