Virgil Dupras committed changeset [31]

July 30th, 2009 @ 04:30 PM

[#45 state:port] Fixed convert_amount() so it takes currency.exponent into account. It was done by removing the optimization that was in place in convert_amount that bypassed the internal value conversion system. Also, the Amount class now stores its float value so that it doesn't have to constantly do the maths every time amount.value is called.

Committed by Virgil Dupras

  • E /trunk/py/model/amount.py
  • E /trunk/py/tests/currency_test.py
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins