fix: resolve conflicts

- Remove POS Settings configuration for version 15 backport.
This commit is contained in:
Kavin
2026-02-10 13:35:52 +05:30
committed by GitHub
parent aedab5c210
commit 36e2cf49f3

View File

@@ -142,13 +142,9 @@ class TestBatch(FrappeTestCase):
create_batch_item_with_batch, create_batch_item_with_batch,
) )
invoice_type = frappe.db.get_single_value("POS Settings", "invoice_type")
session_user = frappe.session.user session_user = frappe.session.user
try: try:
# Set invoice type to POS Invoice
frappe.db.set_single_value("POS Settings", "invoice_type", "POS Invoice")
# Create batch item # Create batch item
create_batch_item_with_batch("_Test BATCH ITEM", "TestBatch-RS 02") create_batch_item_with_batch("_Test BATCH ITEM", "TestBatch-RS 02")
@@ -198,8 +194,6 @@ class TestBatch(FrappeTestCase):
self.assertEqual(row.qty, 30) self.assertEqual(row.qty, 30)
finally: finally:
# Set invoice type to Sales Invoice
frappe.db.set_single_value("POS Settings", "invoice_type", invoice_type)
# Set user to session user # Set user to session user
frappe.set_user(session_user) frappe.set_user(session_user)