Commit 72606941 authored by msalla's avatar msalla

Issue in Purchase receipt "Total additional cost" value.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@201319 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7bd73952
...@@ -192,7 +192,10 @@ public class PoRcpRetPostSave extends ValidatorEJB implements PoRcpRetPostSaveLo ...@@ -192,7 +192,10 @@ public class PoRcpRetPostSave extends ValidatorEJB implements PoRcpRetPostSaveLo
exchRateFrt = rs.getDouble("EXCH_RATE__FRT"); exchRateFrt = rs.getDouble("EXCH_RATE__FRT");
insuranceAmt = rs.getDouble("INSURANCE_AMT"); insuranceAmt = rs.getDouble("INSURANCE_AMT");
exchRateIns = rs.getDouble("EXCH_RATE__INS"); exchRateIns = rs.getDouble("EXCH_RATE__INS");
clearingCharges = rs.getDouble("EXCH_RATE__INS"); //commented vy monika-29-my-2019
//clearingCharges = rs.getDouble("EXCH_RATE__INS");
//changes -By-Monika-29-may-19
clearingCharges = rs.getDouble("CLEARING_CHARGES");//end
exchRateClr = rs.getDouble("EXCH_RATE__CLR"); exchRateClr = rs.getDouble("EXCH_RATE__CLR");
otherCharges = rs.getDouble("OTHER_CHARGES"); otherCharges = rs.getDouble("OTHER_CHARGES");
exchRateOthch = rs.getDouble("EXCH_RATE__OTHCH"); exchRateOthch = rs.getDouble("EXCH_RATE__OTHCH");
...@@ -220,6 +223,9 @@ public class PoRcpRetPostSave extends ValidatorEJB implements PoRcpRetPostSaveLo ...@@ -220,6 +223,9 @@ public class PoRcpRetPostSave extends ValidatorEJB implements PoRcpRetPostSaveLo
} }
//frtAmount = totQty * frtRate *("Q".equalsIgnoreCase(frtType) ? 1 : 0); //frtAmount = totQty * frtRate *("Q".equalsIgnoreCase(frtType) ? 1 : 0);
//end //end
//changes by-monika-29-may-2019--
System.out.println("test1:--"+(frtAmount*exchRateFrt)+"test2:--"+(insuranceAmt*exchRateIns)+"test3:--"+(clearingCharges*exchRateClr)+"test4:--"+(otherCharges*exchRateOthch));
//end
totAddlCost = (frtAmount*exchRateFrt)+(insuranceAmt*exchRateIns)+(clearingCharges*exchRateClr)+(otherCharges*exchRateOthch); totAddlCost = (frtAmount*exchRateFrt)+(insuranceAmt*exchRateIns)+(clearingCharges*exchRateClr)+(otherCharges*exchRateOthch);
System.out.println("totAddlCost--["+totAddlCost+"]"); 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