#IF(NOT #DELETE AND #COUNT(#Shop.CustomerGroups) > 1)
#SNIPPET("INC-BatchActions", "BatchActions, NoAddButton", "BatchActions", 1)
#ENDIF
#LOCAL("Product", #Object)
#LOCAL("SelectedPriceList", 0)
#LOCAL("CustomerGroupsCounter", 0)
#GUI("accordion")
#LOCAL("ActivePosition", 0)
#IF(#INPUT.AccordionActivePosition)
#SET("ActivePosition", #INPUT.AccordionActivePosition)
#ENDIF
#LOOP(#Shop.CustomerGroups)
#IF(#Alias NE "NewCustomer")
#IF(NOT #ActivePosition)
#SET("ActivePosition", 1)
#ENDIF
#LOCAL("AccordionContent",
{(
#LOOP(#PriceLists)
#IF(#Shop.CurrencyID == #CurrencyID)
#SET("SelectedPriceList", #_)
#ENDIF
#ENDLOOP
#IF(NOT #DELETE)
#ENDIF #REM #ENDREM
)})
#IF(NOT #IsEmpty(#AccordionContent))
#GUI.item(
"pos" = {(#CustomerGroupsCounter)},
"open" = {(#IF(#ActivePosition == #CustomerGroupsCounter)1#ELSE0#ENDIF)},
"title" = {(#NameOrAlias)},
"alias" = {(#Alias)},
"content" = {(
)}
)
#ENDIF
#ENDLOCAL #REM #ENDREM
#ENDIF #REM #ENDREM
#SET("CustomerGroupsCounter", #CustomerGroupsCounter + 1)
#ENDLOOP #REM #ENDREM
#ENDLOCAL #ENDREM
#ENDGUI #REM #ENDREM
#ENDLOCAL #REM #ENDREM
#ENDLOCAL #REM #ENDREM
#ENDLOCAL #REM #ENDREM
#REM #ENDREM