feat:테넌트설정 API 및 다수 서비스 개선

- TenantSetting CRUD API 추가
- Calendar, Entertainment, VAT 서비스 개선
- 5130 BOM 계산 로직 수정
- quote_items에 item_type 컬럼 추가
- tenant_settings 테이블 마이그레이션
- Swagger 문서 업데이트
This commit is contained in:
2026-01-26 20:29:22 +09:00
parent f2da990771
commit 6d05ab815f
54 changed files with 2090 additions and 110 deletions

View File

@@ -225,7 +225,7 @@ public function destroy(int $id): bool
}
/**
* 입고처리 (상태 변경 + 입고 정보 입력)
* 입고처리 (상태 변경 + 입고 정보 입력 + 재고 연동)
*/
public function process(int $id, array $data): Receiving
{
@@ -255,6 +255,11 @@ public function process(int $id, array $data): Receiving
$receiving->updated_by = $userId;
$receiving->save();
// 🆕 재고 연동: Stock + StockLot 생성/갱신
if ($receiving->item_id) {
app(StockService::class)->increaseFromReceiving($receiving);
}
return $receiving->fresh();
});
}