#LOCAL("UserDefinedAttributes", #FUNCTION("GetVisibleUserDefinedAttributes", #Object, "true"))
#IF(#DEFINED(#Text) OR #DEFINED(#Description) OR #COUNT(#UserDefinedAttributes))
#GUI.item(
"active" = 1,
"id" = "tab-product-description",
"title" = "{Description}",
"content" = {(
#IF(#DEFINED(#Text) OR #DEFINED(#Description))
#LOCAL("DisplayPrice", #UNDEF)
#IF(#IsMaster)
#SET("DisplayPrice",#DISPLAYPRICE(#Object, #INPUT.Currency, #Shop.TaxModel, #Session.User.Object, 0))
#ELSE
#SET("DisplayPrice",#DISPLAYPRICE(#Object, #INPUT.Currency, #Shop.TaxModel, #Session.User.Object, 1))
#ENDIF
#LOCAL("ReferencePrice",#FUNCTION("REFERENCEPRICE", #Object, #DisplayPrice, #INPUT.Currency))#IF(#DEFINED(#ReferencePrice) AND #DEFINED(#DisplayPrice) AND #ReferencePrice != #DisplayPrice)
#RefAmount #IF(#DEFINED(#RefUnit.Abbreviation))#RefUnit.Abbreviation#ELSE#RefUnit.NameOrAlias#ENDIF = #ReferencePrice[money]#ENDIF
#ENDLOCAL
#ENDLOCAL
#IF(#Text)
#BLOCK("InlineEditor", "html", #Object, "Text", "Tag=div;Class=CategoryText")#Text[0]#ENDBLOCK
#ELSE
#BLOCK("InlineEditor", "html", #Object, "Text", "Tag=div;Class=CategoryText")#Description[0]#ENDBLOCK
#ENDIF
#ENDIF
#IF(#UserDefinedAttributes)
#INCLUDE("Content-UserAttributes")
#ENDIF
)}
)
#ENDIF
#ENDLOCAL