fix: pos numpad editable action buttons (backport #45823) (#45825)

fix: pos numpad editable action buttons (#45823)

(cherry picked from commit 0b9c28620f)

Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
mergify[bot]
2025-02-10 16:33:21 +05:30
committed by GitHub
parent 9e36cac0d1
commit 6b9dad7768

View File

@@ -733,6 +733,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;
@@ -778,7 +779,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);
}