Creating Custom Themes

With previous versions of Manager we are able to customise invoices and other forms. I am having trouble finding where the themes are located. I want to remove the ITEM column from the quotes that I print and just should the Description. I am using the desktop version.

Hi @Thapelo_Nteta,

Themes are now under Settings > Obsolete Features

I am creating custom theme. But i am not able to fetch the value for Due date and Issue date in coding. This is the code. Can you tell the built in variable names in Manager so i can fetch the values.

{% assign labels = “Original for Recipient,Duplicate for Transporter,Triplicate for Supplier” | split: “,” %}

{% for copy_label in labels %}

{{ copy_label }}
<table style="width: 100%; padding: 20px">
  <thead>
    <tr>
      <td colspan="4" style="font-weight: bold; font-size: 28px; padding-bottom: 10px;">{{ title }}</td>
    </tr>

    <tr>
      <td colspan="4">
        <table style="width: 100%; border-collapse: collapse; margin-bottom: 20px;">
          <tr>
            <!-- Billed To -->
            <td style="width: 25%; border: 1px solid #000; padding: 6px; font-size: 12px; vertical-align: top">
              <div style="font-weight: bold;">Billed To:</div>
              <div><b>{{ recipient.name }}</b> {{ recipient.code }}</div>
              <div>{{ recipient.address | newline_to_br }}</div>
              <div><b>{{ recipient.identifier }}</b></div>

              {% for field in custom_fields %}
                {% if field.label == "GSTIN" %}
                  <div>GSTIN: {{ field.text }}</div>
                {% endif %}
                {% if field.label == "Place of Supply" %}
                  <div>Place of Supply: {{ field.text }}</div>
                {% endif %}
              {% endfor %}
            </td>

            <!-- Shipped To -->
            <td style="width: 25%; border: 1px solid #000; padding: 6px; font-size: 12px; vertical-align: top">
              <div style="font-weight: bold;">Shipped To:</div>
              {% assign shipped = '' %}
              {% for field in custom_fields %}
                {% if field.label == 'Shipped To:' %}
                  {% assign shipped = field.text %}
                {% endif %}
              {% endfor %}
              {% if shipped != '' %}
                <div>{{ shipped | newline_to_br }}</div>
              {% else %}
                <div><b>{{ recipient.name }}</b> {{ recipient.code }}</div>
                <div>{{ recipient.address | newline_to_br }}</div>
                <div><b>{{ recipient.identifier }}</b></div>
              {% endif %}
            </td>

            <!-- Invoice Info -->
            <td style="width: 25%; border: 1px solid #000; padding: 6px; font-size: 12px; vertical-align: top">
              <div><b>Reference:</b> {{ reference }}</div>
              <div><b>Issue Date:</b> {{ date }}</div>
              <div><b>Due Date:</b> {{ due_date }}</div>
              {% for field in custom_fields %}
                {% if field.label == 'PO#' %}
                  <div><b>Order Number:</b> {{ field.text }}</div>
                {% endif %}
                {% if field.label == 'Tracking' %}
                  <div><b>Tracking:</b> {{ field.text }}</div>
                {% endif %}
              {% endfor %}
            </td>

            <!-- Supplier -->
            <td style="width: 25%; border: 1px solid #000; padding: 6px; font-size: 10px; vertical-align: top">
              <div style="font-weight: bold;">Supplier:</div>
              <div><b>{{ business.name }}</b></div>
              <div>{{ business.address | newline_to_br }}</div>
              <div><b>{{ business.identifier }}</b></div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </thead>

  <!-- Items -->
  <tbody>
    <tr>
      <td colspan="4">
        <table style="width: 100%; border-collapse: collapse;">
          <tr>
            <td style="width: 25px; text-align: center; border: 1px solid #000;"><b>#</b></td>
            {% for column in table.columns %}
              {% if column.label != 'Profitability' %}
                <td style="border: 1px solid #000; padding: 5px; text-align: {{ column.align }}; {% if column.nowrap %} white-space: nowrap; {% endif %}">
                  <b>{{ column.label }}</b>
                </td>
              {% endif %}
            {% endfor %}
          </tr>

          {% assign i = 0 %}
          {% for row in table.rows %}
            {% assign i = i | plus: 1 %}
            <tr>
              <td style="border: 1px solid #000; text-align: center;">{{ i }}</td>
              {% assign col_index = 0 %}
              {% for cell in row.cells %}
                {% assign column = table.columns[col_index] %}
                {% if column.label != 'Profitability' %}
                  <td style="border: 1px solid #000; text-align: {{ column.align }};">
                    {{ cell.text | newline_to_br }}
                  </td>
                {% endif %}
                {% assign col_index = col_index | plus: 1 %}
              {% endfor %}
            </tr>
          {% endfor %}

          {% for total in table.totals %}
            {% if total.label != 'Profitability' %}
              <tr>
                <td colspan="{{ table.columns | size }}" style="text-align: right; padding: 5px; {% if total.emphasis %} font-weight: bold; {% endif %}">
                  {{ total.label }}
                </td>
                <td style="text-align: right; border: 1px solid #000; {% if total.emphasis %} font-weight: bold; {% endif %}">
                  {{ total.text }}
                </td>
              </tr>
            {% endif %}
          {% endfor %}
        </table>
      </td>
    </tr>

    <!-- Total in Words -->
    {% for field in custom_fields %}
      {% if field.label == 'Total in words' %}
      <tr>
        <td colspan="4" style="padding-top: 10px; font-size: 12px; font-weight: bold;">
          {{ field.text }} Only
        </td>
      </tr>
      {% endif %}
    {% endfor %}

    <!-- Notes -->
    {% for field in custom_fields %}
      {% if field.label == 'Notes' %}
      <tr>
        <td colspan="4" style="padding-top: 20px;">
          <div style="font-weight: bold;">{{ field.label }}</div>
          <div>{{ field.text | newline_to_br }}</div>
        </td>
      </tr>
      {% endif %}
    {% endfor %}
  </tbody>

  <!-- Declaration -->
  <tfoot>
    <tr>
      <td colspan="4" style="text-align: right; font-size: 12px; font-weight: bold; padding-top: 30px;">
        We declare that this invoice shows the actual price of the goods or service described and that all particulars are true and correct.<br><br>
        For {{ business.name }}<br><br><br><br>
        Authorised Signatory
      </td>
    </tr>
  </tfoot>
</table>
{% endfor %}

Hi and welcome to the forum @fipl_ltd,

I’m not sure how this code snippet has to do with your original request

Anyway, the fields you are asking about are part of fields collection.

You can get the value of these fields by iterating through fields like this:

{% for field in fields %}
    {% if field.label == "Due date" %}
         {% capture due_date %}{{ field.text }}{% endcapture %}
    {% endif %}
{% endfor %}

Similar to what you already did for custom_fields

Thank you.