mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 16:12:53 +00:00
fix: linting issues
This commit is contained in:
@@ -5,13 +5,13 @@ frappe.ui.form.on('Process Sales Commission', {
|
||||
setup: function(frm) {
|
||||
frm.set_query("department", function() {
|
||||
if (!frm.doc.company) {
|
||||
frappe.throw(__("Please select company first"))
|
||||
frappe.throw(__("Please select company first"));
|
||||
}
|
||||
return {
|
||||
filters: {
|
||||
company: frm.doc.company
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
@@ -8,7 +8,7 @@ frappe.ui.form.on('Sales Commission', {
|
||||
filters: [
|
||||
['name', 'in', ["Sales Order", "Sales Invoice"]]
|
||||
]
|
||||
}
|
||||
};
|
||||
});
|
||||
},
|
||||
refresh: function(frm) {
|
||||
@@ -88,9 +88,6 @@ const create_payment_entry = function (frm) {
|
||||
};
|
||||
|
||||
const create_additional_salary = function (frm) {
|
||||
if (!frm.doc.employee) {
|
||||
frappe.throw(__("No employee is linked to Sales Person {0}. Please select an employee for {1} to process this Commission.").format(frappe.bold(frm.doc.sales_person), get_link_to_form("Sales Person", frm.doc.sales_person)))
|
||||
}
|
||||
frappe.confirm(__("Creating Additional Salary. Do you want to proceed?"),
|
||||
function () {
|
||||
frappe.call({
|
||||
|
||||
Reference in New Issue
Block a user