Improve GET /health-care-sheets
This commit is contained in:
parent
183ba64fea
commit
f6044c886a
|
@ -1159,7 +1159,7 @@ class HealthCareSheetController extends Controller
|
|||
if (!empty($beneficiary_id)) {
|
||||
$query = $query->where('beneficiary_id', $beneficiary_id);
|
||||
} else {
|
||||
if ($state != 'ALL') {
|
||||
if (!in_array($state, ['ALL', 'UNTREATED'])) {
|
||||
$query = $query->whereNull('beneficiary_id');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue