Merge branch 'staging' of https://dev.sismedika.online/febio/aso into staging

This commit is contained in:
2025-04-03 09:22:05 +07:00

View File

@@ -119,8 +119,9 @@ class AutocompleteController extends Controller {
$drugs = Drug::query()
->where([
'atc_code' => $request->provider, // ini untuk menggunakan list obat yang baru
'active' => 1
'active' => 1,
])
->whereNotNull('id_setara')
->where(function ($query) use ($search) {
$query->where('name', 'like', "%$search%")
->orWhere('code', 'like', "%$search%");
@@ -136,6 +137,7 @@ class AutocompleteController extends Controller {
'price' => $drug->price,
'unit' => $drug->unit,
'remark' => $drug->remark,
'multiply_jual' => $drug->multiply_jual,
];
});
return Helper::responseJson(data: $manipulatedDrugs);