Skip to main content

Configure taxation details tables in HTML templates

Zuora

Configure taxation details tables in HTML templates

This article demonstrates how to configure taxation details tables in HTML templates through the Zuora UI. For invoices, credit memos, and debit memos, the configuration steps are slightly different. 

To configure a taxation details table in HTML invoice templates, perform the following steps:

  1. In the HTML template editor, choose a blank row in the Blocks tab, and then drag the row into the HTML template.

  2. Click Add Content in the Rows block.
    The Content tab is displayed in the right panel.
  3. In the Content tab, drag the Data Table component into the HTML template. 

  4. Click the Data Table block in the HTML template.
    The Content panel is displayed on the right of the template editor.

  5. In the Data Table section, configure the following table information by adding different columns:
    1. From the Table Object list, select InvoiceItems: list of InvoiceItem, and then select TaxationItems: list of TaxationItem from the displayed list.

    2. In the Columns subsection, click Add in the Header column to add a column to the data table. 

    3. In the displayed Add Column dialog, configure the following column information:

      1. From the Field list, select a field that belongs to the Taxation object, for example, Name.
      2. In the Header field, enter a name for the selected field to display in the data table, for example, Tax Name.
      3. Click Add to save the column information.
        A column with the Tax Name header is added to the data table.
    4. In the displayed Add Column dialog, configure the following column information:

      1. From the Field list, select a field that belongs to the Taxation object, for example, TaxRate.
      2. In the Header field, enter a name for the selected field to display in the data table, for example, Tax Rate.
      3. Click Add to save the column information.
        A column with the Tax Rate header is added to the data table.
    5. Optional: When adding the Taxationitem.TaxAmoutfield, apply the Localise function to format the number. To learn about the details of the Localise function, see Functions used in merge fields.

    6. In the Columns subsection, click Add in the Header column, and configure the following information in the displayed Add Column dialog:

      1. From the Field list, select a joined object of the TaxationItem object, for example, InvoiceItem: InvoiceItem, and then select a field that belongs to the InvoiceItem object from the displayed list, for example, ChargeAmount.
      2. In the Header field, enter a header name for the selected field to display in the data table, for example, Charge Amount.
      3. Click Add to save the column information.
        A column with the Charge Amount header is added to the data table.
  6. In the HTML template editor, click Save to save the HTML template with the taxation details table. 

The following image shows the taxation details table that is displayed in the HTML template for invoices.

HTML_invoice_template_taxation_details_table.png

Configure taxation details tables in HTML templates for credit memos

Besides invoices, you can also configure taxation details tables in HTML templates for credit memos. To configure a taxation details table in HTML templates for credit memos, perform the following steps:

  1. Go through steps 1 to 4 described in Configure taxation details tables in HTML templates for invoices.
  2. In the Data Table section, configure the following table information by adding different columns:
    1. From the Table Object list, select CreditMemoItems: list of CreditMemoItem, and then select CreditTaxationItems: list of CreditTaxationItem from the displayed list.

    2. In the Columns subsection, click Add in the Header column to add a column to the data table. 

    3. In the displayed Add Column dialog, configure the following column information:

      1. From the Field list, select a field that belongs to the Taxation object, for example, Name.
      2. In the Header field, enter a name for the selected field to display in the data table, for example, Tax Name.
      3. Click Add to save the column information.
        A column with the Tax Name header is added to the data table.
    4. In the displayed Add Column dialog, configure the following column information:

      1. From the Field list, select a field that belongs to the Taxation object, for example, TaxRate.
      2. In the Header field, enter a name for the selected field to display in the data table, for example, Tax Rate.
      3. Click Add to save the column information.
        A column with the Tax Rate header is added to the data table.
    5. Optional: When adding the CreditTaxationitem.TaxAmoutfield, apply the Localise function to format the number. To learn about the details of the Localise function, see Functions used in merge fields.

    6. In the Columns subsection, click Add in the Header column, and configure the following information in the displayed Add Column dialog:
      1. From the Field list, select TaxationItem: TaxationItem
      2. From the displayed list, select a joined object of the TaxationItem object, for example, InvoiceItem: InvoiceItem.
      3. From the displayed list, select a field that belongs to the InvoiceItem object, for example, ChargeAmount.
      4. In the Header field, enter a header name for the selected field to display in the data table, for example, Charge Amount.
      5. Click Add to save the column information.
        A column with the Charge Amount header is added to the data table.
  3. In the HTML template editor, click Save to save the HTML template with the taxation details table. 

The following image shows the taxation details table that is displayed in the HTML template for credit memos.

HTML_credit_memo_template_taxation_details_table.png

Configure taxation details tables in HTML templates for debit memos

Besides invoices and credit memos, you can also configure taxation details tables in HTML templates for debit memos. To configure a taxation details table in HTML templates for debit memos, perform the following steps:

  1. Go through steps 1 to 4 described in Configure taxation details tables in HTML templates for invoices.
  2. In the Data Table section, configure the following table information by adding different columns:
    1. From the Table Object list, select DebitMemoItems: list of DebitMemoItem, and then select DebitTaxationItems: list of DebitTaxationItem from the displayed list.

    2. In the Columns subsection, click Add in the Header column to add a column to the data table. 

    3. In the displayed Add Column dialog, configure the following column information:

      1. From the Field list, select a field that belongs to the Taxation object, for example, Name.
      2. In the Header field, enter a name for the selected field to display in the data table, for example, Tax Name.
      3. Click Add to save the column information.
        A column with the Tax Name header is added to the data table.
    4. In the displayed Add Column dialog, configure the following column information:

      1. From the Field list, select a field that belongs to the Taxation object, for example, TaxRate.
      2. In the Header field, enter a name for the selected field to display in the data table, for example, Tax Rate.
      3. Click Add to save the column information.
        A column with the Tax Rate header is added to the data table.
    5. Optional: When adding the DebitTaxationitem.TaxAmoutfield, apply the Localise function to format the number. To learn about the details of the Localise function, see Functions used in merge fields.

    6. In the Columns subsection, click Add in the Header column, and configure the following information in the displayed Add Column dialog:
      1. From the Field list, select TaxationItem: TaxationItem
      2. From the displayed list, select a joined object of the TaxationItem object, for example, InvoiceItem: InvoiceItem.
      3. From the displayed list, select a field that belongs to the InvoiceItem object, for example, ChargeAmount.
      4. In the Header field, enter a header name for the selected field to display in the data table, for example, Charge Amount.
      5. Click Add to save the column information.
        A column with the Charge Amount header is added to the data table.
  3. In the HTML template editor, click Save to save the HTML template with the taxation details table. 

The following image shows the taxation details table that is displayed in the HTML template for debit memos.

HTML_debit_memo_template_taxation_details_table.png