Merge branch 'develop' into payment-terms

This commit is contained in:
tunde
2017-09-29 13:30:22 +01:00
18 changed files with 285 additions and 74 deletions

View File

@@ -382,7 +382,8 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
if(me.frm.doc.company && me.frm.fields_dict.currency) {
var company_currency = me.get_company_currency();
var company_doc = frappe.get_doc(":Company", me.frm.doc.company);
if (!me.frm.doc.currency) {
if (!me.frm.doc.currency || me.frm.doc.currency != company_currency) {
me.frm.set_value("currency", company_currency);
}