Merge pull request #12819 from netchampfaris/hotfix-get_party_account
get_party_account only if company is set
This commit is contained in:
commit
144c9977a2
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user