Rate Card Studio

The Rate Card Studio is the editor on the Rate Card record page (Lightning component Rate Card Studio). It lets business users create, change and read a rate card without knowing the data model. It replaces the retired Rate Card Configurator.

The Studio has a card header and four tabs:

Tab What it is for
Grid The whole card laid out like the client's spreadsheet. Read and edit rates in place.
Sheets and lines Add, edit, order and delete sheets, lines and modifiers, with conditions in plain English.
Try a shift Price a real or made-up shift with this card (drafts included) and see each pricing step.

The building blocks

Record Object Holds
Rate card b3s__Rate_Card__c Scope (account, job, job group, site, worker, cost center), currency, valid from / to, status (Draft, Active, Retired), pay/bill policy, priority
Rate sheet b3s__Rate_Sheet__c A set of prices for one kind of shift, chosen by a condition. One sheet per card is the default.
Rate line b3s__Rate_Line__c One price: unit (Per Hour, Per Shift, Per Day), pay code, days, time window, optional condition, and three rates: Worker pay, Supplier pay, Charge (client bill), typed or derived by formulas from a base rate and margin
Rate modifier b3s__Rate_Modifier__c An adjustment to a line when its condition matches, with a group (Location, Tier, Engagement, Role, Other) and one operation per side (Set, Add, Subtract, Multiply, Divide)
Rate group b3s__Rate_Group__c A salary band or role grade (for example ST Teacher 1), stamped on the shift and read by sheet conditions

A blank rate means "this side has no price": no staging line is created for that side. It is never treated as zero.

How matching works

Every shift is priced top to bottom:

  1. Card. The Active card whose filled-in scope fields all match the shift and which is valid on the shift's site-local date. The most specific card wins, then the lowest Priority. Try a shift always uses the card you are on, even a Draft.
  2. Policy. The card's pay/bill policy (b3s__Pay_Bill_Setting__mdt, for example VMS_Default (VMS) or WFM_Default) sets the time source, rounding, paid breaks, week start, holiday calendar and overtime rules. Blank uses the default policy.
  3. Sheet. Sheets are tried in order (top to bottom in the Sheets list). The first whose condition matches is used. The default sheet is always tried last.
  4. Line. On that sheet, the first Per Shift or Per Day line whose days, time window and condition match prices the whole shift. Otherwise each worked minute goes to the first Per Hour line that matches it (so a Day line and a Night line can split one shift), unless the lines are Start Anchored / End Anchored (Band mode): then the band the shift starts / ends in is paid for the whole shift, the healthcare "night start pays nights to the end" rule. Anchor every band line on the sheet. Lines with an Allowance pay code add on top.
  5. Modifiers. The line's modifiers run in order. Within a group only the first matching modifier applies; modifiers in different groups stack. Each operation changes the running value: Set replaces it, Add / Subtract / Multiply / Divide adjust it. A blank operation leaves that side unchanged. Only Set can fill a blank side.

Override fields typed on the shift (Worker_Pay_Override__c, Supplier_Pay_Override__c, Client_Bill_Override__c) replace the result for that side.

Default sheet rules

The Studio enforces these on save:

Conditions

Sheets, lines and modifiers share one condition builder. A modifier must have a condition; on a line it is optional.

Stored format (the same matcher used across the app definitions):

{
    "allOrSome": "all",
    "selectors": [
        {
            "field": "b3s__Rate_Group__r.b3s__Code__c",
            "operator": "equals",
            "value": "ST_TEACHER_1"
        },
        {
            "field": "b3s__Contact__r.b3s__Engagement_Type__c",
            "operator": "equals",
            "value": "PAYE"
        }
    ]
}

Operators: equals, notEquals, in, notIn, isNull, lessThan, greaterThan, lessOrEqual, greaterOrEqual, contains, startsWith.

Walkthrough: an ST Teacher card

A typical client rate schedule has one row per salary band (Rate Group), column groups Full Day and Half Day, sub-columns PAYE, Umbrella, Charge and Margin, and one set of rates per supplier tier. This walkthrough builds one for the fictional Riverside Learning Federation, with illustrative rates:

  1. Card header. Name "Riverside ST Teacher", Job = ST Teacher, Currency GBP, Valid From 01/09/2026, policy UK Education, Status Draft.

  2. Sheets. One sheet per rate group and engagement, for example "ST Teacher 1 · PAYE" with the template Rate Group Is (value ST_TEACHER_1) plus a row Contact ▸ Engagement Type is PAYE, and "ST Teacher 1 · Umbrella" with Umbrella. Repeat for each rate group.

  3. Lines on each sheet:

    Line Unit Only when PAYE sheet Umbrella sheet
    Full Day Per Shift Rate Basis is Full Day Pay 100.00, Charge 135.00 Pay 120.00, Charge 135.00
    Half Day Per Shift Rate Basis is Half Day Pay 50.00, Charge 70.00 Pay 60.00, Charge 70.00
  4. Tier modifiers. Expand the Full Day line and add a modifier: group Tier, name "Tier 2", applies when the supplier's tier is 2, Charge Set to 150.00 (and Worker pay Set to 122.00 on the Umbrella sheet). Add "Tier 1" in the same group the same way.

  5. Check it. Open Try a shift, enter a PAYE worker, Rate Group ST Teacher 1, Rate Basis Full Day, 08:30 to 15:30. Expected: sheet "ST Teacher 1 · PAYE", line Full Day, £100.00 pay and £135.00 charge.

  6. Go live. Edit card details and set Status to Active.

The grid

The grid pivots every sheet into one table so the card reads like a rate schedule spreadsheet.

How rows and columns are chosen

Show toggles which sides appear (Base, Pay, Supplier, Charge). Base is shown by default only when the card has formula lines; Supplier only when a line has a supplier rate or formula.

Formula lines. Values come from the line's formulas, computed the same way pricing does. A side with a formula is read only (purple, hover shows the formula); edit Base or Margin and every calculated value follows. With a modifier picked, Base and Margin edits go to that modifier as before; a formula side is editable only where a picked modifier already Sets it (a fixed exception). The toggles pick modifiers by name, so a fixed exception named differently from the rule (for example "Umbrella (Standard)" next to "Umbrella") shows as its own option in the group.

Modifier toggles. Each modifier group (for example Tier) gets a pick list with None plus every modifier name in that group. Picking "Tier 2" shows every line's values as if Tier 2 applied, using the same order and first-match-per-group rule as pricing. Modifiers without a group appear as their own toggle. Group names are matched like pricing does (trimmed, case-insensitive), so "Tier" and "tier " are one group.

Error cells. Where pricing would block a line (a modifier operation with no value, Divide by 0), the grid shows Error instead of a price; hover for the reason.

Editing cells. Click a value, type, and press Enter (Escape cancels).

Situation Where the edit goes
No modifier picked The line's rate
A picked modifier applies to the line and sets (or does not touch) that side That modifier, as a Set value for that side
A picked modifier adds, subtracts, multiplies or divides that side Read only (purple). Edit the modifier under the line in Sheets and lines.
The side has a line formula and no picked modifier Sets it Read only (purple). Edit Base / Margin or the formula.
No picked modifier exists on that line Read only (grey): the cell shows the line's own value

Cell colours: orange = set by the picked modifier, purple = calculated by a modifier or a line formula, grey = line value shown for reference, teal = shared value that one edit updates on several lines.

Sheets and lines

The left panel lists sheets in pricing order with their plain-English condition, line count and a Default badge. Use the arrows to reorder (earlier sheets are tried first), the pencil to edit name, description, default flag and condition, and the bin to delete (a sheet's lines and modifiers go with it).

The right panel shows the selected sheet's lines: unit, pay code, days, time window, Pay, Supplier, Charge, Margin and condition. Lines are edited in a form with help text on every field, ordered with the arrows (for Per Hour lines the first matching line claims each minute). Expand a line with the chevron to list, add, order, edit and delete its modifiers.

The line form

Try a shift

Choose An existing shift (search any shift) or A made-up shift (Job, Site, Worker, Rate Group, Rate Basis, Supplier account, Scheduled start and end). Select Estimate. Nothing is saved.

The result shows totals per side and margin, then the steps:

  1. Rate card and why it was chosen
  2. Pay/bill policy
  3. Rate sheet and the condition that matched
  4. Each priced segment: time, quantity and unit, line, pay code, the modifiers that applied, and the resulting Pay, Supplier and Charge rates
  5. Warnings (for example "Line Full Day has no Supplier rate, no Supplier line") and errors (for example "No rate sheet matches")

followed by the pay/bill lines that a final run would create. The Shift record page's Shift Rate Previewer renders the same trace for the shift's live pricing, plus its paid window and breaks.

Clone a rate card

Most new cards start from an existing one. The Clone Rate Card action on the Rate Card record page copies the card with every sheet, line and modifier in one transaction: if any record fails, nothing is saved.

The action opens a two-step wizard (screen flow Clone_Rate_Card). Every field is pre-filled from the current card; the name gets " (Copy)".

  1. Scope: Name, Account, Contact, Cost Center, Job Group, Job, Site. Clear a field to remove it from the copy.
  2. Validity: Valid From, Valid To, Status. Keep the copy Draft until it is ready: two Active cards with the same scope and dates make pricing fail.

Everything else (currency, policy, priority, description, sheet conditions, line rates and formulas, modifier operations) is copied as is. The new card belongs to the user who cloned it. The user needs create access to Rate Card, Rate Sheet, Rate Line and Rate Modifier (WFM Admin).

Build your own clone flow

The wizard calls the global invocable action Clone Rate Card (category Pay/Bill). Use it from your own flow to set other fields on the copy, for example a custom reference lookup.

Input Type Purpose
Source Rate Card Id Id, required The card to copy
Field Names Text collection Rate Card field API names to set on the copy (b3s__Account__c or Account__c, both work)
Field Values Text collection One value per field name, in the same order. Dates as YYYY-MM-DD, date/times as 2027-01-01T08:00:00Z, checkboxes true / false, blank = empty
Output Purpose
New Rate Card Id The copy

Without overrides the copy gets Name = source name + " (Copy)" and Status = Draft. An unknown or read-only field, a value of the wrong type, or lists of different lengths stop the clone with a readable error (for example "Rate Card field not found or not editable: Nope__c"), which the flow's fault path can show.

Example: in a flow, add to fieldNames the text b3s__Status__c and My_Reference__c, add to fieldValues the text Draft and the reference record Id, then call the action with the source card Id. The easiest start is to clone the packaged Clone_Rate_Card flow and add your fields to its Build Overrides assignment.

Access and errors

The Studio works as the signed-in user: their object permissions, field-level security and sharing apply to every read and save.

Errors come back as readable messages, for example "Only the default sheet can have no condition. Add a condition, or mark this sheet as the default." or "Condition problem: …".

See Pay and bill engine for the trace format that Try a shift shows.

Setup notes