style (codacy): code formatting fixes

This commit is contained in:
scmmishra 2019-04-16 17:03:25 +05:30
parent 46901076be
commit ed4b052df8
2 changed files with 5 additions and 5 deletions

View File

@ -58,9 +58,9 @@ $.extend(erpnext, {
.css({"margin-bottom": "10px", "margin-top": "10px"})
.appendTo(grid_row.grid_form.fields_dict.serial_no.$wrapper));
var me = this
var me = this;
$btn.on("click", function() {
me.show_serial_batch_selector(grid_row.frm, grid_row.doc)
me.show_serial_batch_selector(grid_row.frm, grid_row.doc);
});
}
});

View File

@ -88,14 +88,14 @@ erpnext.SerialNoBatchSelector = Class.extend({
numbers.then((data) => {
let auto_fetched_serial_numbers = data.message;
records_length = auto_fetched_serial_numbers.length
records_length = auto_fetched_serial_numbers.length;
if(records_length < qty) {
frappe.msgprint(`Fetched only ${records_length} serial numbers`)
frappe.msgprint(`Fetched only ${records_length} serial numbers.`);
}
let serial_no_list_field = this.dialog.fields_dict.serial_no;
numbers = auto_fetched_serial_numbers.join('\n');
serial_no_list_field.set_value(numbers);
})
});
}
}
];