style (codacy): code formatting fixes
This commit is contained in:
parent
46901076be
commit
ed4b052df8
@ -58,9 +58,9 @@ $.extend(erpnext, {
|
|||||||
.css({"margin-bottom": "10px", "margin-top": "10px"})
|
.css({"margin-bottom": "10px", "margin-top": "10px"})
|
||||||
.appendTo(grid_row.grid_form.fields_dict.serial_no.$wrapper));
|
.appendTo(grid_row.grid_form.fields_dict.serial_no.$wrapper));
|
||||||
|
|
||||||
var me = this
|
var me = this;
|
||||||
$btn.on("click", function() {
|
$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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -88,14 +88,14 @@ erpnext.SerialNoBatchSelector = Class.extend({
|
|||||||
|
|
||||||
numbers.then((data) => {
|
numbers.then((data) => {
|
||||||
let auto_fetched_serial_numbers = data.message;
|
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) {
|
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;
|
let serial_no_list_field = this.dialog.fields_dict.serial_no;
|
||||||
numbers = auto_fetched_serial_numbers.join('\n');
|
numbers = auto_fetched_serial_numbers.join('\n');
|
||||||
serial_no_list_field.set_value(numbers);
|
serial_no_list_field.set_value(numbers);
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user