mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 14:39:19 +00:00
fix cheque print measurements
This commit is contained in:
@@ -29,11 +29,11 @@ def create_or_update_cheque_print_format(template_name):
|
|||||||
cheque_print.html = """
|
cheque_print.html = """
|
||||||
<div style="position: relative; top:%(starting_position_from_top_edge)scm">
|
<div style="position: relative; top:%(starting_position_from_top_edge)scm">
|
||||||
<div style="width:%(cheque_width)scm;height:%(cheque_height)scm;">
|
<div style="width:%(cheque_width)scm;height:%(cheque_height)scm;">
|
||||||
<span style="top: {{ %(acc_pay_dist_from_top_edge)s }}cm; left: {{ %(acc_pay_dist_from_left_edge)s }}cm;
|
<span style="top:%(acc_pay_dist_from_top_edge)scm; left:%(acc_pay_dist_from_left_edge)scm;
|
||||||
border-bottom: solid 1px;border-top:solid 1px; position: absolute;">
|
border-bottom: solid 1px;border-top:solid 1px; position: absolute;">
|
||||||
%(message_to_show)s
|
%(message_to_show)s
|
||||||
</span>
|
</span>
|
||||||
<span style="top:%(date_dist_from_top_edge)s cm; left:%(date_dist_from_left_edge)scm;
|
<span style="top:%(date_dist_from_top_edge)scm; left:%(date_dist_from_left_edge)scm;
|
||||||
position: absolute;">
|
position: absolute;">
|
||||||
{{ frappe.utils.formatdate(doc.reference_date) or '' }}
|
{{ frappe.utils.formatdate(doc.reference_date) or '' }}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user