#IF(#FormError)

{InputError}

#IF(#FormErrors.Reason.INTERVAL_EXISTS)

{IntervalExists}

#ENDIF

{PleaseCorrectErrors}

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

{AcceptAction}

#ENDIF #REM #ENDREM #IF(#COUNT(#SubProducts) AND NOT #SuperProduct)

{PleaseEditBulkPricesOnVariation}

#ENDIF #IF(NOT #DELETE AND NOT #FUNCTION("LISTPRICE", #Object, #Shop.CurrencyID, #Shop.InputTaxModel, 1))

{NoListPriceAddInfo}

#ENDIF #REM #ENDREM #IF(NOT #SuperProduct OR #HasSubOwnPrices) #LOCAL("SelectedPriceList", 0) #REM #ENDREM #LOOP(#SelectedPriceLists) #IF(#Shop.CurrencyID == #CurrencyID) #SET("SelectedPriceList", #_) #ENDIF #ENDLOOP
#IF(#DELETE) #LOOP(#DeleteQuantities) #ENDLOOP #ENDIF
#IF(NOT #DELETE) #SNIPPET("INC-BatchActions", "BatchActions, NoAddButton", "BatchActions", 1) #ENDIF #LOCAL("Product", #Object) #IF(#DELETE) #LOOP(#DeleteQuantities) #LOOP(#PriceInfos) #ENDLOOP #ENDLOOP #ELSE #LOCAL("TableRowCount", 1) #LOOP(#PriceInfoQuantities) #WITH_ERROR(#FormError AND (#DEFINED(#FormErrors.Form.UnitySaveQuantityPrices))) #ENDWITH_ERROR #LOOP(#PriceInfos) #IF(#CurrencyID == #Shop.CurrencyID) #WITH_ERROR(#FormError AND (#DEFINED(#FormErrors.Form.UnitySaveQuantityPrices))) #ENDWITH_ERROR #ENDIF #ENDLOOP #REM #ENDREM #SET("TableRowCount", #TableRowCount + 1) #ENDLOOP #REM #ENDREM #REM #ENDREM #IF(#FormErrors) #LOCAL("NewEntryError", 0) #LOOP(#SORT(#FROMHASH(#FormErrors.Value.NewPriceListID), "Key")) #IF(#GET("FormErrors.Value.NewPrice.".#Key,"html") NE "" OR #GET("FormErrors.Value.NewQuantity.".#Key,"html") NE "") #SET("TableRowCount", #TableRowCount + 1) #ENDIF #ENDLOOP #REM #ENDREM #ENDLOCAL #REM #ENDREM #ENDIF #ENDLOCAL #REM #ENDREM #REM #ENDREM #ENDIF #REM #ENDREM
{Quantity} {PricePerItem}
#Quantity[float] #IF(#DEFINED(#Price))#Price[money]#ENDIF
#PriceQuantity #FORMAT(#FUNCTION("LISTPRICE", #Product, #Shop.CurrencyID, #Shop.InputTaxModel, 1),"money")
#REM #ENDREM #Quantity[float] #REM #ENDREM #IF(#DEFINED(#Price))#Price[money]#ENDIF
#SET("NewEntryError", #GET("FormErrors.Value.NewQuantity.".#Key)) #REM #ENDREM
#SET("NewEntryError", #GET("FormErrors.Value.NewPrice.".#Key)) #REM #ENDREM #Currency.Symbol
#LOCAL("ShopCurrency", #CURRENCY(#Shop.CurrencyID))#ShopCurrency.Symbol#ENDLOCAL
#IF(NOT #DELETE) #ENDIF #REM #ENDREM #ENDLOCAL #REM #ENDREM
#REM #ENDREM
#IF(#DELETE) #ELSE #IF(NOT #SuperProduct OR #HasSubOwnPrices) #ENDIF #ENDIF
#ENDLOCAL #REM #ENDREM #ENDIF #REM #ENDREM
#REM #ENDREM