From 13c7e183a656cd48e60cb176777b68d684d4b0b9 Mon Sep 17 00:00:00 2001
From: Rohit Waghchaure <rohitw1991@gmail.com>
Date: Thu, 29 Aug 2019 19:45:19 +0530
Subject: [PATCH] fix: not able to save sales order

---
 erpnext/controllers/selling_controller.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/erpnext/controllers/selling_controller.py b/erpnext/controllers/selling_controller.py
index 52d58dce62..9dbd5be918 100644
--- a/erpnext/controllers/selling_controller.py
+++ b/erpnext/controllers/selling_controller.py
@@ -394,8 +394,8 @@ class SellingController(StockController):
 			elif self.doctype == "Delivery Note":
 				e = [d.item_code, d.description, d.warehouse, d.against_sales_order or d.against_sales_invoice, d.batch_no or '']
 				f = [d.item_code, d.description, d.against_sales_order or d.against_sales_invoice]
-			elif self.doctype == "Sales Order":
-				e = [d.item_code, d.description, d.warehouse, d.batch_no or '']
+			elif self.doctype in ["Sales Order", "Quotation"]:
+				e = [d.item_code, d.description, d.warehouse, '']
 				f = [d.item_code, d.description]
 
 			if frappe.db.get_value("Item", d.item_code, "is_stock_item") == 1: