Add schedule_date when creating Purchase Order

This commit is contained in:
Sunny
2017-09-26 12:21:41 +08:00
parent f07e53b7a8
commit 3a22fd1535
2 changed files with 2 additions and 0 deletions

View File

@@ -128,6 +128,7 @@ def make_subcontract():
po = frappe.new_doc("Purchase Order")
po.is_subcontracted = "Yes"
po.supplier = get_random("Supplier")
po.schedule_date = frappe.utils.add_days(frappe.flags.current_date, 7)
item_code = get_random("Item", {"is_sub_contracted_item": 1})