-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enable unlink_payment_on_cancellation_of_employee_advance in hr …
…settings
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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)) | ||
|