Commit 7191ed4b authored by prane's avatar prane

tot_amt and adj_amt posting wrongly in auto-generated payable ibca

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@173408 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4242a489
......@@ -1262,7 +1262,11 @@ conn = getConnection();
errString = itmDBAccessEJB.getErrorString("","VTBAL1","","",conn);
return errString;
}
adjAmt = adjAmt + totAmt;
//Changed by Pavan R on On 13/NOV/17 Start for tot_amt and adj_amt posted wrongly
//adjAmt = adjAmt + totAmt;
adjAmt = adjAmt + amount;
System.out.println("After adjAmt["+adjAmt+"]totAmt["+totAmt+"]amount["+amount+"]");
//Changed by Pavan R on On 13/NOV/17 End
if(totAmt == adjAmt)
{
status = "A";
......@@ -1273,7 +1277,10 @@ conn = getConnection();
}
sql = "update misc_payables set adj_amt = ?, status = ?,status_date = ? where tran_ser = ? and ref_no = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1,adjAmt+amount);
//Changed by Pavan R on On 13/NOV/17 Start for tot_amt and adj_amt posted wrongly
//pstmt.setDouble(1,adjAmt+amount);
pstmt.setDouble(1,adjAmt);
//Changed by Pavan R on On 13/NOV/17 End
pstmt.setString(2,status);
pstmt.setDate(3,new java.sql.Date(new java.util.Date().getTime()));
pstmt.setString(4,refSer);
......
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