mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-12 17:23:38 +00:00
fix: pos item selection using serial no (#46200)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user