Remove unnecessary code (#15296)

This commit is contained in:
Shreya Shah 2018-09-03 13:01:12 +05:30 committed by Nabin Hait
parent 5f79479bd0
commit bb88e964a4

View File

@ -145,15 +145,6 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
this.set_gross_profit(item); 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() { commission_rate: function() {
this.calculate_commission(); this.calculate_commission();
refresh_field("total_commission"); refresh_field("total_commission");