Create a custom component using LWC to display the count and aggregate of Amount of all the opportunities belonging to an Account. The component should be available and display data on Lightning Record Page of Account object.
This is a polished version of initial works and may or may not recieve updates in future.
- Considerations undertaken for Multi-Currency enabled Orgs.
- Return type on Apex Controller is a comma delimited string, however this can be changed to return a primitive or non-primitive type instead.
- JS Controller works by breaking down the comma delimited string into String[] and values are then mapped to each property individually.
This can be optimized inline with the 2nd and 3rd point mentioned in Considerations but it's past 4 AM and I really don't want to right now. I should sleep.