Commit 04a25970 authored by msalla's avatar msalla

when we change the amount then Amount in Base currency set as zero

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@205397 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2553ab31
This diff is collapsed.
......@@ -549,7 +549,7 @@ public class PdcReceivedIC extends ValidatorEJB implements PdcReceivedRemote, Pd
{
advAmtd=0;
}
if(advAmtd != 0 && acctCodeAdv != null && acctCodeAdv.trim().length() != 0)
if(advAmtd != 0 && acctCodeAdv != null && acctCodeAdv.trim().length()>0)
{
siteCode = this.genericUtility.getColumnValue("site_code", dom);
errCode = finCommon.isAcctCode(siteCode, acctCodeAdv, "FIN", conn);
......@@ -1494,7 +1494,7 @@ public class PdcReceivedIC extends ValidatorEJB implements PdcReceivedRemote, Pd
{
chqAmt =genericUtility.getColumnValue("amount", dom);
if(chqAmt != null && chqAmt.trim().length()==0)
if(chqAmt != null && chqAmt.trim().length()>0)
{
chqamt=Double.parseDouble(chqAmt);
}
......@@ -1505,7 +1505,7 @@ public class PdcReceivedIC extends ValidatorEJB implements PdcReceivedRemote, Pd
billAmt =genericUtility.getColumnValue("adj_amt", dom);
if(billAmt != null && billAmt.trim().length()==0)
if(billAmt != null && billAmt.trim().length()>0)
{
billamt=Double.parseDouble(billAmt);
}
......@@ -1607,7 +1607,7 @@ public class PdcReceivedIC extends ValidatorEJB implements PdcReceivedRemote, Pd
rs = null;
pstmt.close();
pstmt = null;
/*
/* Changed by -monika-8 aug-2019
if(adjAmt == 0)
{
amt= totAmt - adjAmt;
......@@ -1629,8 +1629,9 @@ public class PdcReceivedIC extends ValidatorEJB implements PdcReceivedRemote, Pd
else if ("amount".equalsIgnoreCase(currentColumn.trim()))
{
amount= genericUtility.getColumnValue("amount", dom1);
if(amount != null && amount.trim().length()==0)
//amount= genericUtility.getColumnValue("amount", dom1);//CHANGES DONE BY MONIKA ON 19 AUGUST 2019
amount= genericUtility.getColumnValue("amount", dom);
if(amount != null && amount.trim().length()>0)
{
amt=Double.parseDouble(amount);
}
......@@ -1640,7 +1641,8 @@ public class PdcReceivedIC extends ValidatorEJB implements PdcReceivedRemote, Pd
}
exchRate=genericUtility.getColumnValue("exch_rate", dom);
if(exchRate != null && exchRate.trim().length()==0)
//if(exchRate != null && exchRate.trim().length()==0)
if(exchRate != null && exchRate.trim().length()>0)
{
exrate=Double.parseDouble(exchRate);
}
......
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