Overview
The CLIN/SLINs feature on the Contract Vehicle object enables you to add Contract Line Items and Sub Line Items, along with their Modifications on the CLIN/SLINs tab of a Contract Vehicle record.
This document is a step-by-step guide on how you can configure the CLIN/SLINs feature for use in your organization.
Audience
Salesforce Administrators
IT Support
Prerequisites
Ensure that Contracts Module - TechnoMile Suite Sales Cloud Edition has already been installed and configured. The version of this package must be 7.4 or higher.
Steps for Configuration
Deactivate Workflow Rule
Click the gear icon and select Setup.

Enter text workflow rules in the search bar and click Workflow Rules.

Click Deactivate against Rule: Project and CV for Search for Object: CLIN/SLIN.
Workflow Rule is deactivated.
Provide Access to Custom Profiles
Enable Apex Class Access
Go to Profiles using Setup search.

Click a Profile that you want to provide CLIN/SLINs access to.
NOTE
In this document, permissions have been provided to ONE Profile. However, you can provide the same permissions to as many Profiles, as per your requirements.

Click Enabled Apex Class Access.

Click Edit.

Select and move the following fifteen Apex Classes from Available Apex Classes to Enabled Apex Classes using the Add arrow button and click Save.


Enable Custom Setting Definitions Access
Click Enabled Custom Setting Definitions Access.

Click Edit.

Select and move the following Custom Setting Definition from Available Custom Setting Definitions to Enabled Custom Setting Definitions using the Add arrow button and click Save.

Give Access to Standard & Custom Objects
Click Edit and scroll down to give Standard and Custom Object Permissions.

For Standard Object Permissions, ensure that you select the following checkbox.

For Custom Object Permissions, ensure that you select the following checkboxes.

Grant Administrative Permissions
Scroll down to Administrative Permissions and select the View All Custom Settings checkbox.

Click Save.

Give Access to Custom Fields
Scroll down to Custom Field-Level Security and click View to edit the following Custom Field-Level Security fields.
IMPORTANT
Ensure that you provide both Read and Edit access to all fields of the below mentioned Custom Objects:
As an example, we have selected the field(s) required for the ACRN (Custom Object).Click Edit to select the fields for defining the ACRN Field-Level Security and click Save.


Activate Flows
Go to Flows using Setup search and click to open Contract Vehicle Lock Flow.

Click Activate.
Flow is activated.Similarly, activate the following Flows:
Create Default Mod for Contract Vehicle
Contract Vehicle POP Exercise Value update
Activate Validation Rules
Go to Object Manager, enter text clin/slins in the search bar, and click CLIN/SLINs.

Go to Validation Rules and click Edit against CLIN_ACRNs_can_be_positive_or_negative.

Select the Active checkbox and click Save.
Validation Rule is activated.Similarly, activate the following Validation Rules:
Check_Funding_Rollup OR Check_Slins_Funded_Amount
IMPORTANT
At a time, only ONE of the above two listed Validation Rules can be activated.
Lock_Funding_and_Value_Validation
Validate_IDIQ_CLIN_Total_Funding
Validate_IDIQ_CLIN_Total_Value
SLIN_POP_same_as_its_parent_CLIN
Thereafter, go to Period of Performance Object Manager and activate the following Validation Rules:
Check_Mod_Count_and_Record_Status
Lock_Funding_and_Value_Validation
Validate_StartEnd_Date_Respective_IDIQ
Then, go to ACRN Object Manager and activate the Validation Rule - Total_Funding_cannot_be_below_zero.
Go to CLIN ACRN Object Manager and activate the Validation Rule - Funded_Amount_Validation.
Go to Contract Vehicle Object Manager and activate the following Validation Rules:
Max_Obligated_Amount_Error
Validate_TO_Type_Contract_Only_With_IDIQ
Child_Cannot_Be_its_own_Parent_Contract
Order_Can_not_be_Parent_Contract
Go to Modification Object Manager and activate the Validation Rule - Check_Open_Mod_On_Contract_Vehicle.
Go to Modification CLINs/SLINs Object Manager and activate the Validation Rule - Can_not_add_fundings_for_unexercise_peri.
Activate Custom Record Types
Go back to Contract Vehicle Object Manager, then go to Record Types, and click IDIQ.

Click Edit.

Ensure that the Active checkbox is selected and click Save.

Similarly, ensure that the Task Order Record Type is also activated.

Configure Page Layouts
Add Fields
In Contract Vehicle Object Manager, go to Page Layouts and click the currently assigned Page Layout Name such as All Fields.

Drag & drop the following fields:
Total TO Anticipated Contract Value
Total TO Contract Funding
Total TO Exercised Contract Value

Click the wrench icon against each of these newly added fields.

Select the Read-Only checkbox and click OK.

Click Save.

Similarly, go to Modification Object Manager, then go to Modification Layout, drag & drop the following fields in it, and mark them as Read-Only:
Cumulative Total Value: Unex/Ex
Starting Cumulative Total Value: Unex/Ex
Total Value: Unex/Ex

Similarly, go to Object Manager, then go to its currently assigned Page Layout, drag & drop the following fields in it, and mark them as Read-Only:
IDIQ CLIN
Total TO's Funded Amount
Total TO's Obligated Value
Fields are added.IMPORTANT
Note that you can add any other fields onto page layouts of each object that you are modifying, as per your requirements.
Open App Launcher, enter text Contract Vehicles in the search bar, and click Contract Vehicles in search results.

Click to open a Contract Vehicle record.
Contract Vehicle record page opens with the newly added fields on it.
Go to its MOD tab and click to open a Mod Number.
Modification record page opens with the newly added fields on it.
Similarly, go to CLIN/SLINs record page using App Launcher and view the newly added fields on it.

Configure Custom Settings
Activate/Deactivate GRC Triggers
NOTE
Perform these ONLY if you do not wish to use the triggers that are available in this package by default. For all customers receiving this feature as an upgrade, the triggers are deactivated automatically. Triggers can be reactivated by unchecking the Deactivate checkbox in Custom Settings displayed in the images below. Note that automated roll-up calculations will not work if the Triggers are deactivated.
Go to Custom Settings using Setup search and click Manage against GRC Trigger.

Click New.

Enter Name as TM_ClinAcrnTrigger, select the Deactivate checkbox, and click Save.
GRC Trigger is deactivated.Similarly, create other Triggers for deactivation with the following Names:
TM_ClinSlinTrigger
TM_ContractVehicleRollupTrigger
TM_CreateAcrnRecord
TM_DeleteMod
TM_PeriodTrigger
Add Tabs to Contract Vehicle
Go to Contract Vehicle record page using App Launcher.
Click the gear icon and select Edit Page.
Lightning App Builder opens.Go to any tab and click Add Tab.

Click Details and select Custom as Tab Label.
Enter CLIN/SLINs as Custom Label and click Done.

Add Tab Details
NOTE
If you are using the Contract Vehicle page layout that is set as default from the package, then it is possible that the CLIN/SLINs, POP, and MOD tabs may also appear by default on your existing page layout and you will not be required to perform these add/configuration steps.
Go to the CLIN/SLINs tab and drag & drop TM_New_Clin and TM_New_Slin onto this tab.

Similarly, create POP tab and drag & drop TM_PeriodComponent onto this tab.

Similarly, create MOD tab and drag & drop TM_New_Mod onto this tab.

Click Save.

A popup window opens, click Activate.

Click Assign as Org Default.

Choose Desktop and click Next.

Click Save.
FedCLM Contract Vehicle Record Page is assigned as Org Default.Go Back.
Contract Vehicle record page opens with the CLIN/SLINs, POP, and MOD tabs on it.
Customize Contract Vehicle Configure Layout
You can choose to create a custom page layout for all your new Contract Vehicle Record Types using Contract Vehicle Configure.
Add IDIQ Section & Fields
Go to Contract Vehicle Configure using App Launcher.
Select Contract and IDIQ and click Go.

Click Add Section.

Enter Label as Financial Summary and click Add.
Section is added.Click Add Field.

Enter as Exercised Contract Value and Field API Name as TM_TOMA__Exercised_Contract_Value__c, select the Read Only checkbox, and click Add.
Field is added.Similarly, add the following Read Only fields with:
Field Label as Total TO Exercised Contract Value and Field Api Name as TM_TOMA__Total_TO_Exercised_Contract_Value__c
Field Label as Total Contract Funding and Field Api Name as TM_TOMA__Total_Contract_Funding__c
Field Label as Total TO Contract Funding and Field Api Name as TM_TOMA__Total_TO_Contract_Funding__c
Field Label as Our Anticipated Contract Value and Field Api Name as TM_TOMA__Contract_Amount__c
Field Label as Total TO Anticipated Contract Value and Field Api Name as TM_TOMA__Total_TO_Anticipated_Contract_Value__c

Scroll up to the Contract Information section and add a field into this section with Field Label as Master Contract Vehicle and Field Api Name as TM_TOMA__Master_Contract_Vehicle__c.

Click Save.
Fields are added.Go back to an IDIQ Contract Vehicle record page and view the newly added section and fields on it.

Add Order Section & Fields
Select Contract and Order and click Go.

Add a Section on this layout with Label as Financial Summary.
Add Read Only fields into this section with:
Field Label as Exercised Contract Value and Field Api Name as TM_TOMA__Exercised_Contract_Value__c
Field Label as Total Contract Funding and Field Api Name as TM_TOMA__Total_Contract_Funding__c
Field Label as Our Anticipated Contract Value and Field Api Name as TM_TOMA__Contract_Amount__c

Scroll up to the Contract Information section and add a field into this section with Field Label as Master Contract Vehicle and Field Api Name as TM_TOMA__Master_Contract_Vehicle__c.

Click Save.
Section and Fields are added.Go back to an Order Contract Vehicle record page and view the newly added section and fields on it.
