#LOCAL("DeleteObjectsList", "")
#LOOP(#DeleteObjects)
#SET("DeleteObjectsList", #DeleteObjectsList . " " . #ID)#ENDLOOP
#IF(#DELETE OR #ASSIGN_CUSTOMERS_TO_GROUP)
#IF(#DELETE AND NOT #ASSIGN_CUSTOMERS_TO_GROUP)
{AcceptAction}
{AssignCustomersToNoGroup}
#ELSE
#ENDIF
#ELSIF(#FeatureMaxValueReached)
{Notification}
{CouldNotCreateCustomerGroup}
{FeatureMaxValue} #Shop.FeatureMaxValue.CustomerGroups
#INCLUDE("FeaturePromotion")
#ELSIF(#Shop.FeatureCurrentValue.CustomerGroups EQ #Shop.FeatureMaxValue.CustomerGroups)
{Notification}
{MaxFeatureValueReached}
{FeatureMaxValue} #Shop.FeatureMaxValue.CustomerGroups
#INCLUDE("FeaturePromotion")
#ENDIF
#IF(#DOUBLE_NEW_OBJECT OR #DOUBLE_OBJECT)
{InputError}
{DoubleObject}
#ENDIF
#ENDLOCAL#REM - DeleteObjectsList - #ENDREM
#IF(#DELETE OR #ASSIGN_CUSTOMERS_TO_GROUP)
#ELSE
#ENDIF