test: delete outdated pos opening entry

This commit is contained in:
Diptanil Saha
2025-11-12 12:26:26 +05:30
committed by GitHub
parent af19b81343
commit d5160c4c86

View File

@@ -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)