diff --git a/erpnext/accounts/doctype/pos_profile/test_pos_profile.py b/erpnext/accounts/doctype/pos_profile/test_pos_profile.py index 5efe3bd5380..20ee2faadcf 100644 --- a/erpnext/accounts/doctype/pos_profile/test_pos_profile.py +++ b/erpnext/accounts/doctype/pos_profile/test_pos_profile.py @@ -70,6 +70,7 @@ class TestPOSProfile(unittest.TestCase): ) test_user, pos_profile = init_user_and_profile() + frappe.db.delete("POS Opening Entry", {"pos_profile": pos_profile.name}) if pos_profile: opening_entry = create_opening_entry(pos_profile, test_user.name)