Improve GET /health-care-sheets

This commit is contained in:
Djery-Tom 2022-02-10 10:08:10 +01:00
parent 183ba64fea
commit f6044c886a
1 changed files with 1 additions and 1 deletions

View File

@ -1159,7 +1159,7 @@ class HealthCareSheetController extends Controller
if (!empty($beneficiary_id)) { if (!empty($beneficiary_id)) {
$query = $query->where('beneficiary_id', $beneficiary_id); $query = $query->where('beneficiary_id', $beneficiary_id);
} else { } else {
if ($state != 'ALL') { if (!in_array($state, ['ALL', 'UNTREATED'])) {
$query = $query->whereNull('beneficiary_id'); $query = $query->whereNull('beneficiary_id');
} }
} }