Scenario
Rounding off and including the Tax Rate is not possible by directly adding it to the Advanced Invoice PDF/HTML Template. As an alternate solution, this may be achieved by creating a Custom Field that rounds of the Tax Rate and including it on the template.
Solution
- Create the Custom Transaction Body Field
- Navigate to Customization > Lists, Records, & Fields > Transaction Body Fields > New
- Label: Enter a label
Example: Tax Rate Roundoff - ID: Enter _taxrateroundoff
- Type: Select Integer
- Store Value: Remove Checkmark
- Click Applies To
- Sales: Enter Checkmark
- Click Validation & Defaulting
- Formula: Enter Checkmark
- Default Value: {taxtotal}/{subtotal}* 100
- Click Save
- Customize the Advanced Invoice PDF/HTML Template:
- Navigate to Customization > Forms > Advanced PDF/HTML Template
- Click Edit or Customize beside the preferred for Invoice PDF/HTML Template
- Top right corner: Toggle Source Code
- Insert the following code on the appropriate space line:
- ${record.Field ID of custom field}%
- Click Save