Commit e57ddef8 authored by manohar's avatar manohar

Bug fixing, determination of posting in base currency or transaction currency


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94158 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 76102ab0
......@@ -1561,7 +1561,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
double totBad = 0;
for(i=0 ; i<RcpDetList.size() ; i++)
{
RcpDetMap = new HashMap();
//RcpDetMap = new HashMap();
RcpDetMap = (HashMap) RcpDetList.get(i);
refSer = (String)RcpDetMap.get("ref_ser");
......@@ -1878,6 +1878,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
{
errString = itmDBAccessEJB.getErrorString("","VTRCPT8","","",conn);
conn.rollback();
return errString;
}
RcpHdrMap.put("net_amt", total);
......@@ -1890,7 +1891,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId);//issue
rs = pstmt.executeQuery();
while(rs.next())
if(rs.next())
{
maxline = rs.getInt(1);
}
......@@ -2307,7 +2308,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
rs = pstmt.executeQuery();
if (rs.next())
{
cnt1 = rs.getInt(1);
cnt = rs.getInt(1);
}
rs.close();
rs = null;
......@@ -2343,7 +2344,7 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
/// if EPC in diff currency.
if((double) Double.parseDouble( "" + RcpHdrMap.get("efundadj_amt")) != 0 && cnt1 > 0)
if((double) Double.parseDouble( "" + RcpHdrMap.get("efundadj_amt")) != 0 && cnt > 0)
{
isInBaseCurr = true;
}
......
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