From ac3372465645e738d81762f5891d732efa763858 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Tue, 23 Feb 2016 18:16:06 +0530 Subject: [PATCH] [fixes] removed no copy for warehouse field --- erpnext/selling/doctype/quotation/quotation.py | 3 +-- erpnext/selling/doctype/quotation_item/quotation_item.json | 4 ++-- erpnext/stock/get_item_details.py | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/erpnext/selling/doctype/quotation/quotation.py b/erpnext/selling/doctype/quotation/quotation.py index 37ac412ad0..3c8add44f7 100644 --- a/erpnext/selling/doctype/quotation/quotation.py +++ b/erpnext/selling/doctype/quotation/quotation.py @@ -106,8 +106,7 @@ def _make_sales_order(source_name, target_doc=None, ignore_permissions=False): "Quotation Item": { "doctype": "Sales Order Item", "field_map": { - "parent": "prevdoc_docname", - "warehouse": "warehouse" + "parent": "prevdoc_docname" } }, "Sales Taxes and Charges": { diff --git a/erpnext/selling/doctype/quotation_item/quotation_item.json b/erpnext/selling/doctype/quotation_item/quotation_item.json index cf5f2dc2ac..b1bb6f752e 100644 --- a/erpnext/selling/doctype/quotation_item/quotation_item.json +++ b/erpnext/selling/doctype/quotation_item/quotation_item.json @@ -730,7 +730,7 @@ "in_list_view": 0, "label": "Warehouse", "length": 0, - "no_copy": 1, + "no_copy": 0, "options": "Warehouse", "permlevel": 0, "precision": "", @@ -1032,7 +1032,7 @@ "istable": 1, "max_attachments": 0, "menu_index": 0, - "modified": "2016-02-17 14:48:49.320786", + "modified": "2016-02-23 18:12:49.939175", "modified_by": "Administrator", "module": "Selling", "name": "Quotation Item", diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index 8d7f23ea11..686048612d 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -164,8 +164,7 @@ def get_basic_details(args, item): "net_amount": 0.0, "discount_percentage": 0.0, "supplier": item.default_supplier, - "delivered_by_supplier": item.delivered_by_supplier, - "actual_qty": get_available_qty(item.name, user_default_warehouse or args.warehouse or item.default_warehouse) + "delivered_by_supplier": item.delivered_by_supplier }) # if default specified in item is for another company, fetch from company