Fixed [0000087] (price always updated after order date change)
[fa-stable.git] / sales / includes / ui / sales_credit_ui.inc
index be4adbf3060af84870e41abb06245b1d856f8830..5af7227b940795a28191dd71b08bf47707169218 100644 (file)
@@ -113,7 +113,10 @@ function display_credit_header(&$order)
 
        date_row(_("Date:"), 'OrderDate', '', null, 0, 0, 0, null, true);
        if (isset($_POST['_OrderDate_changed'])) {
-               $change_prices = 1;
+               if (!is_company_currency($order->customer_currency) 
+                       && (get_base_sales_type()>0)) {
+                               $change_prices = 1;
+               }
                $Ajax->activate('currency');
        }
     shippers_list_row(_("Shipping Company:"), 'ShipperID', $order->ship_via);