diff --git a/app/Controllers/Sales.php b/app/Controllers/Sales.php index a5f7f21..4ae3f5a 100755 --- a/app/Controllers/Sales.php +++ b/app/Controllers/Sales.php @@ -527,7 +527,7 @@ class Sales extends BaseController ->join('manufacturer', 'manufacturer.manufacturer_id = products.manufacturer_id') ->where('JSON_CONTAINS(make_id, \'' . $encodedMakeId . '\')', null, false) ->where('JSON_CONTAINS(models_id, \'' . $encodedModelId . '\')', null, false) - // ->where('qty_stock >',0) + ->where('qty_stock >',0) ->where('products.isactive', 1) ->findAll(); @@ -539,7 +539,7 @@ class Sales extends BaseController ->join('manufacturer', 'manufacturer.manufacturer_id = products.manufacturer_id') ->where('JSON_CONTAINS(make_id, \'' . $encodedMakeId . '\')', null, false) ->where('JSON_CONTAINS(models_id, \'' . $encodedModelId . '\')', null, false) - // ->where('qty_stock >',0) + ->where('qty_stock >',0) ->where('products.isactive', 1) ->findAll(); diff --git a/app/Views/sales_order_form.php b/app/Views/sales_order_form.php index e339e5c..ee5ab01 100755 --- a/app/Views/sales_order_form.php +++ b/app/Views/sales_order_form.php @@ -210,7 +210,7 @@