fix: add test case for update received qty in MR

(cherry picked from commit cff1050159)
This commit is contained in:
Nihantra Patel
2024-06-14 16:46:23 +05:30
committed by Mergify
parent 125d97a182
commit aaee02835b

View File

@@ -83,7 +83,6 @@ class TestPurchaseInvoice(FrappeTestCase, StockTestMixin):
mr = make_material_request(item_code="_Test Item", qty=10) mr = make_material_request(item_code="_Test Item", qty=10)
mr.save() mr.save()
mr.submit() mr.submit()
frappe.db.commit()
po = make_purchase_order(mr.name) po = make_purchase_order(mr.name)
po.supplier = "_Test Supplier" po.supplier = "_Test Supplier"
po.save() po.save()
@@ -94,7 +93,6 @@ class TestPurchaseInvoice(FrappeTestCase, StockTestMixin):
pi.update_stock = True pi.update_stock = True
pi.insert() pi.insert()
pi.submit() pi.submit()
frappe.db.commit()
# Check if the received quantity is updated in Material Request # Check if the received quantity is updated in Material Request
mr.reload() mr.reload()