Commit 8924b5f6 by mushishixian

fix

parent 1e4618be
Showing with 1 additions and 1 deletions
......@@ -67,7 +67,7 @@ class SupplierValidator
if (empty($request->get('supplier_id'))) {
$count = $supplierModel->where('supplier_name', $request->get('supplier_name'))->count();
$companyNameCount = $supplierModel->where('register_company_name',
$request->get('register_company_name'))->count();
$request->get('register_company_name'))->where('register_company_name','!=','')->count();
} else {
$count = $supplierModel->where('supplier_name', $request->get('supplier_name'))
->where('supplier_id', '!=', $request->get('supplier_id'))->count();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment