Currency in PDF different, yet correct all the way though the process.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
I have GBP and Eur published on the stores (GBP default).  Euro restricted to two stores and GBP restricted to two stores.  When accessing a GBP one, I run through an order, everything is in £ GBP as expected, but when I get the PDF it is in Euros.

Looking at the order in Admin everything is in £ but again look at the PDF and its in Euros.  I look in the DB and in the order table, for that order the customer currency code is EUR and exchange rate relates to the difference between the order and the PDF amount.

I'm not sure where it is picking this up from.  The PDF store URL is correct, it is not confused about which site it is generating the order for.

Steve.
6 years ago
It's not the bug. PDF (and any functionality in admin area) supports only primary store currency. You also can enter a product price in a primary currency only
6 years ago
Thanks, but when I said default, £ GBP is my main primary currency.  It is Euro that is not and attracts a conversion.  For that store Euro shouldn't even come into it.  When I go to my other store in the same instance, which is configured to be Euros I see Euros through out and the PDF is correctly in Euros.  From what you are saying, I should be saying GBP on the PDF of the second store?

Steve.
6 years ago
I have fixed this by removing the limited to stores box on each currency.  I used this to allow Euros on two stores but not GBP.  GBP on another two stores but not Euros.

By restricting the currencies by this method, I can recreate this error in 3.8.

Steve.
6 years ago
OK, I have met my requirement and hopefully pin pointed the bug.  Where you have two currencies, if you limit both currencies to different stores, this is where you get this behaviour in one of the stores.  By restricting only one of the currencies, I get the same outcome but not the side effect.
6 years ago
Hi Steve,

Please ignore my previous email.

1. Do you experience this issue when printing PDF in admin area (as a store owner) or in a public store (as a customer)?
2. Do you see wrong currency for all items (product prices, discounts, order totals)?
3. What is wrong currency sign or amount? Both?
6 years ago
1. Yes, you see it in both.  In admin everything is GBP until you hit PDF.  Public store similar, you first see it when you get order confirmation and you click view order.  It seems to be that the order submission is where it goes wrong as at that point it stamps the order table with EURO.  If you look in admin everything is in GBP (exc PDF) after the event.
2. Yes, price, total, subtotal, shipping, tax, order total are in EURO.  The product attribute prices are in £GBP.
3. Currency sign and the amount.  The amounts are also converted based on the exchange rate.

Let me know if you need anything else.
6 years ago
What currency was an order placed in? PDF should be rendered in a currency used when placing an order
6 years ago
I agree, the order was placed in GBP, the PDF shows EURO's.

Steve.
6 years ago
Hi Steve,

I cannot reproduce it. Are you using a version with source code? If yes, then the only way to find the issue is to debug the solution ("PrintOrdersToPdf" method of \Nop.Services\Common\PdfService.cs)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.