Hi,
I want to remove the line after every item and total, how to do it? I have attached here the codes and the output.
Thank you.
{% if letter_head %}
{{ letter_head }}
{% endif %}
KALLE 5 CAFE
CINQ BLDG. Metropolitan Residenza
Bagumbayan, Quezon City
0945-711-4676
{{ doc.select_print_heading or _("INVOICE") }}
{{ _("Invoice No") }}: {{ doc.name }}
{{ doc.customer_name }}
{{ _("Cashier") }}: {{ frappe.db.get_value("User", doc.owner, "full_name") }}
{{ _("Date") }}: {{ frappe.utils.get_datetime(doc.posting_date).strftime('%B %d, %Y') }}
{{ _("Time") }}: {{ doc.get_formatted("posting_time") }}
{{ _("Item") }} | {{ _("Qty") }} | {{ _("Amount") }} |
---|---|---|
{{ item.item_code }}
{%- if item.item_name != item.item_code -%}
{{ item.item_name }} {%- endif -%} {%- if item.serial_no -%} {{ _("SR.No") }}: {{ item.serial_no | replace("\n", ", ") }} {%- endif -%} |
{{ "{:,.0f}".format(item.qty) }} |
{{ "{:,.2f}".format(item.amount) }} |
{%- if doc.discount_amount -%}
<tr>
<td class="text-right" style="width: 75%">
{{ _("Discount") }}
</td>
<td class="text-right">
{{ "{:,.2f}".format(doc.discount_amount) }}
</td>
</tr>
{%- endif -%}
<tr>
<td class="text-right" style="width: 75%">
<b>{{ _("Grand Total") }}</b>
</td>
<td class="text-right">
{{ "{:,.2f}".format(doc.grand_total) }}
</td>
</tr>
{%- if doc.rounded_total -%}
<tr>
<td class="text-right" style="width: 75%">
<b>{{ _("Rounded Total") }}</b>
</td>
<td class="text-right">
{{ "{:,.2f}".format(doc.rounded_total) }}
</td>
</tr>
{%- endif -%}
{%- for row in doc.payments -%}
<tr>
<td class="text-right" style="width: 70%">
{{ row.mode_of_payment }}
</td>
<td class="text-right">
{{ "{:,.2f}".format(row.amount) }}
</td>
</tr>
{%- endfor -%}
<tr>
<td class="text-right" style="width: 75%">
<b>{{ _("Paid Amount") }}</b>
</td>
<td class="text-right">
{{ "{:,.2f}".format(doc.paid_amount) }}
</td>
</tr>
{%- if doc.change_amount -%}
<tr>
<td class="text-right" style="width: 75%">
<b>{{ _("Change Amount") }}</b>
</td>
<td class="text-right">
{{ "{:,.2f}".format(doc.change_amount) }}
</td>
</tr>
{%- endif -%}
</tbody>
{{ _("Total Excl. Tax") }} | {{ doc.get_formatted("net_total", doc) }} | {{ _("Total") }} | {{ "{:,.2f}".format(doc.total) }} |
{% if '%' in row.description %} {{ row.description }} {% else %} {{ row.description }}@{{ "{:,.0f}".format(row.rate) }}% {% endif %} | {{ "{:,.2f}".format(row.tax_amount) }} |
{{ doc.terms or "" }}
{{ _("Thank you, please visit again.") }}
{{ _("*****This is not an official receipt*****") }}