fix(API): 견적 관리 필드 저장/조회 개선

- QuoteStoreRequest/UpdateRequest: manager, contact, remarks 필드 추가
- QuoteController: store에서 validated 데이터 로깅 추가 (디버깅용)
- QuoteService: manager, contact, remarks 필드 저장/조회 로직 추가
- FormulaEvaluatorService: BOM 계산 서비스 개선

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-06 20:57:51 +09:00
parent 494bdd19da
commit d6783b4a15
5 changed files with 282 additions and 23 deletions

View File

@@ -12,6 +12,24 @@ public function authorize(): bool
return true;
}
/**
* 프론트엔드 필드명을 백엔드 필드명으로 정규화
* manager_name → manager, manager_contact → contact
*/
protected function prepareForValidation(): void
{
$mappings = [
'manager_name' => 'manager',
'manager_contact' => 'contact',
];
foreach ($mappings as $from => $to) {
if ($this->has($from) && ! $this->has($to)) {
$this->merge([$to => $this->input($from)]);
}
}
}
public function rules(): array
{
return [

View File

@@ -12,6 +12,24 @@ public function authorize(): bool
return true;
}
/**
* 프론트엔드 필드명을 백엔드 필드명으로 정규화
* manager_name → manager, manager_contact → contact
*/
protected function prepareForValidation(): void
{
$mappings = [
'manager_name' => 'manager',
'manager_contact' => 'contact',
];
foreach ($mappings as $from => $to) {
if ($this->has($from) && ! $this->has($to)) {
$this->merge([$to => $this->input($from)]);
}
}
}
public function rules(): array
{
return [