Commit 76bb5cbd authored by msalla's avatar msalla

User is entering some freight amount in header of purchase receipt. (In PO it is 0.)

But After saving the purchase receipt, freight amount saved as 0. though freight currency is there.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@200788 ce508802-f39f-4f6c-b175-0d175dae99d5
parent eb15ba49
......@@ -186,7 +186,9 @@ public class PoRcpRetPostSave extends ValidatorEJB implements PoRcpRetPostSaveLo
rs = pstmt.executeQuery();
if(rs.next())
{
//frtAmt = rs.getDouble("FRT_AMT");
//frtAmt = rs.getDouble("FRT_AMT");
frtAmount = rs.getDouble("FRT_AMT");//changes -By-Monika-14-may-19
exchRateFrt = rs.getDouble("EXCH_RATE__FRT");
insuranceAmt = rs.getDouble("INSURANCE_AMT");
exchRateIns = rs.getDouble("EXCH_RATE__INS");
......@@ -208,7 +210,16 @@ public class PoRcpRetPostSave extends ValidatorEJB implements PoRcpRetPostSaveLo
pstmt = null;
}
frtAmount = totQty * frtRate *("Q".equalsIgnoreCase(frtType) ? 1 : 0);
//changes made by-Monika-14-may-19
if("Q".equalsIgnoreCase(frtType))
{
frtAmount = totQty * frtRate;
}
//frtAmount = totQty * frtRate *("Q".equalsIgnoreCase(frtType) ? 1 : 0);
//end
totAddlCost = (frtAmount*exchRateFrt)+(insuranceAmt*exchRateIns)+(clearingCharges*exchRateClr)+(otherCharges*exchRateOthch);
System.out.println("totAddlCost--["+totAddlCost+"]");
......
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