From b36517158b932ba36407a2b2329dd913b1fa9118 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Tue, 8 May 2018 15:23:29 +0530 Subject: [PATCH] [fix] cheque print template coordinates (#13959) --- .../cheque_print_template.py | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/erpnext/accounts/doctype/cheque_print_template/cheque_print_template.py b/erpnext/accounts/doctype/cheque_print_template/cheque_print_template.py index 0556e9b992..24cd3dda9b 100644 --- a/erpnext/accounts/doctype/cheque_print_template/cheque_print_template.py +++ b/erpnext/accounts/doctype/cheque_print_template/cheque_print_template.py @@ -27,10 +27,20 @@ def create_or_update_cheque_print_format(template_name): doc = frappe.get_doc("Cheque Print Template", template_name) cheque_print.html = """ +
+ border-bottom: solid 1px;border-top:solid 1px; width:2cm;text-align: center; position: absolute;"> %(message_to_show)s + position: absolute; min-width: 6cm;"> {{ doc.account_no or '' }} + position: absolute; min-width: 6cm;"> {{doc.party_name}} + position: absolute; min-width: 4cm;"> {{doc.get_formatted("base_paid_amount") or doc.get_formatted("base_received_amount")}} + position: absolute; min-width: 6cm;"> {{doc.company}}