diff --git a/app/Models/OrderItems.php b/app/Models/OrderItems.php index adab973..f609361 100755 --- a/app/Models/OrderItems.php +++ b/app/Models/OrderItems.php @@ -226,6 +226,7 @@ class OrderItems extends SoftDeletesModel $query->where("status", Orders::STATUS_ONGOING) ->whereIn("project_id", $projects); }) + ->where("total", ">", 0) ->whereNull("paid_at") ->where("id", ">", $last_id) ->with("customer");