add schedule_date while creating Material Request

This commit is contained in:
Sunny
2017-09-26 10:56:31 +08:00
parent 892ec599d4
commit 0d91d3f572
5 changed files with 12 additions and 9 deletions

View File

@@ -103,6 +103,7 @@ def make_material_request(item_code, qty):
mr.material_request_type = "Purchase"
mr.transaction_date = frappe.flags.current_date
mr.schedule_date = frappe.utils.add_days(mr.transaction_date, 7)
mr.append("items", {
"doctype": "Material Request Item",