Browse Source

fix: Removed Extra page on generating pdf in print formats

develop
Anurag Mishra 6 years ago
parent
commit
67e6da2086
  1. 2
      erpnext/accounts/print_format/bank_and_cash_payment_voucher/bank_and_cash_payment_voucher.html
  2. 2
      erpnext/accounts/print_format/journal_auditing_voucher/journal_auditing_voucher.html
  3. 2
      erpnext/accounts/print_format/purchase_auditing_voucher/purchase_auditing_voucher.html
  4. 2
      erpnext/accounts/print_format/sales_auditing_voucher/sales_auditing_voucher.html

2
erpnext/accounts/print_format/bank_and_cash_payment_voucher/bank_and_cash_payment_voucher.html

@ -6,7 +6,7 @@
</style>
<div class="page-break">
<div>
{% set gl = frappe.get_list(doctype="GL Entry", fields=["account", "party_type", "party", "debit", "credit", "remarks"], filters={"voucher_type": doc.doctype, "voucher_no": doc.name}) %}
{%- if not doc.get("print_heading") and not doc.get("select_print_heading")
and doc.set("select_print_heading", _("Payment Entry")) -%}{%- endif -%}

2
erpnext/accounts/print_format/journal_auditing_voucher/journal_auditing_voucher.html

@ -4,7 +4,7 @@
.table-bordered td.right{border-right: none !important;}
.table-bordered td.left{border-left: none !important;}
</style>
<div class="page-break">
<div>
{% set gl = frappe.get_list(doctype="GL Entry", fields=["account", "party_type", "party", "debit", "credit", "remarks"], filters={"voucher_type": doc.doctype, "voucher_no": doc.name}) %}
{%- if not doc.get("print_heading") and not doc.get("select_print_heading")
and doc.set("select_print_heading", _("Journal Entry")) -%}{%- endif -%}

2
erpnext/accounts/print_format/purchase_auditing_voucher/purchase_auditing_voucher.html

@ -1,5 +1,5 @@
{%- from "templates/print_formats/standard_macros.html" import add_header -%}
<div class="page-break">
<div>
{% set gl = frappe.get_list(doctype="GL Entry", fields=["account", "party_type", "party", "debit", "credit", "remarks"], filters={"voucher_type": doc.doctype, "voucher_no": doc.name}) %}
{%- if not doc.get("print_heading") and not doc.get("select_print_heading")
and doc.set("select_print_heading", _("Purchase Invoice")) -%}{%- endif -%}

2
erpnext/accounts/print_format/sales_auditing_voucher/sales_auditing_voucher.html

@ -1,5 +1,5 @@
{%- from "templates/print_formats/standard_macros.html" import add_header -%}
<div class="page-break">
<div>
{% set gl = frappe.get_list(doctype="GL Entry", fields=["account", "party_type", "party", "debit", "credit", "remarks"], filters={"voucher_type": doc.doctype, "voucher_no": doc.name}) %}
{%- if not doc.get("print_heading") and not doc.get("select_print_heading")
and doc.set("select_print_heading", _("Sales Invoice")) -%}{%- endif -%}

Loading…
Cancel
Save