minor fix
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
frappe.reload_doctype("System Settings")
|
||||||
ss = frappe.get_doc("System Settings", "System Settings")
|
ss = frappe.get_doc("System Settings", "System Settings")
|
||||||
ss.email_footer_address = frappe.db.get_default("company")
|
ss.email_footer_address = frappe.db.get_default("company")
|
||||||
ss.save()
|
ss.save()
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
hide_currency_and_price_list: function() {
|
hide_currency_and_price_list: function() {
|
||||||
if(this.frm.doc.docstatus > 0) {
|
if(this.frm.doc.conversion_rate == 1 && this.frm.doc.docstatus > 0) {
|
||||||
hide_field("currency_and_price_list");
|
hide_field("currency_and_price_list");
|
||||||
} else {
|
} else {
|
||||||
unhide_field("currency_and_price_list");
|
unhide_field("currency_and_price_list");
|
||||||
|
|||||||
Reference in New Issue
Block a user