feat(API): 결재함 및 대시보드 관련 개선
- ApprovalService: inbox 쿼리에 결재자 상세 정보 추가 (직책, 부서) - PurchaseController: dashboardDetail 엔드포인트 추가 - CardTransactionService: 당월 이용 건수 추가 - SaleService: 대시보드 조회 개선 - LOGICAL_RELATIONSHIPS.md 업데이트 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -69,7 +69,25 @@ public function show(int $id): Sale
|
||||
|
||||
return Sale::query()
|
||||
->where('tenant_id', $tenantId)
|
||||
->with(['client:id,name', 'deposit', 'creator:id,name'])
|
||||
->with([
|
||||
'client:id,name',
|
||||
'deposit',
|
||||
'creator:id,name',
|
||||
'order.items' => function ($query) {
|
||||
$query->select([
|
||||
'id',
|
||||
'order_id',
|
||||
'item_name',
|
||||
'quantity',
|
||||
'unit_price',
|
||||
'supply_amount',
|
||||
'tax_amount',
|
||||
'total_amount',
|
||||
'note',
|
||||
'sort_order',
|
||||
])->orderBy('sort_order');
|
||||
},
|
||||
])
|
||||
->findOrFail($id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user