function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Products2 Object Default Revenue Schedule on VFP

I am trying to re-create the Products page using VFP and it all works except the Default Revenue Schedule.

I looked at the Page Layout for this and I can't figure out where this section comes from or how to re-create it in VFP.  The only field that relates to revenue is called CanUseRevenueSchedule.


Can anyone tell me how this Default Revenue Schedule can be re-produced in VFP?


Best Answer chosen by Admin (Salesforce Developers) 

The solution was to add the following fields to the VFP




The document that told me this is here.


The code is here my only question is where on gods green earth do these fields come from?  They are not on the Product2 object!

<apex:pageBlockSection title="Default Revenue Schedule" columns="2">
<apex:inputField value="{!Product2.RevenueScheduleType}"  />
<apex:inputField value="{!Product2.NumberOfRevenueInstallments}"  />
<apex:inputField value="{!Product2.RevenueInstallmentPeriod}"  />
< / apex:pageBlockSection>