Hi,
Is it possible to update or make a small change to display the amount of an opportunity like 1,500,000 € as 1.5M€ across all views?
Hi,
Is it possible to update or make a small change to display the amount of an opportunity like 1,500,000 € as 1.5M€ across all views?
Maybe it is possible. Did you check on this forum?
i did, i didn’t find anything relevant, they just talk about make a custom extention but i’m struggling with and i break my CRM 1 time x).
So maybe here there is a simple way to do it or something else.
but not yet documented
I do not know if this will work in v8.8 or not.
Change the file:
→ public/legacy/custom/modules/Opportunities/metadata/detailviewdefs.php
Find the code for amount filed and add the below customCode:
array(
'name' => 'amount',
'customCode' => '
{if $fields.amount.value >= 1000000}
{math equation="x / 1000000" x=$fields.amount.value format="%.1f"}M€
{elseif $fields.amount.value >= 1000}
{math equation="x / 1000" x=$fields.amount.value format="%.1f"}K€
{else}
{$fields.amount.value}€
{/if}
',
),
Do Repair & Rebuild!
You may need to change the Opportunities module to legacy mode.
File location → config/services/module/module_routing.yaml
opportunities:
index: true // true means suite 8 view
list: true
record: false // false means classic view
[root@pool-100-0-0-169 suitecrm]# nano public/legacy/custom/modules/Opportunities/
Ext/ logic_hooks.php
Hi, thx for your anwser,
there is not the file you told me to modify, did you know maybe where so ?
You need to create those folders and file in the location.
Then set correct file permissions.
my bad thx you, i did it but there is still the classic number for like 1500000 €
I’ve created the file but i don’t know very well the web side