From aaee02835b4104bfc79771a877d1da1b7b3f1543 Mon Sep 17 00:00:00 2001 From: Nihantra Patel Date: Fri, 14 Jun 2024 16:46:23 +0530 Subject: [PATCH] fix: add test case for update received qty in MR (cherry picked from commit cff105015901af0f5b18497e8110ae394d49f1c6) --- .../accounts/doctype/purchase_invoice/test_purchase_invoice.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py index 8abb089f56a..cd3eda99b07 100644 --- a/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py +++ b/erpnext/accounts/doctype/purchase_invoice/test_purchase_invoice.py @@ -83,7 +83,6 @@ class TestPurchaseInvoice(FrappeTestCase, StockTestMixin): mr = make_material_request(item_code="_Test Item", qty=10) mr.save() mr.submit() - frappe.db.commit() po = make_purchase_order(mr.name) po.supplier = "_Test Supplier" po.save() @@ -94,7 +93,6 @@ class TestPurchaseInvoice(FrappeTestCase, StockTestMixin): pi.update_stock = True pi.insert() pi.submit() - frappe.db.commit() # Check if the received quantity is updated in Material Request mr.reload()