* Added delivery date in SO parent form. Fixes #10104 * UI tests for sales order delivery date
This commit is contained in:
committed by
Makarand Bauskar
parent
3beb1ba667
commit
495ef67caa
@@ -118,8 +118,7 @@ def make_sales_order():
|
||||
from erpnext.selling.doctype.quotation.quotation import make_sales_order
|
||||
so = frappe.get_doc(make_sales_order(q))
|
||||
so.transaction_date = frappe.flags.current_date
|
||||
for d in so.get("items"):
|
||||
d.delivery_date = frappe.utils.add_days(frappe.flags.current_date, 10)
|
||||
so.delivery_date = frappe.utils.add_days(frappe.flags.current_date, 10)
|
||||
so.insert()
|
||||
frappe.db.commit()
|
||||
so.submit()
|
||||
|
||||
Reference in New Issue
Block a user