Skip to main content

Contracts Lifecycle

This admin guide covers Contract creation, adjustment configuration, and entitlement management.

Contract creation flow

One checkbox on the Opportunity kicks off everything below. Read the diagram top to bottom: the trigger runs once, then Cotiza creates three related record types in parallel.

Create Contract on Opportunity is an automation flag. When changed from false to true, Apex triggers:

  1. Create or update the Contract
  2. Map Opportunity Products to Contract Entitlements
  3. Store Playbook answers on Contract Playbook Answer records

System Settings for contracts

SettingPurpose
Amendments Maintain ContractAmend in place vs. create new Contract per amendment
Force Quote From ContractRequire contract-sourced Quotes for adjustments
Contract Table Display ColumnsColumns on Contracts UI
Contract Table ActionsAmend, Replace, Renew, Void, View
Show Most Active Contract SnapshotAccount page snapshot widget

See System Settings.

Description

Adjustment types

TypeContract behavior
AmendmentModify existing deal; playbook cannot change
ReplacementNew deal structure; may switch playbook with Contract Playbook Answer support
RenewalExtend term; contract status reflects renewal chain

Quote and Contract records store Adjustment Type and Adjustment of Contract (lookup to source Contract).

Entitlement creation

When a Contract is created, Opportunity Products map to Contract Entitlements using:

Entitlement combination

During amendments, multiple entitlements may merge into one. Entitlement Combination Mapping defines how field values combine:

OperationBehavior
SumAdd numeric values
Min / MaxTake minimum or maximum
Newest / OldestTake value from newest or oldest entitlement
AverageAverage numeric values
CustomFormula using piped entitlement field tokens

Example custom formula: {%Cotiza__Base_Unit_Price__c%} * {%Cotiza__Proration__c%}

Contract void

Voiding a Contract requires Contracts Power User access. Voided contracts remain in the system for audit but are no longer active for amendments.

Playbook design for contracts

  • Avoid separate playbooks per adjustment type (see How Many Playbooks?)
  • Use Rules to pull Contract Playbook Answers when playbooks change during replacement
  • Configure Contract View Display Fields on the Playbook for the contract inspection UI