#LOCAL("FeedbackNeeded", 0) #IF(#FormError)
#IF(#FormErrors.Reason.EbayRequestNotSuccessful)

{EbayWarning}

{EbayRequestNotSuccessful}:
#LOOP(#FormErrors.Reason.EbayRequestNotSuccessful.Errors) Auction #Transaction.EbayAuction.ExternalAuctionId - #Transaction.EbayUserName: #Message
#ENDLOOP

({Summary}: #FormErrors.Reason.EbayRequestNotSuccessful.ErrorCount)

#ELSIF(#FormErrors.Reason.CreateOrderNotSuccessful)

{FailedCreateOrder}

#LOOP(#FormErrors.Reason.CreateOrderNotSuccessful.Errors) #IF(#Name EQ "NoProduct")

{NoProduct}

#ELSIF(#Name EQ "ShippingMethodNoPrice")

{ShippingMethodNoPrice} #LOCAL("DefaultShipping", "")#LOOP(#Shop.ShippingMethods)#IF(#IsDefault)#SET("DefaultShipping", #ID)#ENDIF#ENDLOOP {EditSettingsNow}#ENDLOCAL

#ELSIF(#Name EQ "PaymentMethodNoPrice")

{PaymentMethodNoPrice} #LOCAL("DefaultPayment", "")#LOOP(#Shop.PaymentMethods)#IF(#IsDefault)#SET("DefaultPayment", #ID)#ENDIF#ENDLOOP {EditSettingsNow}#ENDLOCAL

#ENDIF #ENDLOOP #ELSIF(NOT #FormError_FeedbackText)

{InputError}

{PleaseCorrectErrors} #ENDIF
#ENDIF #IF((NOT #FormError) AND (#INPUT.ChangeAction EQ "SendFeedback" OR #INPUT.ChangeAction EQ "SendFulfillMail" OR #INPUT.ChangeAction EQ "CompleteOrder") )

#IF(#INPUT.ChangeAction EQ "SendFeedback"){FeedbackSent}#ELSIF(#INPUT.ChangeAction EQ "SendFulfillMail"){ReminderSent}#ELSIF(#INPUT.ChangeAction EQ "CompleteOrder"){OrderCompleted}#ENDIF

#ENDIF #IF(#INPUT.Page) #ENDIF#IF(#INPUT.PageSize) #ENDIF #SNIPPET("INC-PagerHeader", "ContextObjects", "{Orders}") #IF(NOT #DELETE) #SNIPPET("INC-BatchActions", "BatchActions", "BatchActions") #IF(#FormError AND #FormError_FeedbackText) #ENDIF #ENDIF #IF(#Pager.OrderBy NE "Name") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#Pager.OrderBy NE "ExternalAuctionId") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#Pager.OrderBy NE "EbayUserName") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#Pager.OrderBy NE "Price") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#Pager.OrderBy NE "Order") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#Pager.OrderBy NE "CreationDate") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#Pager.OrderBy NE "FeedbackType") #ELSIF(#INPUT.OrderDesc) #ELSE #ENDIF #IF(#DELETE) #LOOP(#DeleteObjects) #ENDLOOP #ELSE #IF(NOT #COUNT(#Pager.Items)) #ELSE #LOOP(#Pager.Items) #ENDLOOP #ENDIF #ENDIF
{Name}{Name}{Name}{ExternalAuctionId}{ExternalAuctionId}{ExternalAuctionId}{EbayUserName}{EbayUserName}{EbayUserName}{Price}{Price}{Price}{Order}{Order}{Order}{Date}{Date}{Date}{Feedback}{Feedback}{Feedback}
#IF(#INPUT.ViewAction EQ "MBO-ViewEbayOrders") {PleaseSearch}#ELSE {noEbayTransactions}#ENDIF
#IF(#DEFINED(#EbayAuction.Product)) #IF(#EbayAuction.Product.IsMaster AND #DEFINED(#SubProductAuction.Product)) #WITH(#SubProductAuction.Product) #INCLUDE("INC-ProductIcon") #NameOrAlias #ENDWITH #ELSE #WITH(#EbayAuction.Product) #INCLUDE("INC-ProductIcon") #NameOrAlias #ENDWITH #ENDIF #ENDIF #IF(#EbayAuction.ExternalAuctionId AND #EbayAuction.ExternalAuctionId NE " ") {Environment}: #EbayAuction.EbayShopEnvironment.EbayEnvironment.Name#EbayAuction.ExternalAuctionId #ELSE {Environment}: #EbayAuction.EbayShopEnvironment.EbayEnvironment.Name#EbayAuction.EbayShopEnvironment.Name[slice:15,html] #ENDIF #EbayUserName #LOOP(#Shop.Currencies) #LOCAL("ShopCurrencyID", #CurrencyID) #IF(#EbayAuction.EbayShopEnvironment.EbayEnvironment.CurrencyID EQ #ShopCurrencyID) #Price[money]#IF(#Quantity > 1) (#Quantity {Pieces})#ENDIF #ENDIF #ENDLOCAL #ENDLOOP #IF(#IsPurchased) #IF(#CustomerOrder) #CustomerOrder.Alias #ELSE {purchased} #ENDIF #ELSE #LOCAL("ElapsedDays", #CALCULATE(#Now[date] - #CreationDate[date])) #IF(#ElapsedDays >= 3)#ENDIF {NotPurchased} #ENDLOCAL #ENDIF #CreationDate[datetime] #IF(#FeedbackType == 0) #SET("FeedbackNeeded", 1) #ELSE #FeedbackText[slice,20] #ENDIF
#IF(NOT #DELETE AND NOT #SCHEDULEREPEAT) #SNIPPET("Pager", "ContextObjects", "{Orders}") #ENDIF #ENDLOCAL