#IF(#FormError)

{InputError}

#IF(#FormErrors.Reason.INTERVAL_EXISTS)

{IntervalExists}

#ENDIF

{PleaseCorrectErrors}

#ENDIF #REM #ENDREM #IF(#DELETE)

{AcceptAction}

#ENDIF #REM #ENDREM #IF(NOT #DELETE)

{PriceListsNotification1} {LinkCustomerGroups}

{PriceListsNotification2}

{PriceListsHelpCenter}

#ENDIF #IF(NOT #SuperProduct OR #HasSubOwnPrices)
#IF(#DELETE) #LOOP(#DeleteQuantities) #ENDLOOP #ENDIF #REM #ENDREM
#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(#DELETE) #LOOP(#DeleteQuantities) #LOOP(#PriceInfos) #ENDLOOP #ENDLOOP #REM #ENDREM #ELSE #LOOP(#PriceInfoQuantities) #IF(#SelectedPriceList.ID == #PriceListID) #WITH_ERROR(#FormError AND (#DEFINED(#FormErrors.Form.UnitySaveQuantityPrices))) #ENDWITH_ERROR #LOOP(#PriceInfos) #IF(#CurrencyID == #Shop.CurrencyID AND #SelectedPriceList.ID == #PriceListID) #WITH_ERROR(#FormError AND (#DEFINED(#FormErrors.Form.UnitySaveQuantityPrices))) #ENDWITH_ERROR #ENDIF #ENDLOOP #ENDIF #REM #ENDREM #ENDLOOP #REM #ENDREM #REM #ENDREM #IF(#FormErrors) #LOOP(#SORT(#FROMHASH(#FormErrors.Value.NewPriceListID), "Key")) #IF(#GET("FormErrors.Value.NewPrice.".#Key,"html") NE "" OR #GET("FormErrors.Value.NewQuantity.".#Key,"html") NE "") #ENDIF #ENDLOOP #REM #ENDREM #ENDIF #REM #ENDREM #REM #ENDREM ="1")class="NewEntry" #ENDIF#ENDIF> #ENDIF #REM #ENDREM
{Quantity} {PricePerItem}
#Quantity[float] #IF(#DEFINED(#Price))#Price[money]#ENDIF
#Quantity[float] #IF(#Price)#Price[money]#ENDIF
#Currency.Symbol
#LOCAL("ShopCurrency", #CURRENCY(#Shop.CurrencyID))#ShopCurrency.Symbol#ENDLOCAL
#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" = {( #AccordionContent[0]
)} ) #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
#IF(#DELETE) #ELSE #IF(NOT #SuperProduct OR #HasSubOwnPrices) #IF(#COUNT(#Shop.CustomerGroups) > 1) #ENDIF #ENDIF #ENDIF
#ENDIF #REM #ENDREM