fix: [pricing] 단가 목록/상세에서 품목코드·품목명 미표시 수정

- Price 모델에 item() BelongsTo 관계 추가
- index/show에서 item:id,code,name,item_category eager load
This commit is contained in:
2026-03-19 23:58:02 +09:00
parent bb4d9d8fbd
commit fc673be0c1
2 changed files with 10 additions and 2 deletions

View File

@@ -81,6 +81,14 @@ class Price extends Model
// Relations
// ─────────────────────────────────────────────────────────────
/**
* 품목 관계
*/
public function item(): BelongsTo
{
return $this->belongsTo(\App\Models\Items\Item::class, 'item_id');
}
/**
* 고객 그룹 관계
*/