commit | 4f3b7da9baea791d2f5bb2731989e730ba491c2f | [log] [tgz] |
---|---|---|
author | Rohit Waghchaure <rohitw1991@gmail.com> | Tue Sep 15 14:47:36 2020 +0530 |
committer | Rohit Waghchaure <rohitw1991@gmail.com> | Tue Sep 15 14:47:36 2020 +0530 |
tree | c9932fc0d1790a7d95cee127428bee62be6ad8c5 | |
parent | fcb6ba6ec7fb245f201a22374d1c4a0c8227905e [diff] |
fix: set_taxes() missing 1 required positional argument: 'company'
diff --git a/erpnext/public/js/utils/party.js b/erpnext/public/js/utils/party.js index 0653267..af1f433 100644 --- a/erpnext/public/js/utils/party.js +++ b/erpnext/public/js/utils/party.js
@@ -224,6 +224,10 @@ party = frm.doc.party_name; } + if (!frm.doc.company) { + frappe.throw(_("Kindly select the company first")); + } + frappe.call({ method: "erpnext.accounts.party.set_taxes", args: {