-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Order invoice price incl tax check #293
Order invoice price incl tax check #293
Conversation
This reverts commit 3c66b7a.
Bugfix/nullcheck
Bundledproduct with attributes
check if the blob exists before returning the URL
@{ | ||
var logoPicture = await _pictureService.GetPictureById(_pdfSettings.LogoPictureId); | ||
var logoExists = logoPicture != null; | ||
var limitbyVendor = !string.IsNullOrEmpty(Model.Item2); | ||
var limitbyVendor = !string.IsNullOrEmpty(Model.Item2); | ||
var priceIncludesTax = workContext.TaxDisplayType == TaxDisplayType.IncludingTax; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TaxDisplayType should get from the Order
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KrzysztofPajak updated code as per feedback
@@ -87,6 +88,7 @@ | |||
string paymentMethodStr = paymentMethod != null ? paymentMethod.FriendlyName : order.PaymentMethodSystemName; | |||
} | |||
<li>@(string.Format(_translationService.GetResource("PDFInvoice.PaymentMethod", order.CustomerLanguageId), paymentMethodStr))</li> | |||
@await Component.InvokeAsync("Widget", new { widgetZone = "payment_method_below", additionalData = @order.Id }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the name for the widget zone, better name will be i.e: pdf_payment_method_below
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KrzysztofPajak updated the zone name
Thanks for contributing! |
Resolves #294 #295
Type: bugfix
Issue
1.In order invoice PDF unit price, item price , subtotal amount and discount price is configured with including tax property's, This leads confusion to customer.
2. Header text and footer are coming with some junk characters in PDF.
Solution
1.For all the above prices added check to include or exclude tax based on CustomerTaxDisplayTypeId from order details .
2.Decoded header text and footer text with Html.Raw attribute to avoid junk characters.
Breaking changes
None
Testing