X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Fincludes%2Fui%2Fgl_bank_ui.inc;h=981569c420943b06583a958f3daa11ad14bdd664;hb=acb313fc11ab4aa40e48b46c1534d09114638f6c;hp=fbbf770851c8e847ddeaa3d0539b88846e7cf43b;hpb=0add67eea2165764ad65bbb2dccbb687a7d20b77;p=fa-stable.git diff --git a/gl/includes/ui/gl_bank_ui.inc b/gl/includes/ui/gl_bank_ui.inc index fbbf7708..981569c4 100644 --- a/gl/includes/ui/gl_bank_ui.inc +++ b/gl/includes/ui/gl_bank_ui.inc @@ -17,7 +17,7 @@ function display_bank_header(&$order) $customer_error = false; div_start('pmt_header'); - start_outer_table(TABLESTYLE2, "width=90%"); // outer table + start_outer_table(TABLESTYLE2, "width='90%'"); // outer table table_section(1); @@ -123,7 +123,7 @@ function display_bank_header(&$order) $bank_currency = get_bank_account_currency($_POST['bank_account']); - exchange_rate_display($bank_currency, get_company_currency(), $_POST['date_']); + exchange_rate_display(get_company_currency(), $bank_currency, $_POST['date_']); end_outer_table(1); // outer table @@ -146,7 +146,7 @@ function display_gl_items($title, &$order) display_heading($title); div_start('items_table'); - start_table(TABLESTYLE, "colspan=7 width=95%"); + start_table(TABLESTYLE, "width='95%'"); if ($dim == 2) $th = array(_("Account Code"), _("Account Description"), _("Dimension")." 1", @@ -305,7 +305,7 @@ function gl_options_controls($order) if ($person_curr != $bank_curr) { $_POST['settled_amount'] = - price_format($order->gl_items_total() / get_exchange_rate_from_to($bank_curr, $person_curr, get_post('date_'))); + price_format(abs($order->gl_items_total() / get_exchange_rate_from_to($bank_curr, $person_curr, get_post('date_')))); amount_row($type == PT_CUSTOMER ? _("Settled AR Amount:") : _("Settled AP Amount:"), 'settled_amount', null, null, $person_curr, user_price_dec()); }