mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-06 23:05:45 -04:00
Merge pull request #1102 from RuleDomain/fix-out-of-stock-warning
Fix out of stock warning
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user