mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-14 02:31:21 +00:00
[fixes] overlapping allocation
This commit is contained in:
@@ -5,6 +5,8 @@ from frappe.utils import getdate
|
|||||||
|
|
||||||
class TestLeaveAllocation(unittest.TestCase):
|
class TestLeaveAllocation(unittest.TestCase):
|
||||||
def test_overlapping_allocation(self):
|
def test_overlapping_allocation(self):
|
||||||
|
frappe.db.sql("delete from `tabLeave Allocation`")
|
||||||
|
|
||||||
employee = frappe.get_doc("Employee", frappe.db.sql_list("select name from tabEmployee limit 1")[0])
|
employee = frappe.get_doc("Employee", frappe.db.sql_list("select name from tabEmployee limit 1")[0])
|
||||||
leaves = [
|
leaves = [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user