Removing due date

Hello,
I have the same issue…
I have removed the stamp but I would also like the due date to be removed from the printed invoice.
Is that possible?
Thank you

Please don’t divert topics with unrelated posts. Your question has nothing to do with the overdue stamp. So I’ve moved it to its own topic.

Two methods.

  1. Do not select due date when creating Invoice.
  2. If you know the Coding then you can remove it in your custom coded theme.

This no longer works. Manager now automatically assigns the issue date as the due date if you enter nothing. That’s because lack of a due date interfered with other features.

for users who do not need the due date printed on the invoice when both the Invoice date and Due date are the same, proceed with the instructions below.

  1. copy and paste any theme from the Manager website.

  2. edit the theme and find the line where it says

    {% for field in fields %}
    <div style="font-weight: bold">{{ field.label }}</div>
    <div style="margin-bottom: 10px">{{ field.text }}</div>
    {% endfor %}
    
  3. replace the above lines with the following code

{% for field in fields %}
{% if field.label == 'Due date' %}{% assign duedate = field.text %}{% endif %}
{% if field.label == 'Invoice date' %}{% assign invoicedate = field.text %}{% endif %}
{% if field.label == 'Due date' %}{% if duedate == invoicedate %}{% continue %}{% endif %}{% endif %}
<div style="font-weight: bold">{{ field.label }}</div>
<div style="margin-bottom: 10px">{{ field.text }}</div>
{% endfor %}

this code does not hide the Due date when it is different from the Invoice date.

7 Likes

awesome info i want same solution

Yes - great info thanks - tested it and it works well

I have done what you suggest but no result.Any idea why?

make sure you followed the steps correctly. it is working for others. so maybe you missed something when editing the theme. try from start again.
also, did you switch theme?

Yes I switch theme

Here it is


{% if business.logo != null %}{% endif %}
{{ title }}
            <table style="margin-bottom: 20px"><tr>
                <td>
                    <div><b>{{ recipient.name }}</b> {{ recipient.code }}</div>
                    <div>{{ recipient.address | newline_to_br }}</div>
                    <div>{{ recipient.identifier }}</div>
                </td>
                <td style="border-right-width: 1px; padding-right: 20px; text-align: right">
                    {% for field in fields %}
                    {% if field.label == 'Due date' %}{% assign duedate = field.text %}{% endif %}
                    {% if field.label == 'Invoice date' %}{% assign invoicedate = field.text %}{% endif %}
                    {% if field.label == 'Due date' %}{% if duedate == invoicedate %}{% continue %}{% endif %}{% endif %}
                    <div style="font-weight: bold">{{ field.label }}</div>
                    <div style="margin-bottom: 10px">{{ field.text }}</div>
                    {% endfor %}
                </td>
                <td style="padding-left: 20px; width: 1px; white-space: nowrap">
                    <div style="font-weight: bold">{{ business.name }}</div>
                    <div>{{ business.address | newline_to_br }}</div>
                    <div>{{ business.identifier }}</div>
                </td>
            </tr></table>

            <div style="font-size: 14px; font-weight: bold; margin-bottom: 20px">{{ description }}</div>
        </td>
    </tr>
    <tr>
        {% for column in table.columns %}            
        <td style="font-weight: bold; padding: 5px 10px; text-align: {{ column.align }}; border-left-width: 1px; border-bottom-width: 1px; border-top-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}{% if column.nowrap %}; white-space: nowrap; width: 80px{% endif %}">{{ column.label }}</td>
        {% endfor %}
    </tr>
</thead>
<tbody>
    {% for row in table.rows %}
    <tr>
        {% for cell in row.cells %}
        <td style="padding: 5px 10px; text-align: {{ table.columns[forloop.index0].align }}; border-left-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}{% if table.columns[forloop.index0].nowrap %}; white-space: nowrap; width: 80px{% endif %}">{{ cell.text | newline_to_br }}</td>
        {% endfor %}
    </tr>
    {% endfor %}
    <tr>
    {% for column in table.columns %}            
        <td style="border-bottom-width: 1px; border-left-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}">&nbsp;</td>
    {% endfor %}
    </tr>
    {% for total in table.totals %}
    <tr>
        <td colspan="{{ table.columns | size | minus:1 }}" style="padding: 5px 10px; text-align: right{% if total.emphasis == true %}; font-weight: bold{% endif %}">{{ total.label }}</td>
        <td style="border-left-width: 1px; white-space: nowrap; border-right-width: 1px; border-bottom-width: 1px; padding: 5px 10px; text-align: right{% if total.emphasis == true %}; font-weight: bold{% endif %}">{{ total.text }}</td>
    </tr>
    {% endfor %}

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

    {% if emphasis.text != null and emphasis.positive %}
    <tr><td colspan="99"><div style="text-align: center; margin-top: 40px"><span style="color: #006400; border-width: 5px; border-color: #006400; padding: 10px; font-size: 20px">{{ emphasis.text | upcase }}</span></div></td></tr>
    {% endif %}

    {% if emphasis.text != null and emphasis.negative %}
    <tr><td colspan="99"><div style="text-align: center; margin-top: 40px"><span style="color: #FF0000; border-width: 5px; border-color: #FF0000; padding: 10px; font-size: 20px">{{ emphasis.text | upcase }}</span></div></td></tr>
    {% endif %}
        
</tbody>

what version are you using?
can you post screenshot of both your invoice edit screen and the invoice?

Manager 17.10.20

i am unsure what the problem is if you have switched theme.
my first assumption was that you would have typed the due date.
looks like you are running the server edition on chrome. can you check if the problem occurs in firefox?

I havent type due date
Same problem in firefox

i checked on version 17.10.29 on both desktop and firefox. it is working as expected.

if you have not made any other customization to your theme, copy the below theme as a whole and try again.

<table style="padding: 30px">
    <thead>
        <tr>
            <td colspan="99">
                <table style="margin-bottom: 20px"><tr>
                    <td style="font-weight: bold; font-size: 32px">{{ title }}</td>
                    {% if business.logo != null %}<td style="text-align: right"><img src="{{ business.logo }}" style="max-height: 150px; max-width: 300px" /></td>{% endif %}
                </tr></table>
                
                <table style="margin-bottom: 20px"><tr>
                    <td>
                        <div><b>{{ recipient.name }}</b> {{ recipient.code }}</div>
                        <div>{{ recipient.address | newline_to_br }}</div>
                        <div>{{ recipient.identifier }}</div>
                    </td>
                    <td style="border-right-width: 1px; padding-right: 20px; text-align: right">
                        {% for field in fields %}
                        {% if field.label == 'Due date' %}{% assign duedate = field.text %}{% endif %}
                        {% if field.label == 'Invoice date' %}{% assign invoicedate = field.text %}{% endif %}
                        {% if field.label == 'Due date' %}{% if duedate == invoicedate %}{% continue %}{% endif %}{% endif %}
                        <div style="font-weight: bold">{{ field.label }}</div>
                        <div style="margin-bottom: 10px">{{ field.text }}</div>
                        {% endfor %}
                    </td>
                    <td style="padding-left: 20px; width: 1px; white-space: nowrap">
                        <div style="font-weight: bold">{{ business.name }}</div>
                        <div>{{ business.address | newline_to_br }}</div>
                        <div>{{ business.identifier }}</div>
                    </td>
                </tr></table>

                <div style="font-size: 14px; font-weight: bold; margin-bottom: 20px">{{ description }}</div>
            </td>
        </tr>
        <tr>
            {% for column in table.columns %}            
            <td style="font-weight: bold; padding: 5px 10px; text-align: {{ column.align }}; border-left-width: 1px; border-bottom-width: 1px; border-top-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}{% if column.nowrap %}; white-space: nowrap; width: 80px{% endif %}">{{ column.label }}</td>
            {% endfor %}
        </tr>
    </thead>
    <tbody>
        {% for row in table.rows %}
        <tr>
            {% for cell in row.cells %}
            <td style="padding: 5px 10px; text-align: {{ table.columns[forloop.index0].align }}; border-left-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}{% if table.columns[forloop.index0].nowrap %}; white-space: nowrap; width: 80px{% endif %}">{{ cell.text | newline_to_br }}</td>
            {% endfor %}
        </tr>
        {% endfor %}
        <tr>
        {% for column in table.columns %}            
            <td style="border-bottom-width: 1px; border-left-width: 1px{% if forloop.last == true %}; border-right-width: 1px{% endif %}">&nbsp;</td>
        {% endfor %}
        </tr>
        {% for total in table.totals %}
        <tr>
            <td colspan="{{ table.columns | size | minus:1 }}" style="padding: 5px 10px; text-align: right{% if total.emphasis == true %}; font-weight: bold{% endif %}">{{ total.label }}</td>
            <td style="border-left-width: 1px; white-space: nowrap; border-right-width: 1px; border-bottom-width: 1px; padding: 5px 10px; text-align: right{% if total.emphasis == true %}; font-weight: bold{% endif %}">{{ total.text }}</td>
        </tr>
        {% endfor %}

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

        {% if emphasis.text != null and emphasis.positive %}
        <tr><td colspan="99"><div style="text-align: center; margin-top: 40px"><span style="color: #006400; border-width: 5px; border-color: #006400; padding: 10px; font-size: 20px">{{ emphasis.text | upcase }}</span></div></td></tr>
        {% endif %}

        {% if emphasis.text != null and emphasis.negative %}
        <tr><td colspan="99"><div style="text-align: center; margin-top: 40px"><span style="color: #FF0000; border-width: 5px; border-color: #FF0000; padding: 10px; font-size: 20px">{{ emphasis.text | upcase }}</span></div></td></tr>
        {% endif %}
            
    </tbody>
</table>
1 Like

Upgrade to ver. 17.10.29
Same status, maybe because I use Server edition?
Anyway, thanks

I have same problem. Desktop version,17.12.65, firstly I tried by copying and removing codes, then tried with everything copied from post - and same result - it shows Due Date.

@borismob, you stated in another topic that you are not familiar with any type of programming and definitely not with Liquid. So you really should not be trying to develop custom themes on your own. This is not an educational forum for programming. Hire a local programmer or use the program as it is.

Yes, I said that I’m not familiar, but I didn’t said that I’m stupid to copy/paste code, or to put it on right place. When I say I’m not familiar, I mean that I’m not tehnican, or computer engineer.
I saw that I’m not only one that did same, without result.
If I ask, it may help to other users too…and can help to developers, to take a look about something that can be fixed in next update.

Custom themes are not reviewed, considered, or addressed by the developer. They are entirely the responsibility of individual users. When another forum member shares code, anyone who uses it does so at his/her own risk. There is no guarantee that it will work. And if it does, it might be broken by a subsequent update of the program, because program updates do not take users’ custom themes into account. There have been several dozen updates since the code in this thread was posted. Several of them affected fields and their labels. So it is not surprising that something might not work.

1 Like