14 "FROM b_sale_order_props_group ".
34 $GLOBALS[
"APPLICATION"]->ThrowException(
GetMessage(
"SKGOPG_EMPTY_PERS_TYPE"),
"ERROR_NO_PERSON_TYPE");
39 $GLOBALS[
"APPLICATION"]->ThrowException(
GetMessage(
"SKGOPG_EMPTY_GROUP"),
"ERROR_NO_NAME");
47 $GLOBALS[
"APPLICATION"]->ThrowException(str_replace(
"#ID#",
$arFields[
"PERSON_TYPE_ID"],
GetMessage(
"SKGOPG_NO_PERS_TYPE")),
"ERROR_NO_PERSON_TYPE");
63 $strUpdate =
$DB->PrepareUpdate(
"b_sale_order_props_group",
$arFields);
65 $strSql =
"UPDATE b_sale_order_props_group SET ".$strUpdate.
" WHERE ID = ".
$ID.
"";
78 while ($arOrderProps = $db_orderProps->Fetch())
80 $DB->Query(
"DELETE FROM b_sale_order_props_variant WHERE ORDER_PROPS_ID = ".$arOrderProps[
"ID"].
"",
true);
81 $DB->Query(
"UPDATE b_sale_order_props_value SET ORDER_PROPS_ID = NULL WHERE ORDER_PROPS_ID = ".$arOrderProps[
"ID"].
"",
true);
82 $DB->Query(
"DELETE FROM b_sale_order_props_relation WHERE PROPERTY_ID = ".$arOrderProps[
"ID"].
"",
true);
84 $DB->Query(
"UPDATE b_sale_order_props SET PROPS_GROUP_ID = NULL WHERE PROPS_GROUP_ID = ".
$ID.
"",
true);
87 return $DB->Query(
"DELETE FROM b_sale_order_props_group WHERE ID = ".
$ID.
"",
true);
static CheckFields($ACTION, &$arFields, $ID=0)
static Update($ID, $arFields)
static GetList($arOrder=array(), $arFilter=array(), $arGroupBy=false, $arNavStartParams=false, $arSelectFields=array())
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
$GLOBALS['_____370096793']