Merge pull request #19867 from nextchamp-saqib/cart-fix-hotfix

fix: Error while placing order of cart items added yesterday
This commit is contained in:
Deepesh Garg
2019-12-09 15:23:04 +05:30
committed by GitHub

View File

@@ -66,6 +66,7 @@ def place_order():
from erpnext.selling.doctype.quotation.quotation import _make_sales_order
sales_order = frappe.get_doc(_make_sales_order(quotation.name, ignore_permissions=True))
sales_order.payment_schedule = []
if not cint(cart_settings.allow_items_not_in_stock):
for item in sales_order.get("items"):