From 1b556d1c5353c9fca94f9d00496776e1c2a69839 Mon Sep 17 00:00:00 2001 From: Saqib Ansari Date: Thu, 24 Mar 2022 17:59:34 +0530 Subject: [PATCH] fix: test cases --- erpnext/accounts/doctype/pos_invoice/test_pos_invoice.py | 1 + .../doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/pos_invoice/test_pos_invoice.py b/erpnext/accounts/doctype/pos_invoice/test_pos_invoice.py index a76ae124a5..e06f7aa9a7 100644 --- a/erpnext/accounts/doctype/pos_invoice/test_pos_invoice.py +++ b/erpnext/accounts/doctype/pos_invoice/test_pos_invoice.py @@ -340,6 +340,7 @@ class TestPOSInvoice(unittest.TestCase): item=se.get("items")[0].item_code, rate=1000, do_not_save=1) si.get("items")[0].serial_no = serial_nos[0] + si.update_stock = 1 si.insert() si.submit() diff --git a/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py b/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py index 655d726f75..fe57ce2f0f 100644 --- a/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py +++ b/erpnext/accounts/doctype/pos_invoice_merge_log/test_pos_invoice_merge_log.py @@ -435,7 +435,7 @@ class TestPOSInvoiceMergeLog(unittest.TestCase): pos_inv2.append('payments', { 'mode_of_payment': 'Cash', 'account': 'Cash - _TC', 'amount': 100 }) - pos_inv.submit() + pos_inv2.submit() consolidate_pos_invoices()