commit | f7717b9ec2a8cc4339134e7b17ba72293978c52c | [log] [tgz] |
---|---|---|
author | Faris Ansari <netchamp.faris@gmail.com> | Thu Feb 08 11:09:54 2018 +0530 |
committer | Faris Ansari <netchamp.faris@gmail.com> | Thu Feb 08 11:11:21 2018 +0530 |
tree | 8f03c25b6cb6c76d6cc6eda312176ac128cb85c2 | |
parent | b553b7a69d3ef907584f8412b9697837e05a5322 [diff] |
get_party_account only if company is set
diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index eb333af..c5c9973 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js
@@ -458,7 +458,7 @@ } var party = me.frm.doc[frappe.model.scrub(party_type)]; - if(party) { + if(party && me.frm.doc.company) { return frappe.call({ method: "erpnext.accounts.party.get_party_account", args: {