tb
This commit is contained in:
@@ -20,7 +20,7 @@ class PaymentController extends Controller
|
||||
{
|
||||
// return $request->toArray();
|
||||
$appointments = Appointment::query()
|
||||
->where('sPaymentStatus', 'settlement')
|
||||
->where('sPaymentStatus', '!=' ,'cod')
|
||||
->with(['healthCare', 'healthCare.commission', 'detail', 'user', 'doctor', 'doctor.user']);
|
||||
|
||||
if ($request->has('search')) {
|
||||
@@ -55,8 +55,8 @@ class PaymentController extends Controller
|
||||
// });
|
||||
|
||||
$appointments = $appointments->where(function($q) use ($request) {
|
||||
$q->where('dAgreeOn', '>=', $request->appointment_start)
|
||||
->where('dAgreeOn', '<=', $request->appointment_end);
|
||||
$q->where('dCreateOn', '>=', $request->appointment_start)
|
||||
->where('dCreateOn', '<=', $request->appointment_end);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -342,8 +342,8 @@ export default function List() {
|
||||
</IconButton>
|
||||
</TableCell>
|
||||
<TableCell align="left">{row.health_care?.sHealthCare ?? '-'}</TableCell>
|
||||
<TableCell align="left">{row.detail?.sPaymentDetails?.settlement_time ?? '-'}</TableCell>
|
||||
<TableCell align="left">{row.detail?.dTanggalAppointment ?? ''}</TableCell>
|
||||
<TableCell align="left">{row.detail?.sPaymentDetails?.settlement_time ?? row.detail?.sPaymentDetails?.transaction_time}</TableCell>
|
||||
<TableCell align="left">{row.detail?.dTanggalAppointment ? row.detail?.dTanggalAppointment : row.detail?.dCreateOn }</TableCell>
|
||||
<TableCell align="left">{row.nID}</TableCell>
|
||||
<TableCell align="left">{row.sBookingCode ?? ''}</TableCell>
|
||||
<TableCell align="left">{row.doctor?.user?.full_name ?? '-'}</TableCell>
|
||||
|
||||
Reference in New Issue
Block a user