minor fixes

This commit is contained in:
Jamsheer 2018-05-16 15:10:22 +05:30
parent c678d037e7
commit 6410022cab
2 changed files with 1 additions and 10 deletions

View File

@ -212,7 +212,7 @@ class SalarySlip(TransactionBase):
where employee=%s and (from_date <= %s or from_date <= %s)
and (to_date is null or to_date >= %s or to_date >= %s)
and salary_structure in (select name from `tabSalary Structure`
where is_active = 'Yes'%s)
where docstatus = 1 and is_active = 'Yes'%s)
"""% ('%s', '%s', '%s','%s','%s', cond),(self.employee, self.start_date, joining_date, self.end_date, relieving_date))
if st_name:

View File

@ -123,15 +123,6 @@ frappe.ui.form.on('Salary Structure', {
}
});
frappe.ui.form.on('Salary Structure Employee', {
from_date: function(frm, cdt, cdn) {
validate_date(frm, cdt, cdn);
},
to_date: function(frm, cdt, cdn) {
validate_date(frm, cdt, cdn);
}
});
var validate_date = function(frm, cdt, cdn) {
var doc = locals[cdt][cdn];
if(doc.to_date && doc.from_date) {