Merge pull request #23328 from rohitwaghchaure/fixed-set-taxes-missing-error

fix: set_taxes() missing 1 required positional argument: 'company'
This commit is contained in:
Deepesh Garg 2020-09-19 18:07:08 +05:30 committed by GitHub
commit 095161ff60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,6 +224,10 @@ erpnext.utils.set_taxes = function(frm, triggered_from_field) {
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: {
@ -292,4 +296,4 @@ erpnext.utils.get_shipping_address = function(frm, callback){
} else {
frappe.msgprint(__("Select company first"));
}
}
}