From 89b5e3e2eafb7b3a34e1b0605c4486a0e87f3206 Mon Sep 17 00:00:00 2001 From: nabinhait Date: Tue, 8 Jul 2014 16:00:25 +0530 Subject: [PATCH] Set discount zero while fetching price list rate --- .../stock/doctype/item_price/item_price.json | 22 +++++++++---------- erpnext/stock/get_item_details.py | 1 + 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/erpnext/stock/doctype/item_price/item_price.json b/erpnext/stock/doctype/item_price/item_price.json index 6b50349dc2..e3535b1519 100644 --- a/erpnext/stock/doctype/item_price/item_price.json +++ b/erpnext/stock/doctype/item_price/item_price.json @@ -1,7 +1,7 @@ { "allow_import": 1, "autoname": "RFD/.#####", - "creation": "2013-05-02 16:29:48.000000", + "creation": "2013-05-02 16:29:48", "description": "Multiple Item prices.", "docstatus": 0, "doctype": "DocType", @@ -72,6 +72,15 @@ "reqd": 1, "search_index": 0 }, + { + "fieldname": "currency", + "fieldtype": "Link", + "hidden": 0, + "label": "Currency", + "options": "Currency", + "permlevel": 0, + "read_only": 1 + }, { "fieldname": "col_br_1", "fieldtype": "Column Break", @@ -90,22 +99,13 @@ "label": "Item Description", "permlevel": 0, "read_only": 1 - }, - { - "fieldname": "currency", - "fieldtype": "Link", - "hidden": 1, - "label": "Currency", - "options": "Currency", - "permlevel": 0, - "read_only": 1 } ], "icon": "icon-flag", "idx": 1, "in_create": 0, "istable": 0, - "modified": "2014-02-10 17:27:32.000000", + "modified": "2014-07-08 15:38:23.653034", "modified_by": "Administrator", "module": "Stock", "name": "Item Price", diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index ca9dd2bbe2..f9a1d9fa1a 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -323,6 +323,7 @@ def apply_price_list_on_item(args): item_details = frappe._dict() item_doc = frappe.get_doc("Item", args.item_code) get_price_list_rate(args, item_doc, item_details) + item_details.discount_percentage = 0.0 item_details.update(get_pricing_rule_for_item(args)) return item_details