feat:테넌트설정 API 및 다수 서비스 개선
- TenantSetting CRUD API 추가 - Calendar, Entertainment, VAT 서비스 개선 - 5130 BOM 계산 로직 수정 - quote_items에 item_type 컬럼 추가 - tenant_settings 테이블 마이그레이션 - Swagger 문서 업데이트
This commit is contained in:
@@ -157,12 +157,22 @@ public function scopeProducts($query)
|
||||
/**
|
||||
* Materials 타입만 (SM, RM, CS)
|
||||
* join 시 ambiguous 에러 방지를 위해 테이블 prefix 사용
|
||||
*
|
||||
* @deprecated Use scopeByItemTypes() with tenant settings instead
|
||||
*/
|
||||
public function scopeMaterials($query)
|
||||
{
|
||||
return $query->whereIn('items.item_type', self::MATERIAL_TYPES);
|
||||
}
|
||||
|
||||
/**
|
||||
* 특정 품목유형만 조회 (테넌트 설정 연동용)
|
||||
*/
|
||||
public function scopeByItemTypes($query, array $types)
|
||||
{
|
||||
return $query->whereIn('items.item_type', $types);
|
||||
}
|
||||
|
||||
/**
|
||||
* 활성 품목만
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user