feat(API): Service 로직 개선
- EstimateService, ItemService 기능 추가 - OrderService 공정 연동 개선 - SalaryService, ReceivablesService 수정 - HandoverReportService, SiteBriefingService 추가 - Pricing 서비스 추가 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
31
app/Services/Pricing/PricingService.php
Normal file
31
app/Services/Pricing/PricingService.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Pricing;
|
||||
|
||||
use App\Services\Service;
|
||||
|
||||
class PricingService extends Service
|
||||
{
|
||||
/**
|
||||
* 아이템 가격 조회
|
||||
*
|
||||
* @param string $itemType 'PRODUCT' or 'MATERIAL'
|
||||
* @param int $itemId 상품/자재 ID
|
||||
* @param int|null $clientId 거래처 ID (거래처별 특가 적용)
|
||||
* @param string|null $date 기준일 (가격 이력 조회용)
|
||||
* @return array{price: float, warning: string|null}
|
||||
*/
|
||||
public function getItemPrice(
|
||||
string $itemType,
|
||||
int $itemId,
|
||||
?int $clientId = null,
|
||||
?string $date = null
|
||||
): array {
|
||||
// TODO: 실제 가격 조회 로직 구현
|
||||
// 현재는 임시로 0원 반환
|
||||
return [
|
||||
'price' => 0,
|
||||
'warning' => null,
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user