#WITH_ERROR(#FormError AND (#DEFINED(#FormErrors.Form.SaveGlobalValueDiscounts)))
|
#REM #ENDREM
#Value[money]
|
#REM #ENDREM
#IF(#DEFINED(#DiscountAbsolute))#DiscountAbsolute[money]#ENDIF
|
#REM #ENDREM
#IF(#DEFINED(#Discount))#Discount[float] %#ENDIF
|
#ENDWITH_ERROR
#SET("TableRowCount", #TableRowCount + 1)
#ENDLOOP #REM #ENDREM
#REM #ENDREM
#IF(#FormErrors)
#LOCAL("NewEntryError", 0)
#LOOP(#SORT(#FROMHASH(#FormErrors.Value.NewGlobalValueDiscountID), "Key"))
#IF(#GET("FormErrors.Value.NewValue.".#Key,"html") NE "" OR #GET("FormErrors.Value.NewDiscount".#Key,"html") NE "")
|
#SET("NewEntryError", #GET("FormErrors.Value.NewValue.".#Key))
#REM #ENDREM
|
#SET("NewEntryError", #GET("FormErrors.Value.NewDiscountAbsolute.".#Key))
#REM #ENDREM
#Currency.Symbol
|
#SET("NewEntryError", #GET("FormErrors.Value.NewDiscount.".#Key))
#REM #ENDREM
|
#SET("TableRowCount", #TableRowCount + 1)
#ENDIF
#ENDLOOP #REM #ENDREM
#ENDLOCAL #REM #ENDREM
#ENDIF #REM #ENDREM
#ENDLOCAL #REM #ENDREM
#REM #ENDREM
|
#LOCAL("ShopCurrency", #CURRENCY(#Shop.CurrencyID))#ShopCurrency.Symbol#ENDLOCAL
|
#LOCAL("ShopCurrency", #CURRENCY(#Shop.CurrencyID))#ShopCurrency.Symbol#ENDLOCAL
|
%
|
#ENDIF #REM #ENDREM