feat: 수주 목록 rootNodes 수량 합계 조회 추가

- OrderService index()에 withSum('rootNodes', 'quantity') 추가

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-19 11:17:50 +09:00
parent 6ac3f0c860
commit 59cd8cf4fe

View File

@@ -43,7 +43,8 @@ public function index(array $params)
$query = Order::query()
->where('tenant_id', $tenantId)
->with(['client:id,name,manager_name', 'items', 'quote:id,quote_number']);
->with(['client:id,name,manager_name', 'items', 'quote:id,quote_number'])
->withSum('rootNodes', 'quantity');
// 작업지시 생성 가능한 수주만 필터링
if ($forWorkOrder) {