Skip to content

Commit

Permalink
[IMP] pos_order_remove_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 a44ef8e
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 a44ef8e

Please sign in to comment.