diff --git a/app/Models/DealerEarning.php b/app/Models/DealerEarning.php index e6eaed96..d5790f87 100644 --- a/app/Models/DealerEarning.php +++ b/app/Models/DealerEarning.php @@ -76,7 +76,11 @@ class DealerEarning extends Model */ public function scopeOnlyPaid($query) { - return $query->where('status', DealerEarningStatus::Paid); + // return $query->where('status', DealerEarningStatus::Paid); + return $query->whereIn('status', [ + DealerEarningStatus::Pending, + DealerEarningStatus::Paid, + ]); } /**