Skip to main content

Recurring Revenue - Part 2: Quote and Quote Line Item

Continuing the series on how to quote, forecast and measure recurring revenue...

What I'm trying to determine with Quotes are the:
  • Number of payments
  • Amount of each recurring payment, and
  • Amount of the initial payment
I'm basing these on custom fields on the Opportunity (Term, the service duration in months) and Product (Category). 
In practice, I also have the Term on the Quote object so that we can have quotes for different terms attached to a single opportunity. Then I use Custom Quote Sync from Salesforce Labs to sync custom fields across the Quote and Opportunity. But that's a detail I'll avoid for now.
I have two fields to add to the Quote Line Item (QLI):
  • Recurring Charges: If the Line Item's Product Category (see the prior post) is either Subscription or Over Time, the Recurring Charges are set to the Line Item's Total Price; otherwise to 0. BUT... this is NOT a formula field. Instead, I populate it via a simple workflow rule and field update. Why? Because I want a rollup field on the Quote object, and the rollup cannot aggregate a formula field! I'll make this field read-only except for Admins.
  • TMService Charges: This is just like Recurring Charges, but is 0 unless the Product Category is Over Time. I use the same workflow rule to update both fields (firing any time the QLI is created or edited), though obviously they have their own field updates.
I have five custom fields to add on the Quote object:
  • Payment Count: numeric formula field. If the Opportunity Term is less than 24, the payment count is 1. Otherwise, it's the floor of (Term / 12). (You might choose to calculate this differently so that, for instance, an 18-month deal has a six-month payment upfront and then a 12-month payment later. I'm planning to bill the first year-and-a-fraction upfront.)
  • Recurring Charges: this is rollup summary, totaling the QLI Recurring Charges.
  • TMService Charges: another rollup summary, totaling the QLI TMService Charges.
  • Payment N: currency formula field. For deals of two years or longer, this is the charge for 12 months of service. If the Payment Count is 1, then this is 0. Otherwise, it's 12 * ((Recurring Charges - TMService Charges)/ Term).
  • Payment 1: currency formula field. This is just the quote's Total Price, less the charges for services delivered over time, less the amounts that will be billed on subsequent payments. So the formula is Total Price - TMService Charges - (Payment N) * (Payment Count - 1). This excludes any shipping or tax items that are part of the quote's Grand Total but not part of the Total Price; the expectation is that those would be itemized separately.
That gives me everything I need to include payment info on the quote.

Let's see how this looks in practice. I'm going to create a 24-month quote, with three line items: $2400 (total price) for a Subscription charge, $150 One Time, and $600 Over Time. First, we see the line items that comprise the quote:

Then, in the quote detail record, we can see how those translated into values for our custom fields:

The Recurring Charges, $3000, are the sum of the SaaS Offering and the Consulting totals. The TMService Charges are just the Consulting charges. We calculated two payments based on the 24-month term. The first payment covers the setup charges ($150) plus 12 months of the subscription (12 * $2400 / 24). The second payment is just for the next 12 months' subscription. Note that the TMService Charges aren't included in either Payment 1 or Payment N; those will be billed as services are performed.

Next time, we'll make similar updates on the Opportunity and Opportunity Product objects.

Comments

Popular posts from this blog

Salesforce reporting: XL-Connector and VBA

In an earlier post , I mentioned a tool I'm using to import Salesforce data - via SOQL or existing reports - into Excel. This post is more about using that tool, XL-Connector from Xappex . Here, I'll walk through the (simple) process of importing and refreshing a report, and I'll provide a simple VBA macro to automate the refresh. In a future post, I'll expand on that macro to show a friendly view of my opportunity pipeline and a single-page view of how each of my sales reps are doing against a series of KPIs. Importing a report is simple enough. From the XL-Connector tab, select Log In and enter your credentials. I'm using the old id and password (as opposed to SSO), so I provide that along with my 'token'.  (Don't remember your token? Log in to Salesforce via your browser, click on your photo, select Settings, then 'reset my security token'.) Once you're logged in the lock turns green. Back in Excel, on the XL-Connector tab, select ...

Salesforce Pipeline Reporting - part 1 of 3

In a dozen (plus) years working with Salesforce, I've never been entirely happy with the built in reporting of my opportunity pipeline. I can export details, or a printed (formatted) view, but I lose the interactivity. I can use a dashboard, which is better now in Lightning in that I can see a lot more fields in a table component. But flexible views require filtered dashboards, and just maintaining the filter values (if they go down to a rep level) can be onerous. Plus applying (or removing) a filter tests my (very limited) patience. So I've typically exported the report details into Excel, and there created a workbook that includes (1) summary info, (2) scrollable deal lists with hyperlinks back to the opportunity records in Salesforce and (3) filters that let me instantly switch views, say among teams, reps, opportunity types, or fiscal periods. My process around this involved LOTS of VBA and LOTS of formulas. Lately, I've (finally) gotten turned on to slicers in Exc...

A personal dashboard keeping my (Salesforce) house in order

I've put a 'penalty box' on my reps' dynamic dashboard. This section of their dashboard calls out items that they own that require attention. Their penalty box includes issues such as open opportunities with a close date in the past forecasted opportunities with no quote issued open opportunities that include inactive SKUs MQLs that haven't been addressed after some period of time stale opportunities (untouched in, say, 30 days) early-stage opportunities with near-term close dates These are intended to keep the reps honest and help them keep their pipeline clean. But I have my own Salesforce hygiene issues to keep up with. So I've created my own dashboard to keep these front and center. I can't necessarily fix all the issues today (who gets those leads when the territory is vacant?), but I want to fix what I can, and then keep sight of others needing attention. My personal cleanup dashboard includes the following: Open opportunities ow...