14 if (!AccessController::getCurrent()->check(ActionDictionary::ACTION_STORE_VIEW))
21 $companyName = $fields[
'companyName'];
23 if (empty($companyName))
30 $userId = CurrentUser::get()->getId();
32 'PERSON_TYPE' => CONTRACTOR_JURIDICAL,
33 'COMPANY' => $companyName,
34 'CREATED_BY' => $userId,
35 'MODIFIED_BY' => $userId,
38 $contractorId = \CCatalogContractor::add($fields);