How to remove the line after every item

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.

.print-format table, .print-format tr, .print-format td, .print-format div, .print-format p { line-height: 100%; vertical-align: middle; } /* Remove underline from all elements in the print format */ .print-format a, .print-format td, .print-format th { text-decoration: none; } @media screen { .print-format { width: 4in; /* Overall width */ padding: 0.25in; min-height: 8in; /* Minimum height */ } } /* Make the letterhead larger and override any other styles */ .custom-letterhead { font-size: 50px !important; /* Ensure the size is applied larger */ font-weight: bold !important; /* Force bold font */ text-align: center !important; /* Center the text */ padding: 10px 0 !important; /* Add more padding for emphasis */ color: #333 !important; /* Set a color for visibility */ } /* Style for the letterhead image */ .letterhead-img { width: 50% !important; /* Use 100% width to fill container */ height: auto !important; /* Maintain aspect ratio */ display: block; margin: 0 auto; /* Center the image */ max-height: 100px; /* Set a maximum height if needed */ }

{% 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") }}

{%- for item in doc.items -%} {%- endfor -%}
{{ _("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.flags.show_inclusive_tax_in_print %} {% else %} {% endif %} {%- for row in doc.taxes -%} {%- if not row.included_in_print_rate or doc.flags.show_inclusive_tax_in_print -%} {%- endif -%} {%- endfor -%}
    {%- 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*****") }}

@EdmundDelima You can use custom print format and add the html table tag for item table and check the w3school how to remove table one by one border then apply that css in your print format then your problem is resolve and using table tag is better for print format to show multiple records so try it

example :

table tag : Link
border css style : Link

1 Like