From 2719c43e3d41af5337adc1248cfcd52066bbd592 Mon Sep 17 00:00:00 2001 From: Steve Ireland Date: Mon, 30 Jan 2017 20:38:24 -0500 Subject: [PATCH] Fix for issue where the warning messages for out of stock or below reorder level were not being sent to the user. --- application/libraries/Sale_lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/libraries/Sale_lib.php b/application/libraries/Sale_lib.php index 82a303fda..8710c06b0 100644 --- a/application/libraries/Sale_lib.php +++ b/application/libraries/Sale_lib.php @@ -407,7 +407,7 @@ class Sale_lib { $item_info = $this->CI->Item->get_info_by_id_or_number($item_id); - if ($item_info->stock_type === 0) { + if ($item_info->stock_type == '0') { $item_quantity = $this->CI->Item_quantity->get_item_quantity($item_id, $item_location)->quantity; $quantity_added = $this->get_quantity_already_added($item_id, $item_location);