feat:테넌트설정 API 및 다수 서비스 개선
- TenantSetting CRUD API 추가 - Calendar, Entertainment, VAT 서비스 개선 - 5130 BOM 계산 로직 수정 - quote_items에 item_type 컬럼 추가 - tenant_settings 테이블 마이그레이션 - Swagger 문서 업데이트
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user