mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
get payroll period days - fix
This commit is contained in:
@@ -49,7 +49,9 @@ def get_payroll_period_days(start_date, end_date, company):
|
|||||||
select start_date, end_date from `tabPayroll Period`
|
select start_date, end_date from `tabPayroll Period`
|
||||||
where company=%(company)s
|
where company=%(company)s
|
||||||
and (
|
and (
|
||||||
start_date between %(start_date)s and %(end_date)s
|
(%(start_date)s between start_date and end_date)
|
||||||
|
or (%(end_date)s between start_date and end_date)
|
||||||
|
or (start_date between %(start_date)s and %(end_date)s)
|
||||||
)""", {
|
)""", {
|
||||||
'company': company,
|
'company': company,
|
||||||
'start_date': start_date,
|
'start_date': start_date,
|
||||||
|
|||||||
Reference in New Issue
Block a user