Terms and signature

Prev Next

Linda arrives at her desk and wonders if she has seen and understood everything about her Quotation template.
She has already seen the header and footer, the Main structure, the Quotation line items, the Totals and subtotals.
But the terms and signature?
She makes herself a nice hot cup of coffee and gets down to it with Vijay.

visualforceimage.png

Terms and conditions

Two fields manage the terms and conditions.

Special terms

  • This is a field to be filled in on the Quotation.

  • Currently there is no label in the code.

Comments

  • This is a field to be filled in on the Quotation.

  • Currently there is no label in the code.

<!-- Conditions particulières -->

<tr>

<td colspan="{!colspan1}" class="borderOff">

<apex:outputField

value="{!sofactoapp__Offre__c.sofactoapp__Conditions_particuli_res__c}" />

</td>

</tr>

<!-- Saut de ligne -->

<tr>

<td colspan="{!colspan1}" class="borderOff">&nbsp;</td>

</tr>

<!-- Conditions de l'offre -->

<tr>

<td colspan="{!colspan1}" class="borderOff">

<apex:outputField value="{!sofactoapp__Offre__c.sofactoapp__Raison_sociale__r.sofactoapp__Conditions_de_l_offre__c}" />

</td>

</tr>

Signature

This is the part that will be signed by your client. As you can see, it only consists of two <tr> and two <td>, and so far the hardcoded text.

 
<!-- Signature -->

<tr class="borderOff" style="font-size:11px;" >

<td colspan="{!colspan2}"></td>

<td style="text-align:center">

<apex:outputText value="Autorisé par"/>

</td>

<td style="text-align:center">

<apex:outputText value="Date"/>

</td>

</tr>

<tr class="borderOff" style="height:75px;vertical-align:bottom">

<td colspan="{!colspan2}"></td>

<td style="text-align:center">

.........................

</td>

<td style="text-align:center">

.........................

</td>

</tr>

The style of the second row <tr> is a good example for a useful style. As you can see, you can manage the height of a cell via the height style attribute.

The vertical-align attribute allows you to configure whether the text is displayed at the top, middle or bottom of the cell.

Linda and Vijay are finally done with the Quotation template!
She tells Candace and José that she can explain everything she has learned!
José, the sales manager, gives her a whole list of changes to implement. Linda is confident thanks to Vijay's explanations.