Merge pull request #12819 from netchampfaris/hotfix-get_party_account

get_party_account only if company is set
This commit is contained in:
rohitwaghchaure 2018-02-08 11:42:41 +05:30 committed by GitHub
commit 144c9977a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: {