feat: 수주 목록 rootNodes 수량 합계 조회 추가
- OrderService index()에 withSum('rootNodes', 'quantity') 추가
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -43,7 +43,8 @@ public function index(array $params)
|
|||||||
|
|
||||||
$query = Order::query()
|
$query = Order::query()
|
||||||
->where('tenant_id', $tenantId)
|
->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) {
|
if ($forWorkOrder) {
|
||||||
|
|||||||
Reference in New Issue
Block a user