Scenario: The user wants the Total Discount field not to be printed on the Advanced PDF/HTML template when the value is 0.
1. Navigate to Customization > Forms > Advanced PDF/HTML Templates.
2. Edit or Customize the template (ex: Invoice).
3. Click on the Source icon.
4. Add the following string in your desired position of the field:
<#if record.discounttotal!=0>
<tr>
<td align="right" colspan="2"><b>Discount</b></td>
<td align="right" colspan="2">${record.discounttotal}</td>
</tr>
</#if>
5. Click on Save.
No comments:
Post a Comment