Optimise product tables
This commit is contained in:
@@ -357,9 +357,9 @@ class User extends Authenticatable implements IDs
|
||||
->select([
|
||||
'payment_id',
|
||||
'invoice_id',
|
||||
DB::raw('SUM(alloc_amt) AS allocate'),
|
||||
DB::raw('SUM(amount) AS allocate'),
|
||||
])
|
||||
->where('alloc_amt','>',0)
|
||||
->where('amount','>',0)
|
||||
->groupBy(['invoice_id','payment_id']);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user