|
|
@@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json |
|
|
|
from .exceptions import * |
|
|
|
from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template |
|
|
|
|
|
|
|
__version__ = '9.2.6' |
|
|
|
__version__ = '9.2.7' |
|
|
|
__title__ = "Frappe Framework" |
|
|
|
|
|
|
|
local = Local() |
|
|
@@ -1220,7 +1220,7 @@ def format(*args, **kwargs): |
|
|
|
import frappe.utils.formatters |
|
|
|
return frappe.utils.formatters.format_value(*args, **kwargs) |
|
|
|
|
|
|
|
def get_print(doctype=None, name=None, print_format=None, style=None, html=None, as_pdf=False, doc=None, output = None): |
|
|
|
def get_print(doctype=None, name=None, print_format=None, style=None, html=None, as_pdf=False, doc=None, output = None, no_letterhead = 0): |
|
|
|
"""Get Print Format for given document. |
|
|
|
|
|
|
|
:param doctype: DocType of document. |
|
|
@@ -1236,6 +1236,7 @@ def get_print(doctype=None, name=None, print_format=None, style=None, html=None, |
|
|
|
local.form_dict.format = print_format |
|
|
|
local.form_dict.style = style |
|
|
|
local.form_dict.doc = doc |
|
|
|
local.form_dict.no_letterhead = no_letterhead |
|
|
|
|
|
|
|
if not html: |
|
|
|
html = build_page("printview") |
|
|
|