Hi. I’m having an issue with the printing. I’ve customised my print format to my liking but when it prints via E-POS(Thermal Printer), the output is different. It prints as a PDF version and not the Full Page version
The left image displays the full page view which is what I want but I get the results from the right image as a PDF.
Anyone who knows how to resolve this issue, kindly assist.
Thank You:)
Here’s the code for the print format used:
.print-format table, .print-format tr, .print-format td, .print-format div, .print-format p { font-family: "Times New Roman", Times, serif; line-height: 100%; vertical-align: middle; margin: 0; } @media screen { .print-format { width: 4in; padding: 0; min-height: 0; } }
MEDICAL CENTRE
Doctor's Consultation, Special Clinics, Pharmacy,
Lab, Physiotherapy, Dental and Ultra Sound.
{{ doc.select_print_heading or _("Sales Invoice") }}
{{ _("Receipt No") }}: {{ doc.name }}
{{ _("Date") }}: {{ doc.get_formatted("posting_date") }}
{{ _("Item") }} | {{ _("Qty") }} | {{ _("Amount") }} |
---|---|---|
{{ item.item_code }}
{%- if item.item_name != item.item_code -%}
{{ item.item_name }}{%- endif -%} |
{{ item.qty }} @ {{ item.get_formatted("rate") }} |
{{ item.get_formatted("amount") }} |
{%- if doc.discount_amount -%}
<tr>
<td class="text-right" style="width: 75%">
{{ _("Discount") }}
</td>
<td class="text-right">
{{ doc.get_formatted("discount_amount") }}
</td>
</tr>
{%- endif -%}
<tr>
<td class="text-right" style="width: 75%">
<b>{{ _("Grand Total") }}</b>
</td>
<td class="text-right">
{{ doc.get_formatted("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">
{{ doc.get_formatted("rounded_total") }}
</td>
</tr> -->
{%- endif -%}
<tr>
<td class="text-right" style="width: 75%">
<b>{{ _("Paid Amount") }}</b>
</td>
<td class="text-right">
{{ doc.get_formatted("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">
{{ doc.get_formatted("change_amount") }}
</td>
</tr>
{%- endif -%}
</tbody>
{{ _("Total Excl. Tax") }} | {{ doc.get_formatted("net_total", doc) }} | {{ _("Total") }} | {{ doc.get_formatted("total", doc) }} |
{{ row.description }} | {{ row.get_formatted("tax_amount", doc) }} | ||
{{ doc.terms or "" }}
{{ _("We Listen, We Explain, We Treat") }}
{{ _("Thank you, Get well soon.") }}
{{ _("Customer Care: Hotline") }}