Skip to content

Commit

Permalink
fix: enable unlink_payment_on_cancellation_of_employee_advance in hr …
Browse files Browse the repository at this point in the history
…settings
  • Loading branch information
l0gesh29 authored and venkat102 committed Oct 14, 2024
1 parent ae93f02 commit d3db355
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hrms/hr/doctype/employee_advance/test_employee_advance.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See license.txt

import frappe
from frappe.tests.utils import FrappeTestCase
from frappe.tests.utils import FrappeTestCase, change_settings
from frappe.utils import flt, now_datetime, nowdate

import erpnext
Expand Down Expand Up @@ -277,6 +277,7 @@ def test_pending_amount(self):
# (1000 - 500) + (1000 - 700)
self.assertEqual(advance3.pending_amount, 800)

@change_settings("HR Settings", {"unlink_payment_on_cancellation_of_employee_advance": True})
def test_unlink_payment_entries(self):
employee_name = make_employee("[email protected]", "_Test Company")
self.assertTrue(frappe.db.exists("Employee", employee_name))
Expand Down

0 comments on commit d3db355

Please sign in to comment.