Commit b46faeca by 杨树贤

去掉联系人问题

parent d72a0783
Showing with 8 additions and 8 deletions
...@@ -164,14 +164,14 @@ class SupplierValidator ...@@ -164,14 +164,14 @@ class SupplierValidator
if (!$contactCount) { if (!$contactCount) {
$errorMessageList[] = "供应商至少要有一个联系人,请补全"; $errorMessageList[] = "供应商至少要有一个联系人,请补全";
} }
$contacts = SupplierContactModel::where('supplier_id', $supplierId)->get()->toArray(); // $contacts = SupplierContactModel::where('supplier_id', $supplierId)->get()->toArray();
foreach ($contacts as $contact) { // foreach ($contacts as $contact) {
$contactValidator = new SupplierContactValidator(); // $contactValidator = new SupplierContactValidator();
$contactValidateResult = $contactValidator->checkSave($contact); // $contactValidateResult = $contactValidator->checkSave($contact);
if ($contactValidateResult) { // if ($contactValidateResult) {
$errorMessageList[] = $contactValidateResult; // $errorMessageList[] = $contactValidateResult;
} // }
} // }
} }
//币种为人民币的话需要验证税号 //币种为人民币的话需要验证税号
if ($validateData['currency'] == 1) { if ($validateData['currency'] == 1) {
......
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