I have a bunch of currency fields that are displayed in a lightning page using the lightning:outputfield.
All of those currency fields have a default value of 0.
2 fields out of several dozens are showing the value of €0.00. All have the same field definition - for example:
<fields>
<fullName>aaa__c</fullName>
<defaultValue>0</defaultValue>
<externalId>false</externalId>
<label>Association d'assurance accident</label>
<precision>8</precision>
<required>false</required>
<scale>2</scale>
<trackFeedHistory>false</trackFeedHistory>
<trackHistory>false</trackHistory>
<trackTrending>false</trackTrending>
<type>Currency</type>
</fields>
<fields>
<fullName>aaa_cj__c</fullName>
<defaultValue>0</defaultValue>
<externalId>false</externalId>
<label>Association d'assurance accident</label>
<precision>8</precision>
<required>false</required>
<scale>2</scale>
<trackFeedHistory>false</trackFeedHistory>
<trackHistory>false</trackHistory>
<trackTrending>false</trackTrending>
<type>Currency</type>
</fields>
Notice : both fields only differ by their api name
where aaa__c shows a default value of €0.00 and aaa_cj__c shows no value.
Below is the output of those fields (here set on a page layout):
What I've tried so far:
- Default values in field aaa_cj__c: 0, 0.00, 1.00
- Set the fields on a lightning page and a page layout
What might be the cause of such a difference in the display of those fields?
Thanks for your help