Folks - Loving the possibility to use CSS bootstrap for the new template engine, great addition!--
As I am translating my templates, I am having an issue as in the company letterhead does not display in the new template engines, despite the "letterhead tick box" is marked. In the old templates the letterhead shows without any problems and it disappears when the tick is removed.I am sure I am missing something obvious here, any suggestions on what I am doing wrong?Thanks,Fede
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/0a18b012-1de9-4c70-bade-ff4b4802d178%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Federico,
I suppose you will need to add this in the code:
{%- from "templates/print_formats/standard_macros.html" import add_header -%}
<div class="page-break">
{{ add_header(0, 1, doc, letter_head, no_letterhead) }}
{# rest of your print format #}
</div>You can have a look at how standard.html is written to get more ideas on how the whole thing works.
-Anand.
On Sat, Aug 30, 2014 at 6:45 AM, Federico Torreti <torr...@gmail.com> wrote:
Folks - Loving the possibility to use CSS bootstrap for the new template engine, great addition!
As I am translating my templates, I am having an issue as in the company letterhead does not display in the new template engines, despite the "letterhead tick box" is marked. In the old templates the letterhead shows without any problems and it disappears when the tick is removed.I am sure I am missing something obvious here, any suggestions on what I am doing wrong?Thanks,Fede
--
You received this message because you are subscribed to the Google Groups "ERPNext User's Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-forum+unsub...@googlegroups.com.
{%- for row in doc.entries -%}
<tr>
<td style="width: 3%;">{{ row.idx }}</td>
<td style="width: 20%;">
{{ row.item_name }}
{% if row.item_code != row.item_name -%}
<br>Item Code: {{ row.item_code}}
{%- endif %}
</td>
<td style="width: 37%;">
<div style="border: 0px;">{{ row.description }}</div></td>
<td style="width: 10%; text-align: right;">{{ row.qty }} {{ row.uom or row.stock_uom }}</td>
<td style="width: 15%; text-align: right;">{{
row.get_formatted("rate", doc) }}</td>
<td style="width: 15%; text-align: right;">{{
row.get_formatted("amount", doc) }}</td>
</tr>
{%- endfor -%}
{%- for row in doc.quotation_details -%}
{%- for row in doc.get(doc.fname) -%}
We store the Item Table's fieldname in doc.fname, so this should work for most erpnext transactions where both item table and tax table exists in the same form.To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-user-forum/74ed809c-7b83-4fa2-8754-2d2f8967e57a%40googlegroups.com.To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-user-fo...@googlegroups.com.