Sales Delivery, Direct Invoice and Sales Credit: added exchange rate edition/storage...
[fa-stable.git] / sales / includes / ui / sales_order_ui.inc
index 0d2b3d33dbc7c1d011ea9d1525b8ea8e7d864a07..f58f677c1fea70d472b5c555e331f5b00bf230d3 100644 (file)
@@ -372,7 +372,6 @@ function display_order_header(&$order, $editable, $date_text)
                        $row = get_customer_to_order($_POST['customer_id']);
                        if ($row['dissallow_invoices'] == 1)
                                $customer_error = _("The selected customer account is currently on hold. Please contact the credit control personnel to discuss.");
-               
                }
        }
 
@@ -380,7 +379,7 @@ function display_order_header(&$order, $editable, $date_text)
 
        table_section(2);
 
-       if (!is_company_currency($order->customer_currency))
+       if (!is_company_currency($order->customer_currency) && in_array($order->trans_type, array(ST_SALESINVOICE, ST_CUSTDELIVERY)))
        {
                label_row(_("Customer Currency:"), $order->customer_currency);
                exchange_rate_display($order->customer_currency, get_company_currency(),