Hi!
I have spotted an error in the invoice template supplied for Order Printer.
I sell products with and without taxes (food), and the taxes are not included in my prices.
Everything works if all the order's products don't have taxes. But this happens when one of the products has taxes:
Quantity Item Taxes Price
1 x Blueberry jellies cube $ 0.54 State Tax $ 9.95
1 x Maximum olive oil $ 17.40
For the second item, which is one without taxes, it shows the price in the Taxes column, instead of in the Price column.
This is the code:
<table class="table-tabular" style="margin: 0 0 1.5em 0;"><thead><tr><th>Quantity</th><th>Item</th>
{% if show_line_item_taxes %}<th>Taxes</th>
{% endif %}<th>Price</th></tr></thead><tbody>
{% for line_item in line_items %}<tr><td>{{ line_item.quantity }} x</td><td><b>{{ line_item.title }}</b></td>
{% if line_item.tax_lines %}<td>
{% for tax_line in line_item.tax_lines %}
{{ tax_line.price | money }} {{ tax_line.title }}</td>
{% endfor %}
{% endif %}<td>{{ line_item.price | money }}</td></tr>
{% endfor %} </tbody></table>
Could someone help me? Thanks in advance!