IMA-WorldHealth / bhima-1.X

A hospital information system for developing countries.
GNU General Public License v2.0
10 stars 14 forks source link

FIX(exchange): set rates to today, not yesterday #825

Closed jniles closed 9 years ago

jniles commented 9 years ago

This commit fixes a critical bug in which the rates were always set to the day before. This is due to errors in the angular validation, stemming from differences between ngMax and the HTML max attribute.

Fixes #824.

jniles commented 9 years ago

Hmm.. This didn't seem to fix it in the general case. I'll take another look.

EDIT Poor git merges mislead me. We really need some test cases. :S