mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
fix: test cases
This commit is contained in:
@@ -340,6 +340,7 @@ class TestPOSInvoice(unittest.TestCase):
|
|||||||
item=se.get("items")[0].item_code, rate=1000, do_not_save=1)
|
item=se.get("items")[0].item_code, rate=1000, do_not_save=1)
|
||||||
|
|
||||||
si.get("items")[0].serial_no = serial_nos[0]
|
si.get("items")[0].serial_no = serial_nos[0]
|
||||||
|
si.update_stock = 1
|
||||||
si.insert()
|
si.insert()
|
||||||
si.submit()
|
si.submit()
|
||||||
|
|
||||||
|
|||||||
@@ -435,7 +435,7 @@ class TestPOSInvoiceMergeLog(unittest.TestCase):
|
|||||||
pos_inv2.append('payments', {
|
pos_inv2.append('payments', {
|
||||||
'mode_of_payment': 'Cash', 'account': 'Cash - _TC', 'amount': 100
|
'mode_of_payment': 'Cash', 'account': 'Cash - _TC', 'amount': 100
|
||||||
})
|
})
|
||||||
pos_inv.submit()
|
pos_inv2.submit()
|
||||||
|
|
||||||
consolidate_pos_invoices()
|
consolidate_pos_invoices()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user