if statements in invoice templatE

This commit is contained in:
Sanj 2012-06-21 13:00:16 +05:30
parent 1df9f9d5cf
commit a1ebe9d26b

View File

@ -91,17 +91,18 @@ margin-bottom:2px;
<p><strong>To: </strong>{{ client_name }}</p>
<p>{{ client_address|markdown }}</p>
<p>Tel No: {{ client_tel }}</p>
<p>Email: {{ client_email }}</p>
{% if client_email %} <p>Email: {{ client_email }}</p> {% endif %}
</div><!-- CLIENT ADDRESS CLOSING -->
{% if invoice_no %}
<br>
<div id="date"><strong>Invoice Date: </strong>{{ date }}</div>
<br>
<div id="invoiceNo"><strong>Invoice Number: </strong>{{ invoice_no }}</div>
<br>
{% endif %}
<div id="attention"><strong>Attn:</strong> {{ client_rep_name }}</div>
{% if client_rep_name %} <div id="attention"><strong>Attn:</strong> {{ client_rep_name }}</div> {% endif %}
<br>
<div id="content">
<p><b>Subject:</b> {{ subject }}</p>
@ -157,18 +158,20 @@ margin-bottom:2px;
<td>{{ amount7 }}</td>
</tr>
{% endif %}
<!--
{% if amount_final %}
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td><strong>{{ total_amount_text }}</strong>
<p>In words: {{ amount_words }} only</p>
{% if amount_words %} <p>In words: {{ amount_words }} only</p> {% endif %}
</td>
<td><strong>{{ amount_final }}</strong></td>
</tr>
-->
{% endif %}
</table>
<br>
</div>