mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-15 08:17:15 +00:00
fix(test): ignore stock validation
(cherry picked from commit afc5c26d1c)
This commit is contained in:
committed by
mergify-bot
parent
32b55e715a
commit
96034c4396
@@ -158,6 +158,7 @@ class TestPOSInvoiceMergeLog(unittest.TestCase):
|
||||
Round off error in consolidated invoice creation if POS Invoice has inclusive tax
|
||||
'''
|
||||
frappe.db.sql("delete from `tabPOS Invoice`")
|
||||
frappe.db.set_value('Stock Settings', None, 'allow_negative_stock', 1)
|
||||
|
||||
try:
|
||||
init_user_and_profile()
|
||||
@@ -205,12 +206,14 @@ class TestPOSInvoiceMergeLog(unittest.TestCase):
|
||||
frappe.set_user("Administrator")
|
||||
frappe.db.sql("delete from `tabPOS Profile`")
|
||||
frappe.db.sql("delete from `tabPOS Invoice`")
|
||||
frappe.db.set_value('Stock Settings', None, 'allow_negative_stock', 0)
|
||||
|
||||
def test_consolidation_round_off_error_2(self):
|
||||
'''
|
||||
Test the same case as above but with an Unpaid POS Invoice
|
||||
'''
|
||||
frappe.db.sql("delete from `tabPOS Invoice`")
|
||||
frappe.db.set_value('Stock Settings', None, 'allow_negative_stock', 1)
|
||||
|
||||
try:
|
||||
init_user_and_profile()
|
||||
@@ -265,3 +268,4 @@ class TestPOSInvoiceMergeLog(unittest.TestCase):
|
||||
frappe.set_user("Administrator")
|
||||
frappe.db.sql("delete from `tabPOS Profile`")
|
||||
frappe.db.sql("delete from `tabPOS Invoice`")
|
||||
frappe.db.set_value('Stock Settings', None, 'allow_negative_stock', 0)
|
||||
|
||||
Reference in New Issue
Block a user