|
@@ -62,7 +62,7 @@ |
|
62
|
62
|
} |
|
63
|
63
|
|
|
64
|
64
|
public function scopeValidOrder($query) |
|
65
|
65
|
{ |
|
66
|
|
- return $query->whereHas('order', fn ($o) => $o->where('status', 'completed')); |
|
66
|
+ return $query->whereHas('order', fn ($o) => $o->whereIn('payment_status', ['paid', 'partially_paid'])); |
|
67
|
67
|
} |
|
68
|
68
|
} |