ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Print Preview Different From Print Output

bug

#1

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

{%- for item in doc.items -%} {%- endfor -%}
{{ _("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.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">
			{{ 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") }}


#2

@Muzzy @bghayad @ccfiel here is the code we have for the this discuss I opened on a different thread -How can i remove all this white space on this receipt - looking for your help on this