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:
commit
095161ff60
@ -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"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user