fix: Procurement Tracker test case

This commit is contained in:
Deepesh Garg 2020-05-30 00:51:19 +05:30
parent c96bf870e4
commit 1aec30d849

View File

@ -36,10 +36,10 @@ class TestProcurementTracker(unittest.TestCase):
mr = make_material_request(company="_Test Procurement Company", warehouse=warehouse)
po = make_purchase_order(mr.name)
po.supplier = "_Test Supplier"
po.get("items")[0].cost_center = "_Test Cost Center - _TC"
po.get("items")[0].cost_center = "Main - _TPC"
po.submit()
pr = make_purchase_receipt(po.name)
pr.get("items")[0].cost_center = "_Test Cost Center - _TC"
pr.get("items")[0].cost_center = "Main - _TPC"
pr.submit()
frappe.db.commit()
date_obj = datetime.date(datetime.now())