function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
stefanodlstefanodl 

Visualforce PDF issue with multi-currency enabled

Hello,

 

we have enabled multi-currency in our org. our Standard Currency is EUR and we added USD.

We use pdf documents on a custom object called Order.

When an order (from an opp) is created in USD  all the amount fields on the PDF are shown in USD and EUR as well.

We don't want to show the EUR conversion.

 

 

 

Someone knows how to do that? 

 

Many thanks,

Stefano

Best Answer chosen by Admin (Salesforce Developers) 
bob_buzzardbob_buzzard

I hit this exact issue some time ago, but couldn't find a solution through config.  I ended up writing out the currencycode from the record and formatting the amount.  Something like:

 

{!rec.CurrencyIsoCode}&nbsp;<apex:OutputText style="float:right;" value="{0,number,###,###,###,###,##0.00}">
   <apex:param value="{!rec.Amount__c}"/>
</apex:OutputText>

 

All Answers

bob_buzzardbob_buzzard

I hit this exact issue some time ago, but couldn't find a solution through config.  I ended up writing out the currencycode from the record and formatting the amount.  Something like:

 

{!rec.CurrencyIsoCode}&nbsp;<apex:OutputText style="float:right;" value="{0,number,###,###,###,###,##0.00}">
   <apex:param value="{!rec.Amount__c}"/>
</apex:OutputText>

 

This was selected as the best answer
stefanodlstefanodl

Bob,

 

at the end I found the same solution on my own and it's exactly the same.

 

Thanks!

 

Stefano

Ulas KutukUlas Kutuk
Hey Bob, Is this the only way you think ?
I have tried this
<apex:outputText value="{0,number,currency}">
<apex:param value="{!TotalTaxAmount}"/>
</apex:outputText>
but it still shows $ sign to me ? any other workaround ?