@store.CompanyName
- if (logoExists) - { - var url = await _pictureService.GetPictureUrl(logoPicture, 0, false, store.SslEnabled ? store.SecureUrl : store.Url); -@(string.Format(_translationService.GetResource("PDFInvoice.Order#", order.CustomerLanguageId), order.OrderNumber)) (@order.CreatedOnUtc)
-
- @if (order.BillingAddress != null)
- {
- @(_translationService.GetResource("PDFInvoice.BillingInformation", order.CustomerLanguageId))
- - @if (!string.IsNullOrEmpty(order.BillingAddress.Company)) - { - @(string.Format(_translationService.GetResource("PDFInvoice.Company", order.CustomerLanguageId), order.BillingAddress.Company)) - } - @(string.Format(_translationService.GetResource("PDFInvoice.Name", order.CustomerLanguageId), order.BillingAddress.FirstName + " " + order.BillingAddress.LastName)) - @(string.Format(_translationService.GetResource("PDFInvoice.Phone", order.CustomerLanguageId), order.BillingAddress.PhoneNumber)) - @(string.Format(_translationService.GetResource("PDFInvoice.Address", order.CustomerLanguageId), order.BillingAddress.Address1)) - @(order.BillingAddress.City + ", " + order.BillingAddress.ZipPostalCode) - @((await _countryService.GetCountryById(order.BillingAddress.CountryId))?.Name) - - var paymentMethod = _paymentService.LoadPaymentMethodBySystemName(order.PaymentMethodSystemName); - var paymentMethodStr = paymentMethod != null ? paymentMethod.FriendlyName : order.PaymentMethodSystemName; - @(string.Format(_translationService.GetResource("PDFInvoice.PaymentMethod", order.CustomerLanguageId), paymentMethodStr)) - @await Component.InvokeAsync("Widget", new { widgetZone = "pdf_payment_method_below", additionalData = order.Id }) - - } - |
-
- @if (order.ShippingAddress != null)
- {
- @(_translationService.GetResource("PDFInvoice.ShippingInformation", order.CustomerLanguageId))
- - @if (!string.IsNullOrEmpty(order.ShippingAddress.Company)) - { - @(string.Format(_translationService.GetResource("PDFInvoice.Company", order.CustomerLanguageId), order.ShippingAddress.Company)) - } - @(string.Format(_translationService.GetResource("PDFInvoice.Name", order.CustomerLanguageId), order.ShippingAddress.FirstName + " " + order.ShippingAddress.LastName)) - @(string.Format(_translationService.GetResource("PDFInvoice.Phone", order.CustomerLanguageId), order.ShippingAddress.PhoneNumber)) - @(string.Format(_translationService.GetResource("PDFInvoice.Address", order.CustomerLanguageId), order.ShippingAddress.Address1)) - @(order.ShippingAddress.City + ", " + order.ShippingAddress.ZipPostalCode) - @((await _countryService.GetCountryById(order.ShippingAddress.CountryId))?.Name) - - @(string.Format(_translationService.GetResource("PDFInvoice.ShippingMethod", order.CustomerLanguageId), order.ShippingMethod)) - } - |
-
@(_translationService.GetResource("PDFInvoice.ProductName", order.CustomerLanguageId)) | -@(_translationService.GetResource("PDFInvoice.ProductPrice", order.CustomerLanguageId)) | -@(_translationService.GetResource("PDFInvoice.ProductQuantity", order.CustomerLanguageId)) | -@(_translationService.GetResource("PDFInvoice.ProductTotal", order.CustomerLanguageId)) | -|
- @((await _productService.GetProductByIdIncludeArch(item.ProductId)).Name)
- @if (!string.IsNullOrEmpty(item.AttributeDescription))
- {
- - @(Html.Raw(item.AttributeDescription)) - } - |
- - @if (priceIncludesTax) - { - @item.UnitPriceInclTax.ToString("N2") - } - else - { - @item.UnitPriceExclTax.ToString("N2") - } - | -@item.Quantity | -- @if (priceIncludesTax) - { - @item.PriceInclTax.ToString("N2") - } - else - { - @item.PriceExclTax.ToString("N2") - } - | -
- @if (order.OrderSubTotalDiscountInclTax > 0 || order.OrderSubTotalDiscountExclTax > 0) - { - @(_translationService.GetResource("PDFInvoice.Discount", order.CustomerLanguageId)) @if (priceIncludesTax) - { - @order.OrderSubTotalDiscountInclTax.ToString("N2") - } - else - { - @order.OrderSubTotalDiscountExclTax.ToString("N2") - } - @order.CustomerCurrencyCode - } - @if (order.PaymentMethodAdditionalFeeInclTax > 0 || order.PaymentMethodAdditionalFeeExclTax > 0) - { - @(_translationService.GetResource("PDFInvoice.PaymentmethodAdditionalFee", order.CustomerLanguageId)) @if (priceIncludesTax) - { - @order.PaymentMethodAdditionalFeeInclTax.ToString("N2") - } - else - { - @order.PaymentMethodAdditionalFeeExclTax.ToString("N2") - } - @order.CustomerCurrencyCode
- } - @(_translationService.GetResource("PDFInvoice.Shipping", order.CustomerLanguageId)) - @if (priceIncludesTax) - { - @order.OrderShippingInclTax.ToString("N2") - } - else - { - @order.OrderShippingExclTax.ToString("N2") - } - @order.CustomerCurrencyCode
- @if (order.OrderDiscount > 0) - { - @(_translationService.GetResource("PDFInvoice.Discount", order.CustomerLanguageId)) - @order.OrderDiscount.ToString("N2") - @order.CustomerCurrencyCode
- } - @foreach (var gcuh in await _giftVoucherService.GetAllGiftVoucherUsageHistory(order.Id)) - { - if (gcuh.UsedValue > 0) - { - var giftvoucher = await _giftVoucherService.GetGiftVoucherById(gcuh.GiftVoucherId); - @(string.Format(_translationService.GetResource("PDFInvoice.GiftVoucherInfo", order.CustomerLanguageId), giftvoucher.Code)) - @gcuh.UsedValue
- } - } - @if (order.OrderTax > 0) - { - @(_translationService.GetResource("PDFInvoice.Tax", order.CustomerLanguageId)) - @order.OrderTax.ToString("N2") - @order.CustomerCurrencyCode
- } - @(_translationService.GetResource("PDFInvoice.OrderTotal", order.CustomerLanguageId)) @order.OrderTotal.ToString("N2") @order.CustomerCurrencyCode
- -
- @Loc["Blog.Comments"] -
-{{comment.CustomerName}}
-