Update
This commit is contained in:
@@ -51,7 +51,7 @@ class ApotekController extends Controller
|
|||||||
$query->where('tx_prescriptions.dTanggalresep', '<', $start_date);
|
$query->where('tx_prescriptions.dTanggalresep', '<', $start_date);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
->when($request->input('status'), function ($query, $status) {
|
->when($request->input('status') && $request->input('status') != 'all', function ($query, $status) {
|
||||||
$query->where(function ($query) use ($status) {
|
$query->where(function ($query) use ($status) {
|
||||||
$query->where('tx_prescription_orders.sStatus', '=', $status);
|
$query->where('tx_prescription_orders.sStatus', '=', $status);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -335,7 +335,8 @@ export default function TableList() {
|
|||||||
: Object.fromEntries([...searchParams.entries(), ['order', order], ['orderBy', orderBy]]);
|
: Object.fromEntries([...searchParams.entries(), ['order', order], ['orderBy', orderBy]]);
|
||||||
|
|
||||||
const response = await axios.get(`/get-prescription-orders`, {
|
const response = await axios.get(`/get-prescription-orders`, {
|
||||||
params: { ...parameters, type: 'prescription-orders' },
|
params: { ...parameters, search:searchText, order: order,
|
||||||
|
orderBy: orderBy, status:statusValue, type: 'prescription-orders' },
|
||||||
});
|
});
|
||||||
setDataTableData(response.data);
|
setDataTableData(response.data);
|
||||||
setData(
|
setData(
|
||||||
|
|||||||
Reference in New Issue
Block a user