@inherits RazorTemplateBase> @using Dynamicweb; @using Dynamicweb.Ecommerce.Prices; @using Dynamicweb.Rendering;
@if (!string.IsNullOrWhiteSpace(GetString("Ecom:IntegrationCustomerCenter.Invoice.EmptyList"))) { } else { foreach (LoopItem order in GetLoop("Ecom:IntegrationCustomerCenter.InvoiceLoop")) { } }
@Translate("Date", "Date") @Translate("Order ID", "Order ID") @Translate("Status", "Status") @Translate("Total Price", "Total Price")
@Translate("No orders found", "No orders found")
@order.GetString("orderDate") @order.GetString("id") @{ if (!String.IsNullOrEmpty(order.GetString("Status"))) { @order.GetString("Status"); } else { @Translate("N/A", "N/A"); } } @(new PriceInfo { PriceWithoutVAT = order.GetInteger("totalAmountIncVat") }.PriceWithoutVATFormatted)
@if (string.IsNullOrWhiteSpace(GetString("Ecom:IntegrationCustomerCenter.Invoice.EmptyList"))) { var customerNumberOnUser = ""; foreach (LoopItem order in GetLoop("Ecom:IntegrationCustomerCenter.InvoiceLoop")) { customerNumberOnUser = order.GetString("UrlUserID"); } @Translate("Download latest statement here", "Download latest statement here") } @if (!string.IsNullOrWhiteSpace(GetString("Ecom:IntegrationCustomerCenter.Invoice.Paging.Show"))) {
@Translate("Page") @GetString("Ecom:IntegrationCustomerCenter.Paging.CurrentPage") @Translate("of") @GetString("Ecom:IntegrationCustomerCenter.Paging.NumPages")
    @if (!string.IsNullOrWhiteSpace(GetString("Ecom:IntegrationCustomerCenter.Paging.Back.URL"))) {
  • } @if (!string.IsNullOrWhiteSpace(GetString("Ecom:IntegrationCustomerCenter.Paging.HasPages"))) { foreach (LoopItem page in GetLoop("Ecom:IntegrationCustomerCenter.Paging.Pages")) { string activeClass = page.GetString("Ecom:IntegrationCustomerCenter.Paging.PageClass") == "currentPage" ? "pager__btn--current" : "";
  • @page.GetString("Ecom:IntegrationCustomerCenter.Paging.PageIndex")
  • } } @if (!string.IsNullOrWhiteSpace(GetString("Ecom:IntegrationCustomerCenter.Paging.Forward.URL"))) {
  • }
}