10 $personType = intval(
$arFields[
"PERSON_TYPE"]);
14 $GLOBALS[
"APPLICATION"]->ThrowException(Loc::getMessage(
"CC_EMPTY_COMPANY"));
19 $GLOBALS[
"APPLICATION"]->ThrowException(Loc::getMessage(
"CC_WRONG_PERSON_LASTNAME"));
34 $APPLICATION->throwException(
'This API has been deprecated and is no longer available');
40 if(array_key_exists(
'DATE_CREATE',
$arFields))
42 if(array_key_exists(
'DATE_MODIFY',
$arFields))
44 if(array_key_exists(
'CREATED_BY',
$arFields))
49 if($id <= 0 || !self::checkFields(
'UPDATE',
$arFields))
51 $strUpdate =
$DB->PrepareUpdate(
"b_catalog_contractor",
$arFields);
53 if(!empty($strUpdate))
55 $strSql =
"UPDATE b_catalog_contractor SET ".$strUpdate.
" WHERE ID = ".$id.
" ";
61 public static function delete($id)
67 $APPLICATION->throwException(
'This API has been deprecated and is no longer available');
74 $dbDocument = CCatalogDocs::getList(
array(),
array(
"CONTRACTOR_ID" => $id));
75 if($arDocument = $dbDocument->Fetch())
77 $GLOBALS[
"APPLICATION"]->ThrowException(Loc::getMessage(
"CC_CONTRACTOR_HAVE_DOCS_EXT"));
81 return $DB->Query(
"DELETE FROM b_catalog_contractor WHERE ID = ".$id.
" ",
true);
const CONTRACTOR_INDIVIDUAL
const CONTRACTOR_JURIDICAL
static update($id, $arFields)
static checkFields($action, &$arFields)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
$GLOBALS['_____370096793']