Skip to content

Commit

Permalink
Fixed 'flipping' exchange rate when entering buy transactions
Browse files Browse the repository at this point in the history
Issue: #401
  • Loading branch information
buchen committed Jan 13, 2016
1 parent 1a998bb commit 830d936
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,9 @@ public BigDecimal getInverseExchangeRate()
return BigDecimal.ONE.divide(exchangeRate, 10, BigDecimal.ROUND_HALF_DOWN);
}

public void setInverseExchangeRate(BigDecimal exchnageRate)
public void setInverseExchangeRate(BigDecimal rate)
{
setExchangeRate(BigDecimal.ONE.divide(exchangeRate, 10, BigDecimal.ROUND_HALF_DOWN));
setExchangeRate(BigDecimal.ONE.divide(rate, 10, BigDecimal.ROUND_HALF_DOWN));
}

public long getConvertedGrossValue()
Expand Down

0 comments on commit 830d936

Please sign in to comment.