Set discount zero while fetching price list rate

This commit is contained in:
nabinhait 2014-07-08 16:00:25 +05:30
parent ff2cc1626e
commit 89b5e3e2ea
2 changed files with 12 additions and 11 deletions

View File

@ -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",

View File

@ -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