Static Analysis

This commit is contained in:
David Bomba 2024-06-18 10:49:51 +10:00
parent 1520bf93ee
commit 6b0a25453d

View File

@ -495,7 +495,7 @@ class PurchaseOrderController extends BaseController
$purchase_orders = PurchaseOrder::withTrashed()->whereIn('id', $this->transformKeys($ids))->company()->get();
if (! $purchase_orders) {
if ($purchase_orders->count() == 0) {
return response()->json(['message' => 'No Purchase Orders Found']);
}