mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
fix: exclude cancelled salary slips
This commit is contained in:
@@ -96,7 +96,7 @@ def get_data(filters):
|
|||||||
`tabSalary Slip Timesheet` as sst join `tabTimesheet` on tabTimesheet.name = sst.time_sheet
|
`tabSalary Slip Timesheet` as sst join `tabTimesheet` on tabTimesheet.name = sst.time_sheet
|
||||||
join `tabSales Invoice Timesheet` as sit on sit.time_sheet = tabTimesheet. name
|
join `tabSales Invoice Timesheet` as sit on sit.time_sheet = tabTimesheet. name
|
||||||
join `tabSales Invoice` as si on si. name = sit.parent and si.status != "Cancelled"
|
join `tabSales Invoice` as si on si. name = sit.parent and si.status != "Cancelled"
|
||||||
join `tabSalary Slip` as ss on ss.name = sst.parent """
|
join `tabSalary Slip` as ss on ss.name = sst.parent and ss.status != "Cancelled" """
|
||||||
if conditions:
|
if conditions:
|
||||||
sql += """
|
sql += """
|
||||||
where
|
where
|
||||||
|
|||||||
Reference in New Issue
Block a user