Show order info reference on pending orders

This commit is contained in:
Deon George
2020-04-22 23:23:54 +10:00
parent 1934c6dfeb
commit 3b168af492
5 changed files with 41 additions and 3 deletions

View File

@@ -462,7 +462,7 @@ class User extends Authenticatable
public function client_service_movements(): DatabaseCollection
{
return Service::active()
->select(['id','account_id','product_id','order_status','model'])
->select(['id','account_id','product_id','order_status','model','order_info'])
->where('order_status','!=','ACTIVE')
->whereIN('account_id',$this->all_accounts()->pluck('id')->unique()->toArray())
->with(['account','product'])