From: Janusz Dobrowolski Date: Sat, 21 Mar 2009 09:40:26 +0000 (+0000) Subject: Broken currency section after date change in sales order/credit X-Git-Tag: 2.3-final~1316 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=d9bc3e35590f06256b93d87320a9ee84cf750561;p=fa-stable.git Broken currency section after date change in sales order/credit --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 44ae9123..96638f9a 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,11 @@ Legend: ! -> Note $ -> Affected files +21-Mar-2009 Janusz Dobrowolski +# Broken currency section after date change. +$ /sales/includes/ui/sales_credit_ui.inc + /sales/includes/ui/sales_order_ui.inc + 20-Mar-2009 Joe Hunt # Truncation bug when inserting/updating entered supplier credit limit $ /purchasing/manage/suppliers.php diff --git a/sales/includes/ui/sales_credit_ui.inc b/sales/includes/ui/sales_credit_ui.inc index 4594758c..fc7562f0 100644 --- a/sales/includes/ui/sales_credit_ui.inc +++ b/sales/includes/ui/sales_credit_ui.inc @@ -91,11 +91,9 @@ function display_credit_header(&$order) { table_section(2); - div_start('currency'); label_row(_("Customer Currency:"), $order->customer_currency); exchange_rate_display($order->customer_currency, get_company_currency(), $_POST['OrderDate']); - div_end(); } table_section(3); @@ -126,7 +124,7 @@ function display_credit_header(&$order) && (get_base_sales_type()>0)) { $change_prices = 1; } - $Ajax->activate('currency'); + $Ajax->activate('_ex_rate'); } // 2008-11-12 Joe Hunt added dimensions $dim = get_company_pref('use_dimension'); diff --git a/sales/includes/ui/sales_order_ui.inc b/sales/includes/ui/sales_order_ui.inc index 28b079cd..a2aae62c 100644 --- a/sales/includes/ui/sales_order_ui.inc +++ b/sales/includes/ui/sales_order_ui.inc @@ -325,11 +325,9 @@ function display_order_header(&$order, $editable, $date_text, $display_tax_group { table_section(2); - div_start('currency'); label_row(_("Customer Currency:"), $order->customer_currency); exchange_rate_display($order->customer_currency, get_company_currency(), ($editable ? $_POST['OrderDate'] : $order->document_date)); - div_end(); } table_section(3); @@ -382,7 +380,7 @@ function display_order_header(&$order, $editable, $date_text, $display_tax_group && (get_base_sales_type()>0)) { $change_prices = 1; } - $Ajax->activate('currency'); + $Ajax->activate('_ex_rate'); if ($order->trans_type == 10) { $_POST['delivery_date'] = get_invoice_duedate(get_post('customer_id'), get_post('OrderDate')); } else