fix: linting issues

This commit is contained in:
Afshan
2021-10-27 17:24:30 +05:30
parent 5d52fa966d
commit e43cfdf460
2 changed files with 10 additions and 11 deletions

View File

@@ -22,8 +22,7 @@ class SalesCommission(Document):
frappe.throw(_("Total Commission Amount should be greater than 0"))
def validate_salary_component(self):
if self.pay_via_salary and not frappe.db.get_single_value(
"Payroll Settings", "salary_component_for_sales_commission"):
if self.pay_via_salary and not frappe.db.get_single_value("Payroll Settings", "salary_component_for_sales_commission"):
frappe.throw(_("Please set {0} in {1}").format(frappe.bold("Salary Component for Sales Commission"), get_link_to_form("Payroll Settings", "Payroll Settings")))
def on_submit(self):

View File

@@ -7,4 +7,4 @@ frappe.listview_settings['Sales Commission'] = {
return [__(doc.status), "red", "status,=," + doc.status];
}
}
}
};