ソースを参照

changed client sort order

= 4 年 前
コミット
0052d55fdf
1 ファイル変更3 行追加2 行削除
  1. 3 2
      app/Http/Controllers/PracticeManagementController.php

+ 3 - 2
app/Http/Controllers/PracticeManagementController.php

@@ -739,8 +739,9 @@ class PracticeManagementController extends Controller
             ::where('is_cleared_for_shipment', true)
             ->where('is_cancelled', false)
             ->whereNull('shipment_id')
-            ->orderBy('name_last', 'ASC')
-            ->orderBy('name_first', 'ASC')
+            ->join('client', 'client.id', '=', 'supply_order.client_id')
+            ->orderBy('client.name_last', 'ASC')
+            ->orderBy('client.name_first', 'ASC')
             ->orderBy('client_id', 'ASC')
             ->orderBy('mailing_address_full', 'ASC')
             ->orderBy('created_at', 'ASC')