X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fmanage%2Fexchange_rates.php;h=6d13b06bf90f3bd77b712eed49eaff45115ea39f;hb=beb0a3172f74e1b02104e31a79e34a779d9ca011;hp=90ab428f37db35a37d4d6eb6403c8791804f975c;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/gl/manage/exchange_rates.php b/gl/manage/exchange_rates.php index 90ab428f..6d13b06b 100644 --- a/gl/manage/exchange_rates.php +++ b/gl/manage/exchange_rates.php @@ -19,7 +19,7 @@ include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/banking.inc"); $js = ""; -if ($use_date_picker) +if (user_use_date_picker()) $js .= get_js_date_picker(); page(_($help_context = "Exchange Rates"), false, false, "", $js); @@ -108,8 +108,9 @@ function display_rates($curr_code) function display_rate_edit() { - global $selected_id, $Ajax; - + global $selected_id, $Ajax, $SysPrefs; + $xchg_rate_provider = ((isset($SysPrefs->xr_providers) && isset($SysPrefs->dflt_xr_provider)) + ? $SysPrefs->xr_providers[$SysPrefs->dflt_xr_provider] : 'ECB'); start_table(TABLESTYLE2); if ($selected_id != "") @@ -139,7 +140,7 @@ function display_rate_edit() $Ajax->activate('BuyRate'); } amount_row(_("Exchange Rate:"), 'BuyRate', null, '', - submit('get_rate',_("Get"), false, _('Get current ECB rate') , true), 'max'); + submit('get_rate',_("Get"), false, _('Get current rate from') . ' ' . $xchg_rate_provider , true), 'max'); end_table(1); @@ -177,7 +178,7 @@ if (!isset($_POST['curr_abrev'])) echo "