public $__table = 'core_curr_rate'; // table name
public $id;
public $curr;
- public $rate;
+ public $rate; // always to USD...
public $from_dt;
public $to_dt;
}
- function convertCurrency($val, $from, $to)
+ function lastRate()
{
- $r = $this->loadRates();
+
+
+ }
+
+ function convert($val, $from, $to, $when = false)
+ {
+
+
+
if ($r === false) {
return false;
}