FinancialForce Accounting provides the components you need to embed a widget on the Account and Product detail page to view a tabular report of the current record's profitability. This is explained in Using the Profitability Reporting Widget.
You can embed the widget onto another object's detail page but doing so involves creating a Visualforce Page specific to your chosen object. The easiest way to do this is by copying the markup from the Visualforce Page provided for the Account or Product object, and pasting it into a new Visualforce Page for your chosen object. Ensure that you are logged in as System Administrator then:
<apex:page standardController="Account" showHeader="true" sidebar="true" standardStylesheets="true">
<!-- Hidden field so we can get the account name from the standard controller -->
<span style="display:none;">{!account.name}</span>
<c2g:ProfitabilityReportingWidget record="{!account}" filter-fieldname="{!$ObjectType.c2g__codaTransactionLineItem__c.name}.{!$ObjectType.c2g__codaTransactionLineItem__c.fields.c2g__Account__c.name}" />
</apex:page>
<apex:page standardController="Account" showHeader="true" sidebar="true" standardStylesheets="true"><!-- Hidden field so we can get the account name from the standard controller -->
<span style="display:none;">{!account.name}</span><c2g:ProfitabilityReportingWidget record="{!account}" filter-fieldname="{!$ObjectType.c2g__codaTransactionLineItem__c.name}.{!$ObjectType.c2g__codaTransactionLineItem__c.fields.c2g__Account__c.name}" /></apex:page>
Related Concepts
Related Tasks