mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 13:39:18 +00:00
[fixes] default_website and stock reco
This commit is contained in:
@@ -50,7 +50,9 @@ before_tests = "erpnext.setup.utils.before_tests"
|
|||||||
|
|
||||||
website_generators = ["Item Group", "Item", "Sales Partner"]
|
website_generators = ["Item Group", "Item", "Sales Partner"]
|
||||||
|
|
||||||
standard_queries = "Customer:erpnext.selling.doctype.customer.customer.get_customer_list"
|
standard_queries = {
|
||||||
|
"Customer": "erpnext.selling.doctype.customer.customer.get_customer_list"
|
||||||
|
}
|
||||||
|
|
||||||
communication_covert_to = ["Lead", "Issue", "Job Application"]
|
communication_covert_to = ["Lead", "Issue", "Job Application"]
|
||||||
|
|
||||||
|
|||||||
@@ -22,9 +22,9 @@ class website_maker(object):
|
|||||||
"doctype": "Web Page",
|
"doctype": "Web Page",
|
||||||
"title": self.company,
|
"title": self.company,
|
||||||
"published": 1,
|
"published": 1,
|
||||||
"header": "<h1>{0}</h1>".format(self.tagline or "Headline")+\
|
"header": "<div class='hero text-center'><h1>{0}</h1>".format(self.tagline or "Headline")+\
|
||||||
'<p>'+_("This is an example website auto-generated from ERPNext")+"</p>"+\
|
'<p>'+_("This is an example website auto-generated from ERPNext")+"</p>"+\
|
||||||
'<p><a class="btn btn-primary" href="/login">Login</a></p>',
|
'<p><a class="btn btn-primary" href="/login">Login</a></p></div>',
|
||||||
"description": self.company + ":" + (self.tagline or ""),
|
"description": self.company + ":" + (self.tagline or ""),
|
||||||
"css": frappe.get_template("setup/page/setup_wizard/data/sample_home_page.css").render(),
|
"css": frappe.get_template("setup/page/setup_wizard/data/sample_home_page.css").render(),
|
||||||
"main_section": frappe.get_template("setup/page/setup_wizard/data/sample_home_page.html").render({
|
"main_section": frappe.get_template("setup/page/setup_wizard/data/sample_home_page.html").render({
|
||||||
|
|||||||
@@ -408,8 +408,8 @@ def create_logo(args):
|
|||||||
filename, filetype, content = attach_logo
|
filename, filetype, content = attach_logo
|
||||||
fileurl = save_file(filename, content, "Website Settings", "Website Settings",
|
fileurl = save_file(filename, content, "Website Settings", "Website Settings",
|
||||||
decode=True).file_url
|
decode=True).file_url
|
||||||
frappe.db.set_value("Website Settings", "Website Settings", "banner_html",
|
frappe.db.set_value("Website Settings", "Website Settings", "brand_html",
|
||||||
"<img src='%s' style='max-width: 100%%;'>" % fileurl)
|
"<img src='{0}' style='max-width: 40px; max-height: 25px;'> {1}".format(fileurl, args.get("company_name").strip()))
|
||||||
|
|
||||||
def add_all_roles_to(name):
|
def add_all_roles_to(name):
|
||||||
user = frappe.get_doc("User", name)
|
user = frappe.get_doc("User", name)
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class StockReconciliation(StockController):
|
|||||||
else:
|
else:
|
||||||
item.current_qty = qty
|
item.current_qty = qty
|
||||||
item.current_valuation_rate = rate
|
item.current_valuation_rate = rate
|
||||||
self.difference_amount += ((item.qty or qty) * (item.valuation_rate or rate) - (qty * rate))
|
self.difference_amount += (flt(item.qty or qty) * flt(item.valuation_rate or rate) - (flt(qty) * flt(rate)))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
items = filter(lambda d: _changed(d), self.items)
|
items = filter(lambda d: _changed(d), self.items)
|
||||||
|
|||||||
Reference in New Issue
Block a user