X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fsales_order_entry.php;h=3517196df208c18965e70d7b915fde0269af05be;hb=161bba0a7475c63af6951cb1fc465747926f51bf;hp=485776933d56ea779482ab0dbe43bd036516b05c;hpb=f0e1edfccbf3608463c9da99b40f9c65fd298bb3;p=fa-stable.git diff --git a/sales/sales_order_entry.php b/sales/sales_order_entry.php index 48577693..3517196d 100644 --- a/sales/sales_order_entry.php +++ b/sales/sales_order_entry.php @@ -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) {