- clean code - console logs

This commit is contained in:
Giovanni 2017-12-10 19:36:42 +01:00
parent 01953135c5
commit ff6d0a5260

View File

@ -273,7 +273,6 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
// barcode cleared, remove item // barcode cleared, remove item
d.item_code = ""; d.item_code = "";
} }
console.log(d.barcode)
this.item_code(doc, cdt, cdn, true); this.item_code(doc, cdt, cdn, true);
}, },
@ -282,7 +281,6 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
var item = frappe.get_doc(cdt, cdn); var item = frappe.get_doc(cdt, cdn);
var update_stock = 0, show_batch_dialog = 0; var update_stock = 0, show_batch_dialog = 0;
console.log(from_barcode)
if(['Sales Invoice'].includes(this.frm.doc.doctype)) { if(['Sales Invoice'].includes(this.frm.doc.doctype)) {
update_stock = cint(me.frm.doc.update_stock); update_stock = cint(me.frm.doc.update_stock);
show_batch_dialog = update_stock; show_batch_dialog = update_stock;
@ -296,7 +294,6 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
if(!from_barcode) { if(!from_barcode) {
item.barcode = null; item.barcode = null;
} }
console.log(item)
if(item.item_code || item.barcode || item.serial_no) { if(item.item_code || item.barcode || item.serial_no) {
if(!this.validate_company_and_party()) { if(!this.validate_company_and_party()) {
this.frm.fields_dict["items"].grid.grid_rows[item.idx - 1].remove(); this.frm.fields_dict["items"].grid.grid_rows[item.idx - 1].remove();