fix: [영업관리] codebridge DB 테이블 exists 검증 오류 수정
- tenant_prospects, tenants, sales_products 등이 codebridge DB에 있으므로 exists:테이블명 → exists:codebridge.테이블명 으로 변경 - SalesScenarioController, SalesContractController, ConsultationController, SalesProductController 일괄 수정
This commit is contained in:
@@ -21,13 +21,13 @@ class SalesContractController extends Controller
|
||||
public function saveProducts(Request $request): JsonResponse
|
||||
{
|
||||
$validated = $request->validate([
|
||||
'tenant_id' => 'nullable|exists:tenants,id',
|
||||
'prospect_id' => 'nullable|exists:tenant_prospects,id',
|
||||
'management_id' => 'nullable|exists:sales_tenant_managements,id',
|
||||
'category_id' => 'required|exists:sales_product_categories,id',
|
||||
'tenant_id' => 'nullable|exists:codebridge.tenants,id',
|
||||
'prospect_id' => 'nullable|exists:codebridge.tenant_prospects,id',
|
||||
'management_id' => 'nullable|exists:codebridge.sales_tenant_managements,id',
|
||||
'category_id' => 'required|exists:codebridge.sales_product_categories,id',
|
||||
'products' => 'required|array',
|
||||
'products.*.product_id' => 'required|exists:sales_products,id',
|
||||
'products.*.category_id' => 'required|exists:sales_product_categories,id',
|
||||
'products.*.product_id' => 'required|exists:codebridge.sales_products,id',
|
||||
'products.*.category_id' => 'required|exists:codebridge.sales_product_categories,id',
|
||||
'products.*.registration_fee' => 'required|numeric|min:0',
|
||||
'products.*.subscription_fee' => 'required|numeric|min:0',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user