fix: pos numpad editable action buttons (#45823)

This commit is contained in:
Diptanil Saha
2025-02-10 16:23:54 +05:30
committed by GitHub
parent 03290ef45f
commit 0b9c28620f

View File

@@ -748,6 +748,7 @@ erpnext.PointOfSale.ItemCart = class {
frappe.utils.play_sound("error");
return;
}
this.highlight_numpad_btn($btn, current_action);
if (first_click_event || field_to_edit_changed) {
this.prev_action = current_action;
@@ -793,7 +794,6 @@ erpnext.PointOfSale.ItemCart = class {
this.numpad_value = current_action;
}
this.highlight_numpad_btn($btn, current_action);
this.events.numpad_event(this.numpad_value, this.prev_action);
}