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:
@@ -733,6 +733,7 @@ erpnext.PointOfSale.ItemCart = class {
|
|||||||
frappe.utils.play_sound("error");
|
frappe.utils.play_sound("error");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.highlight_numpad_btn($btn, current_action);
|
||||||
|
|
||||||
if (first_click_event || field_to_edit_changed) {
|
if (first_click_event || field_to_edit_changed) {
|
||||||
this.prev_action = current_action;
|
this.prev_action = current_action;
|
||||||
@@ -778,7 +779,6 @@ erpnext.PointOfSale.ItemCart = class {
|
|||||||
this.numpad_value = current_action;
|
this.numpad_value = current_action;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.highlight_numpad_btn($btn, current_action);
|
|
||||||
this.events.numpad_event(this.numpad_value, this.prev_action);
|
this.events.numpad_event(this.numpad_value, this.prev_action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user