You need to sign in to do that
Don't have an account?
Rico Tobias Tägder
Visualforce: wrong/weird currency visualization
Hello Community,
I'm working on a simple Invoice the user can call via button.
I have the following code snippet:
<p><apex:outputField value="{!Object.InvoiceAmount__c}"/></p>
I get following result:
The currency of the Record is configured as 'GBP' but VF also shows the currency of the User, in this Case EUR.
I only want to see one amount in the currency of the Record. Do you have any idea?
I tried a lot with other tags like 'outputText', but then I dont see the currency and wrong number format (###.##).
Thank you in advance :)
I'm working on a simple Invoice the user can call via button.
I have the following code snippet:
<p><apex:outputField value="{!Object.InvoiceAmount__c}"/></p>
I get following result:
The currency of the Record is configured as 'GBP' but VF also shows the currency of the User, in this Case EUR.
I only want to see one amount in the currency of the Record. Do you have any idea?
I tried a lot with other tags like 'outputText', but then I dont see the currency and wrong number format (###.##).
Thank you in advance :)
I believe the default currency of the user is also being displayed in the visualforce page even if the objects currency is different
Can you query for "currencyISOCode" as well when querying for the record?
For organizations that have the multicurrency option enabled, the CurrencyIsoCode field is defined for any object that can have currency fields. The CurrencyIsoCode field and currency fields are linked in a special way. On any specific record, the CurrencyIsoCode field defines the currency of that record. Therefore, the values of all currency fields on that record are expressed in that currency.
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/field_types.htm
Also, you can take a look at the thread
https://developer.salesforce.com/forums/?id=906F000000096XiIAI where similar question is answered
Anudeep