From 777582638c041f49c618ce4922c2123ac6abd0e3 Mon Sep 17 00:00:00 2001 From: vine_liutk <961510893@qq.com> Date: Wed, 19 Jan 2022 14:57:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B5=84=E9=87=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/DealerEarning.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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, + ]); } /**