fix: pos item selection using serial no (#46200)

This commit is contained in:
Diptanil Saha
2025-02-28 15:38:21 +05:30
committed by GitHub
parent 48f9769c05
commit 8fb09decd2

View File

@@ -609,6 +609,14 @@ erpnext.PointOfSale.Controller = class {
if (this.is_current_item_being_edited(item_row) || from_selector) {
await frappe.model.set_value(item_row.doctype, item_row.name, field, value);
if (item.serial_no && from_selector) {
await frappe.model.set_value(
item_row.doctype,
item_row.name,
"serial_no",
item_row.serial_no + `\n${item.serial_no}`
);
}
this.update_cart_html(item_row);
}
} else {