Fix code following enlightn recommendation

This commit is contained in:
Amir
2022-11-14 19:54:16 +08:00
parent afacd4d374
commit f994326dce
18 changed files with 14 additions and 28 deletions
+1 -1
View File
@@ -376,7 +376,7 @@ class AccountController extends Controller
->groupBy('lelongbidder.payment_id')
->get();
// $payments = Payment::whereIn($saggroupbyid)->get()
$total_payment = Payment::whereIn('id',$saggroupbyid)->get()->sum('total_payment');
$total_payment = Payment::whereIn('id',$saggroupbyid)->sum('total_payment');
$getresit = FileResit::join('payment', 'fileresit.payment_id', '=', 'payment.id')
->where('payment.lelong_id', $lelong_id)