Remove unnecessary code (#15296)
diff --git a/erpnext/selling/sales_common.js b/erpnext/selling/sales_common.js
index e062f49..aa5b3ba 100644
--- a/erpnext/selling/sales_common.js
+++ b/erpnext/selling/sales_common.js
@@ -145,15 +145,6 @@
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");