Overhead and labour cost changed to define standard costs.
[fa-stable.git] / sales / sales_order_entry.php
index 485776933d56ea779482ab0dbe43bd036516b05c..3517196df208c18965e70d7b915fde0269af05be 100644 (file)
@@ -531,7 +531,7 @@ function check_item_data()
                return false;
        }
 
-       $cost_home = get_standard_cost(get_post('stock_id')); // Added 2011-03-27 Joe Hunt
+       $cost_home = get_unit_cost(get_post('stock_id')); // Added 2011-03-27 Joe Hunt
        $cost = $cost_home / get_exchange_rate_from_home_currency($_SESSION['Items']->customer_currency, $_SESSION['Items']->document_date);
        if (input_num('price') < $cost)
        {