X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_view.inc;h=0832c3f35ed1ef5a261acd34d7d4716b3080c461;hb=013ea39b39e3804a662db8e84761999281ce0230;hp=d76dd824a34ef138c096182a6d26a0f28df5a85b;hpb=5af53b13622ca77bc851cccaa087d7e2aedc3401;p=fa-stable.git diff --git a/includes/ui/ui_view.inc b/includes/ui/ui_view.inc index d76dd824..0832c3f3 100644 --- a/includes/ui/ui_view.inc +++ b/includes/ui/ui_view.inc @@ -1,6 +1,7 @@ activate('get_rate'); } else $rate = get_exchange_rate_from_to($to_currency, $from_currency, $date_); $rate = number_format2($rate, user_exrate_dec()); - label_row(_("Exchange Rate:"),"1 " . $from_currency . " = " . $rate . " " . $to_currency . - ($buttons?" " . submit('get_rate',_("Get"), false):"")); + label_row(_("Exchange Rate:"),"1 " . $from_currency . " = " . $rate . " " . $to_currency . + ($buttons?" " . submit('get_rate',_("Get"), false, true):"")); + if($buttons) { + $Ajax->addUpdate('get_rate','_ex_rate', $rate); + } } } @@ -312,7 +319,7 @@ function is_voided_display($type, $id, $label) echo "$label
"; echo "" . _("Date Voided:") . " " . sql2date($void_entry["date_"]) . "
"; if (strlen($void_entry["memo_"]) > 0) - echo "
" . _("Memo:") . " " . $void_entry["memo_"] . "
"; + echo "
" . _("Memo:") . " " . $void_entry["memo_"] . "

"; echo ""; end_table(1); @@ -453,7 +460,6 @@ function display_edit_tax_items($taxes, $columns, $tax_included, $leftspan=0) function display_footer_exit() { - global $path_to_root; br(2); end_page(); exit; @@ -522,22 +528,6 @@ function display_allocations_from($person_type, $person_id, $type, $type_no, $to } } -function get_js_go_back() -{ - $js = "\n\n"; - return $js; -} - function get_js_open_window($width, $height) { $js = "\n"; -// } - return $js; -} -*/ + function get_js_png_fix() { $js = "