mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 23:52:57 +00:00
Testcase fixes (#11238)
* Restaurant test records fixed * Fixes for test cases
This commit is contained in:
@@ -558,5 +558,5 @@ class TestMaterialRequest(unittest.TestCase):
|
||||
item_code= %s and warehouse= %s """, (mr.items[0].item_code, mr.items[0].warehouse))[0][0]
|
||||
self.assertEquals(requested_qty, new_requested_qty)
|
||||
|
||||
test_dependencies = ["Currency Exchange"]
|
||||
test_dependencies = ["Currency Exchange", "BOM"]
|
||||
test_records = frappe.get_test_records('Material Request')
|
||||
|
||||
@@ -121,8 +121,7 @@ def create_material_request(material_requests):
|
||||
mr.update({
|
||||
"company": company,
|
||||
"transaction_date": nowdate(),
|
||||
"material_request_type": "Material Transfer" if request_type=="Transfer" else request_type,
|
||||
"schedule_date": add_days(nowdate(), cint(items[0].lead_time_days))
|
||||
"material_request_type": "Material Transfer" if request_type=="Transfer" else request_type
|
||||
})
|
||||
|
||||
for d in items:
|
||||
|
||||
Reference in New Issue
Block a user