From bb88e964a4cc9fe9b4dc9006fe27a56d3e1f99a7 Mon Sep 17 00:00:00 2001 From: Shreya Shah Date: Mon, 3 Sep 2018 13:01:12 +0530 Subject: [PATCH] Remove unnecessary code (#15296) --- erpnext/selling/sales_common.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/erpnext/selling/sales_common.js b/erpnext/selling/sales_common.js index e062f4916f..aa5b3ba498 100644 --- a/erpnext/selling/sales_common.js +++ b/erpnext/selling/sales_common.js @@ -145,15 +145,6 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({ this.set_gross_profit(item); }, - discount_amount: function(doc, cdt, cdn) { - var item = frappe.get_doc(cdt, cdn); - if(!item.price_list_rate) { - item.discount_amount = 0.0; - } else { - this.price_list_rate(doc, cdt, cdn); - } - }, - commission_rate: function() { this.calculate_commission(); refresh_field("total_commission");