Contracts - Using Unique Extra Contract Details Dependent on Rental Items

We have a variable called *rentalcontract_unique* that you can use for this. It forces unique content to display only, unlike *rentalcontract*. All new default contracts will contain this unique variable instead of the former non-unique one. For those with custom contracts, to use it, you would want to view the source in your template and replace this:

<span style="color: rgb(0, 0, 0);"><div id="repeat_start_rentals" style="~~empty(*rentalcontract*)~display:none~ ~~">
<p style="font-size: 9pt; "><strong>Details for *rentalname*:</strong>&nbsp;
<br>*rentalcontract*
<br>
</p>
</div>
<div id="repeat_end_rentals" style="display:none;">
<br>
</div>
</span>

with this:

<span style="color: rgb(0, 0, 0);"><p style="font-size: 9pt;">
<br>
</p>
<p style="font-size: 9pt;"><strong>Item Specific Details:</strong></p>
<div id="repeat_start_rentals" style="display:none;">
<br>
</div>
<ul>
<li style="font-size: 9pt;~~empty(*rentalcontract_unique*)~display:none~ ~~;">
*rentalcontract_unique*
</li>
</ul>
<div id="repeat_end_rentals" style="display:none;">
<br>
</div>
</span>

Keep in mind, this will not work for items in packages or accessories, but that is a less common scenario. You must also have exactly the same text in all items that you do not want to duplicate. Now that this is available, you will be able to create more dynamic contracts from a single template.

Is this article helpful?
0 0 0