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