Skip to content

Commit

Permalink
[IMP] pos_remove_order_line: set orderline to quantity before delete
Browse files Browse the repository at this point in the history
Ensure the order line is switched to quantity mode before activating delete to prevent errors.
  • Loading branch information
LuisAlejandroS committed Nov 12, 2024
1 parent 4648565 commit e516dc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pos_order_remove_line/static/src/js/orderline.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const PosOrderline = (OriginalOrderline) =>
ev.stopPropagation();
ev.preventDefault();
this.selectLine();
this.env.pos.numpadMode = "quantity";
this.trigger("update-selected-orderline", {buffer: null, key: "Backspace"});
}
};
Expand Down

0 comments on commit e516dc2

Please sign in to comment.