示例#1
0
	if($shopLocalization == "ua")
	{
		if ($fizUaExist)
		{
			$dbSaleOrderPropsGroup = CSaleOrderPropsGroup::GetList(Array(), Array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz_ua"], "NAME" => GetMessage("SALE_WIZARD_PROP_GROUP_FIZ1")), false, false, array("ID"));
			if ($arSaleOrderPropsGroup = $dbSaleOrderPropsGroup->GetNext())
				$arGeneralInfo["propGroup"]["user_fiz_ua"] = $arSaleOrderPropsGroup["ID"];

			$dbSaleOrderPropsGroup = CSaleOrderPropsGroup::GetList(Array(),Array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz_ua"], "NAME" => GetMessage("SALE_WIZARD_PROP_GROUP_FIZ2")), false, false, array("ID"));
			if ($arSaleOrderPropsGroup = $dbSaleOrderPropsGroup->GetNext())
				$arGeneralInfo["propGroup"]["adres_fiz_ua"] = $arSaleOrderPropsGroup["ID"];
		}
		elseif ($personType["fiz_ua"] == "Y")
		{
			$arGeneralInfo["propGroup"]["user_fiz_ua"] = CSaleOrderPropsGroup::Add(Array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz_ua"], "NAME" => GetMessage("SALE_WIZARD_PROP_GROUP_FIZ1"), "SORT" => 100));
			$arGeneralInfo["propGroup"]["adres_fiz_ua"] = CSaleOrderPropsGroup::Add(Array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz_ua"], "NAME" => GetMessage("SALE_WIZARD_PROP_GROUP_FIZ2"), "SORT" => 200));
		}
	}
	$arProps = Array();
	if($personType["fiz"] == "Y")
	{
		$arProps[] = Array(
				"PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz"],
				"NAME" => GetMessage("SALE_WIZARD_PROP_6"),
				"TYPE" => "TEXT",
				"REQUIED" => "Y",
				"DEFAULT_VALUE" => "",
				"SORT" => 100,
				"USER_PROPS" => "Y",
				"IS_LOCATION" => "N",
				"PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["user_fiz"],
$errorMessage = "";
$bVarsFromForm = false;
$ID = IntVal($ID);
if ($REQUEST_METHOD == "POST" && strlen($Update) > 0 && $saleModulePermissions >= "W" && check_bitrix_sessid()) {
    $arFields = array("NAME" => $NAME, "SORT" => $SORT);
    if ($ID > 0) {
        if (!CSaleOrderPropsGroup::Update($ID, $arFields)) {
            if ($ex = $APPLICATION->GetException()) {
                $errorMessage .= $ex->GetString() . ". ";
            } else {
                $errorMessage .= GetMessage("SOPGEN_ERROR_SAVING_PROPS_GRP") . ". ";
            }
        }
    } else {
        $arFields["PERSON_TYPE_ID"] = $PERSON_TYPE_ID;
        $ID = CSaleOrderPropsGroup::Add($arFields);
        $ID = IntVal($ID);
        if ($ID <= 0) {
            if ($ex = $APPLICATION->GetException()) {
                $errorMessage .= $ex->GetString() . ". ";
            } else {
                $errorMessage .= GetMessage("SOPGEN_ERROR_SAVING_PROPS_GRP") . ". ";
            }
        }
    }
    if (strlen($errorMessage) <= 0) {
        if (strlen($apply) <= 0) {
            LocalRedirect("/bitrix/admin/sale_order_props_group.php?lang=" . LANG . GetFilterParams("filter_", false));
        }
    } else {
        $bVarsFromForm = true;
示例#3
0
     COption::SetOptionString('sale', '1C_SALE_USE_ZIP', 'Y');
 }
 COption::SetOptionString('sale', 'weight_unit', GetMessage("SALE_WIZARD_WEIGHT_UNIT"));
 COption::SetOptionString('sale', 'WEIGHT_different_set', 'N');
 COption::SetOptionString('sale', 'ADDRESS_different_set', 'N');
 COption::SetOptionString('sale', 'measurement_path', '/bitrix/modules/sale/measurements.php');
 COption::SetOptionString('sale', 'delivery_handles_custom_path', '/bitrix/php_interface/include/sale_delivery/');
 COption::SetOptionString('sale', 'location_zip', '101000');
 COption::SetOptionString('sale', 'weight_koef', '1');
 COption::SetOptionString('sale', 'location', '547');
 COption::SetOptionString('sale', 'recalc_product_list', 'Y');
 COption::SetOptionString('sale', 'recalc_product_list_period', '7');
 //Order Prop Group
 $arGeneralInfo["propGroup"]["adres_fiz"] = CSaleOrderPropsGroup::Add(array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz"], "NAME" => GetMessage("SALE_WIZARD_PROP_GROUP_FIZ1"), "SORT" => 100));
 $arGeneralInfo["propGroup"]["compl_fiz"] = CSaleOrderPropsGroup::Add(array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz"], "NAME" => GetMessage("SALE_WIZARD_PROP_GROUP_FIZ2"), "SORT" => 50));
 $arGeneralInfo["propGroup"]["adres_ur"] = CSaleOrderPropsGroup::Add(array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["ur"], "NAME" => GetMessage("SALE_WIZARD_PROP_GROUP_UR1"), "SORT" => 100));
 $arProps = array(array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz"], "NAME" => GetMessage("SALE_WIZARD_PROP_1"), "TYPE" => "RADIO", "REQUIED" => "Y", "DEFAULT_VALUE" => "F", "SORT" => 100, "USER_PROPS" => "N", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["compl_fiz"], "SIZE1" => 0, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "", "IS_FILTERED" => "N", "VARIANTS" => array(array("NAME" => GetMessage("SALE_WIZARD_PROP_1_VAL_1"), "VALUE" => "F", "SORT" => 100), array("NAME" => GetMessage("SALE_WIZARD_PROP_1_VAL_2"), "VALUE" => "P", "SORT" => 200))), array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz"], "NAME" => GetMessage("SALE_WIZARD_PROP_2"), "TYPE" => "LOCATION", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 50, "USER_PROPS" => "Y", "IS_LOCATION" => "Y", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_fiz"], "SIZE1" => 3, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "LOCATION", "IS_FILTERED" => "N"), array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["ur"], "NAME" => GetMessage("SALE_WIZARD_PROP_2"), "TYPE" => "LOCATION", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 1800, "USER_PROPS" => "Y", "IS_LOCATION" => "Y", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_ur"], "SIZE1" => 3, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "Y", "CODE" => "F_LOCATION", "IS_FILTERED" => "N"), array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz"], "NAME" => GetMessage("SALE_WIZARD_PROP_3"), "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 60, "USER_PROPS" => "Y", "IS_LOCATION" => "Y", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_fiz"], "SIZE1" => 1, "SIZE2" => 40, "DESCRIPTION" => GetMessage("SALE_WIZARD_PROP_3_DESCR"), "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "", "IS_FILTERED" => "N"), array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz"], "NAME" => GetMessage("SALE_WIZARD_PROP_4"), "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 70, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_fiz"], "SIZE1" => 8, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "INDEX", "IS_FILTERED" => "N"), array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz"], "NAME" => GetMessage("SALE_WIZARD_PROP_5"), "TYPE" => "TEXTAREA", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 80, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_fiz"], "SIZE1" => 30, "SIZE2" => 2, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "ADDRESS", "IS_FILTERED" => "N"), array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz"], "NAME" => "E-Mail", "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 40, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_fiz"], "SIZE1" => 40, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "Y", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "EMAIL", "IS_FILTERED" => "N"), array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["fiz"], "NAME" => GetMessage("SALE_WIZARD_PROP_6"), "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 100, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_fiz"], "SIZE1" => 40, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "Y", "IS_PAYER" => "Y", "IS_LOCATION4TAX" => "N", "CODE" => "CONTACT_PERSON", "IS_FILTERED" => "N"), array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["ur"], "NAME" => GetMessage("SALE_WIZARD_PROP_7"), "TYPE" => "TEXTAREA", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 1100, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_ur"], "SIZE1" => 40, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "F_ADDRESS_FULL", "IS_FILTERED" => "N"), array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["ur"], "NAME" => "E-Mail", "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 2200, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_ur"], "SIZE1" => 40, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "Y", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "F_EMAIL", "IS_FILTERED" => "N"), array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["ur"], "NAME" => GetMessage("SALE_WIZARD_PROP_8"), "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 1000, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_ur"], "SIZE1" => 40, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "Y", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "F_COMPANY_NAME", "IS_FILTERED" => "N"), array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["ur"], "NAME" => GetMessage("SALE_WIZARD_PROP_9"), "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 1600, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_ur"], "SIZE1" => 0, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "F_PHONE", "IS_FILTERED" => "N"), array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["ur"], "NAME" => GetMessage("SALE_WIZARD_PROP_10"), "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 2000, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_ur"], "SIZE1" => 0, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "Y", "IS_LOCATION4TAX" => "N", "CODE" => "F_NAME", "IS_FILTERED" => "N"), array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["ur"], "NAME" => GetMessage("SALE_WIZARD_PROP_11"), "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 1700, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_ur"], "SIZE1" => 0, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "F_FAX", "IS_FILTERED" => "N"), array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["ur"], "NAME" => GetMessage("SALE_WIZARD_PROP_12"), "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 1900, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_ur"], "SIZE1" => 0, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "F_ADDRESS", "IS_FILTERED" => "N"));
 if ($bRus) {
     $arProps[] = array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["ur"], "NAME" => GetMessage("SALE_WIZARD_PROP_13"), "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 1200, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_ur"], "SIZE1" => 0, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "F_INN", "IS_FILTERED" => "N");
     $arProps[] = array("PERSON_TYPE_ID" => $arGeneralInfo["personType"]["ur"], "NAME" => GetMessage("SALE_WIZARD_PROP_14"), "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 1300, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arGeneralInfo["propGroup"]["adres_ur"], "SIZE1" => 0, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "F_KPP", "IS_FILTERED" => "N");
 }
 foreach ($arProps as $prop) {
     $variants = array();
     if (!empty($prop["VARIANTS"])) {
         $variants = $prop["VARIANTS"];
         unset($prop["VARIANTS"]);
     }
     $id = CSaleOrderProps::Add($prop);
     if (strlen($prop["CODE"]) > 0) {
         $arGeneralInfo["propCode"][$prop["CODE"]] = $prop["CODE"];
         $arGeneralInfo["propCodeID"][$prop["CODE"]] = $id;
示例#4
0
if ($arSaleOrderPropsGroup = $dbSaleOrderPropsGroup->GetNext()) {
    $arPropGroup["adres_fiz"] = $arSaleOrderPropsGroup["ID"];
} else {
    $arPropGroup["adres_fiz"] = CSaleOrderPropsGroup::Add(array("PERSON_TYPE_ID" => $contactPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_GROUP_FIZ2"), "SORT" => 200));
}
$dbSaleOrderPropsGroup = CSaleOrderPropsGroup::GetList(array(), array("PERSON_TYPE_ID" => $companyPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_GROUP_UR1")), false, false, array("ID"));
if ($arSaleOrderPropsGroup = $dbSaleOrderPropsGroup->GetNext()) {
    $arPropGroup["user_ur"] = $arSaleOrderPropsGroup["ID"];
} else {
    $arPropGroup["user_ur"] = CSaleOrderPropsGroup::Add(array("PERSON_TYPE_ID" => $companyPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_GROUP_UR1"), "SORT" => 300));
}
$dbSaleOrderPropsGroup = CSaleOrderPropsGroup::GetList(array(), array("PERSON_TYPE_ID" => $companyPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_GROUP_UR2")), false, false, array("ID"));
if ($arSaleOrderPropsGroup = $dbSaleOrderPropsGroup->GetNext()) {
    $arPropGroup["adres_ur"] = $arSaleOrderPropsGroup["ID"];
} else {
    $arPropGroup["adres_ur"] = CSaleOrderPropsGroup::Add(array("PERSON_TYPE_ID" => $companyPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_GROUP_UR2"), "SORT" => 400));
}
$arProps = array();
$arProps[] = array("PERSON_TYPE_ID" => $contactPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_6"), "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 100, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arPropGroup["user_fiz"], "SIZE1" => 40, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "Y", "IS_PAYER" => "Y", "IS_LOCATION4TAX" => "N", "CODE" => "FIO", "IS_FILTERED" => "Y");
$arProps[] = array("PERSON_TYPE_ID" => $contactPTID, "NAME" => "E-Mail", "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 110, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arPropGroup["user_fiz"], "SIZE1" => 40, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "Y", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "EMAIL", "IS_FILTERED" => "Y");
$arProps[] = array("PERSON_TYPE_ID" => $contactPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_9"), "TYPE" => "TEXT", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 120, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arPropGroup["user_fiz"], "SIZE1" => 0, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "PHONE", "IS_FILTERED" => "N");
$arProps[] = array("PERSON_TYPE_ID" => $contactPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_4"), "TYPE" => "TEXT", "REQUIED" => "N", "DEFAULT_VALUE" => "101000", "SORT" => 130, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arPropGroup["adres_fiz"], "SIZE1" => 8, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "ZIP", "IS_FILTERED" => "N", "IS_ZIP" => "Y");
$arProps[] = array("PERSON_TYPE_ID" => $contactPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_21"), "TYPE" => "TEXT", "REQUIED" => "N", "DEFAULT_VALUE" => "", "SORT" => 145, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arPropGroup["adres_fiz"], "SIZE1" => 40, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "CITY", "IS_FILTERED" => "Y");
$arProps[] = array("PERSON_TYPE_ID" => $contactPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_2"), "TYPE" => "LOCATION", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 140, "USER_PROPS" => "Y", "IS_LOCATION" => "Y", "PROPS_GROUP_ID" => $arPropGroup["adres_fiz"], "SIZE1" => 40, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "Y", "CODE" => "LOCATION", "IS_FILTERED" => "N", "INPUT_FIELD_LOCATION" => "");
$arProps[] = array("PERSON_TYPE_ID" => $contactPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_5"), "TYPE" => "TEXTAREA", "REQUIED" => "Y", "DEFAULT_VALUE" => "", "SORT" => 150, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arPropGroup["adres_fiz"], "SIZE1" => 30, "SIZE2" => 3, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "ADDRESS", "IS_FILTERED" => "N");
if ($shopLocalization == "ru") {
    $arProps[] = array("PERSON_TYPE_ID" => $companyPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_13"), "TYPE" => "TEXT", "REQUIED" => "N", "DEFAULT_VALUE" => "", "SORT" => 220, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arPropGroup["user_ur"], "SIZE1" => 0, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "INN", "IS_FILTERED" => "N");
    $arProps[] = array("PERSON_TYPE_ID" => $companyPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_14"), "TYPE" => "TEXT", "REQUIED" => "N", "DEFAULT_VALUE" => "", "SORT" => 230, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arPropGroup["user_ur"], "SIZE1" => 0, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "KPP", "IS_FILTERED" => "N");
} elseif ($shopLocalization == "de") {
    $arProps[] = array("PERSON_TYPE_ID" => $companyPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_BLZ"), "TYPE" => "TEXT", "REQUIED" => "N", "DEFAULT_VALUE" => "", "SORT" => 220, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arPropGroup["user_ur"], "SIZE1" => 0, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "BLZ", "IS_FILTERED" => "N");
    $arProps[] = array("PERSON_TYPE_ID" => $companyPTID, "NAME" => Loc::getMessage("CRM_ORD_PROP_IBAN"), "TYPE" => "TEXT", "REQUIED" => "N", "DEFAULT_VALUE" => "", "SORT" => 230, "USER_PROPS" => "Y", "IS_LOCATION" => "N", "PROPS_GROUP_ID" => $arPropGroup["user_ur"], "SIZE1" => 0, "SIZE2" => 0, "DESCRIPTION" => "", "IS_EMAIL" => "N", "IS_PROFILE_NAME" => "N", "IS_PAYER" => "N", "IS_LOCATION4TAX" => "N", "CODE" => "IBAN", "IS_FILTERED" => "N");