From 1e1e28b0ae8f8d8ebc6193f9c0c70cbb1518be14 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 23 Dec 2016 15:48:57 +0530 Subject: [PATCH] Update landed_cost_voucher.js --- .../doctype/landed_cost_voucher/landed_cost_voucher.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.js b/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.js index 5035379e8b..b97378f6d8 100644 --- a/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.js +++ b/erpnext/stock/doctype/landed_cost_voucher/landed_cost_voucher.js @@ -94,8 +94,6 @@ erpnext.stock.LandedCostVoucher = erpnext.stock.StockController.extend({ set_applicable_charges_for_item: function() { var me = this; - - console.log(this.frm) if(this.frm.doc.taxes.length) { var total_item_cost = 0.0; @@ -105,10 +103,7 @@ erpnext.stock.LandedCostVoucher = erpnext.stock.StockController.extend({ }); $.each(this.frm.doc.items || [], function(i, item) { - - item.applicable_charges = flt(item[based_on]) * flt(me.frm.doc.total_taxes_and_charges) / flt(total_item_cost) - - + item.applicable_charges = flt(item[based_on]) * flt(me.frm.doc.total_taxes_and_charges) / flt(total_item_cost) }); refresh_field("items"); }