diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index eb333af1ed..c5c9973b7a 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -458,7 +458,7 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({ } 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: {