mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-13 01:34:10 +00:00
fix: resolve conflicts
- Remove POS Settings configuration for version 15 backport.
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user