Commit b46faeca by 杨树贤

去掉联系人问题

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